Skip to content

Commit b194c7e

Browse files
authored
Simplify .editorconfig (#1045)
This simplifies `.editorconfig` by setting a global `indent_size` and only listing file types that deviate from that default.
1 parent 046c8c9 commit b194c7e

1 file changed

Lines changed: 6 additions & 17 deletions

File tree

.editorconfig

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,20 @@ root = true
2121
# the same settings and need to be updated if changes are made to this file.
2222
[*]
2323
charset = utf-8
24+
indent_size = 4
2425
indent_style = space
2526
insert_final_newline = true
27+
max_line_length = 80
2628
spelling_language = en-US
2729
trim_trailing_whitespace = true
28-
max_line_length = 80
29-
30-
[{BUILD,*.BUILD,*.bzl,*.bazel,.bazelrc,WORKSPACE}]
31-
indent_size = 4
32-
33-
[{CMakeLists.txt,*.cmake}]
34-
indent_size = 4
3530

36-
[Dockerfile]
37-
indent_size = 4
31+
[{COMMIT_EDITMSG,MERGE_MSG,SQUASH_MSG,TAG_EDITMSG}]
32+
max_line_length = 72
3833

3934
[{Makefile,makefile,*.mk}]
4035
indent_style = tab
41-
indent_size = 4
36+
indent_size = 8
37+
tab_width = 8
4238

4339
[{*.cc,*.h}]
4440
indent_size = 2
@@ -47,15 +43,8 @@ indent_size = 2
4743
indent_size = 2
4844

4945
[*.py]
50-
indent_size = 4
5146
# This is the Black default line length.
5247
max_line_length = 88
5348

54-
[*.sh]
55-
indent_size = 4
56-
57-
[*.toml]
58-
indent_size = 4
59-
6049
[{*.yaml,*.yml,*.cff}]
6150
indent_size = 2

0 commit comments

Comments
 (0)