Skip to content

Commit 488544b

Browse files
committed
Update editorconfig
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
1 parent 41fb0ea commit 488544b

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

Diff for: .editorconfig

+17-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
# http://editorconfig.org/
1+
# https://editorconfig.org/
22

33
root = true
44

5-
[*.{c,h,awk,w32,bat,mk,frag}]
5+
[*]
6+
tab_width = 4
7+
8+
[*.{c,h,y,awk,w32,bat,mk,frag,cpp}]
69
charset = utf-8
710
end_of_line = lf
811
indent_size = 4
912
indent_style = tab
10-
tab_width = 4
1113
trim_trailing_whitespace = true
1214
insert_final_newline = true
1315

14-
[*.{php,phpt}]
16+
[*.{php,phpt,inc}]
1517
charset = utf-8
1618
end_of_line = lf
1719
indent_size = 4
@@ -31,5 +33,15 @@ insert_final_newline = true
3133
charset = utf-8
3234
end_of_line = lf
3335
indent_style = space
34-
trim_trailing_whitespace = false
36+
trim_trailing_whitespace = true
37+
insert_final_newline = true
38+
max_line_length = 80
39+
40+
[COMMIT_EDITMSG]
41+
charset = utf-8
42+
end_of_line = lf
43+
indent_size = 4
44+
indent_style = space
45+
trim_trailing_whitespace = true
3546
insert_final_newline = true
47+
max_line_length = 80

0 commit comments

Comments
 (0)