Skip to content

Commit

Permalink
cmd/shfmt: don't recommend inline EditorConfig comments
Browse files Browse the repository at this point in the history
EditorConfig 0.15.0 does not allow inline comments:
https://spec.editorconfig.org/#no-inline-comments
  • Loading branch information
slabstone authored Jul 13, 2023
1 parent 69ad1e5 commit 1cb4b28
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cmd/shfmt/shfmt.1.scd
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,15 @@ showing how to set any option:
indent_style = space
indent_size = 4
shell_variant = posix # --language-variant
# --language-variant
shell_variant = posix
binary_next_line = true
switch_case_indent = true # --case-indent
# --case-indent
switch_case_indent = true
space_redirects = true
keep_padding = true
function_next_line = true # --func-next-line
# --func-next-line
function_next_line = true
# Ignore the entire "third_party" directory.
[third_party/**]
Expand Down

0 comments on commit 1cb4b28

Please sign in to comment.