Skip to content

Commit

Permalink
Update editorconfig
Browse files Browse the repository at this point in the history
Changes:
- New property max_line_length
- COMMIT_EDITMSG file added when writing commit messages
- Markdown files can have trimmed trailing whitespace also to simplify
  settings.
- https link used to EditorConfig page.
- Added also *.y, *.cpp, and *.inc files
- The tab_width moved to a new all files section
  • Loading branch information
petk committed Mar 7, 2019
1 parent 41fb0ea commit 488544b
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
# http://editorconfig.org/
# https://editorconfig.org/

root = true

[*.{c,h,awk,w32,bat,mk,frag}]
[*]
tab_width = 4

[*.{c,h,y,awk,w32,bat,mk,frag,cpp}]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = tab
tab_width = 4
trim_trailing_whitespace = true
insert_final_newline = true

[*.{php,phpt}]
[*.{php,phpt,inc}]
charset = utf-8
end_of_line = lf
indent_size = 4
Expand All @@ -31,5 +33,15 @@ insert_final_newline = true
charset = utf-8
end_of_line = lf
indent_style = space
trim_trailing_whitespace = false
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 80

[COMMIT_EDITMSG]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 80

0 comments on commit 488544b

Please sign in to comment.