Skip to content

Commit 7279618

Browse files
authored
Refactor EditorConfig file (duckdb#25)
* Remove unused sections * Add base properties * Remove redundant properties * Add Python section --------- Co-authored-by: Emil Sadek <[email protected]>
1 parent 2a7f0f2 commit 7279618

File tree

1 file changed

+9
-34
lines changed

1 file changed

+9
-34
lines changed

.editorconfig

Lines changed: 9 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,28 @@
1-
# Unix-style newlines with a newline ending every file
2-
[*.{c,cpp,h,hpp}]
1+
root = true
2+
3+
[*]
4+
charset = utf-8
35
end_of_line = lf
46
insert_final_newline = true
5-
indent_style = tab
6-
tab_width = 4
7-
indent_size = tab
87
trim_trailing_whitespace = true
9-
charset = utf-8
10-
max_line_length = 120
11-
x-soft-wrap-text = true
12-
x-soft-wrap-mode = CharacterWidth
13-
x-soft-wrap-limit = 120
14-
x-show-invisibles = false
15-
x-show-spaces = false
168

17-
[*.{java}]
18-
end_of_line = lf
19-
insert_final_newline = true
9+
[*.{py,pyi}]
10+
indent_style = space
11+
indent_size = 4
12+
13+
[*.{c,cpp,h,hpp}]
2014
indent_style = tab
2115
tab_width = 4
2216
indent_size = tab
23-
trim_trailing_whitespace = false
24-
charset = utf-8
2517
max_line_length = 120
2618
x-soft-wrap-text = true
2719
x-soft-wrap-mode = CharacterWidth
2820
x-soft-wrap-limit = 120
2921
x-show-invisibles = false
3022
x-show-spaces = false
3123

32-
[*.{test,test_slow,test_coverage,benchmark}]
33-
end_of_line = lf
34-
insert_final_newline = true
35-
indent_style = tab
36-
tab_width = 4
37-
indent_size = tab
38-
trim_trailing_whitespace = false
39-
charset = utf-8
40-
x-soft-wrap-text = false
41-
4224
[Makefile]
43-
end_of_line = lf
44-
insert_final_newline = true
4525
indent_style = tab
4626
tab_width = 4
4727
indent_size = tab
48-
trim_trailing_whitespace = true
49-
charset = utf-8
5028
x-soft-wrap-text = false
51-
52-
[*keywords.list]
53-
insert_final_newline = false

0 commit comments

Comments
 (0)