Skip to content

Commit d0545ee

Browse files
authored
Add a .editorconfig for this project (nikic#162)
* [skip ci] Add a .editorconfig for this project Add default indentation choice for file types where it currently isn't a mix. * [skip ci] Suggest spaces for phpt tests The majority of files use spaces
1 parent 85b6bf8 commit d0545ee

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# https://editorconfig.org/
2+
root = true
3+
# 4 space indentation (no size specified)
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
indent_size = 4
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
[*.{c,h}]
11+
indent_style = tab
12+
[*.xml]
13+
indent_size = 1
14+
indent_style = space
15+
[*.{md,php,phpt}]
16+
indent_size = 4
17+
indent_style = space

0 commit comments

Comments
 (0)