Skip to content

Commit

Permalink
feat: customize .editorconfig according to shfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldh committed Mar 13, 2021
1 parent 5d99b4d commit 1f621ab
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
indent_style = space
indent_size = 4
switch_case_indent = true
function_next_line = false
binary_next_line = true
space_redirects = true

# Match config files, set indent to spaces with width of eight.
[*.{c,h}]
Expand All @@ -22,6 +28,10 @@ indent_size = 8
[*.sh]
indent_style = space
indent_size = 4
switch_case_indent = true
function_next_line = false
binary_next_line = true
space_redirects = true

# Match xml man pages, set indent to spaces with width of two.
[man/*.xml]
Expand Down

0 comments on commit 1f621ab

Please sign in to comment.