Style: Unify .editorconfig logic

This commit is contained in:
Thaddeus Crews 2025-01-07 11:25:56 -06:00
parent 5b52b4b5c4
commit 9d0c41a489
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84
4 changed files with 6 additions and 20 deletions

View file

@ -3,24 +3,18 @@ root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = tab
insert_final_newline = true
[*.{cpp,hpp,c,h,mm}]
max_line_length = 120
trim_trailing_whitespace = true
[{*.gradle,AndroidManifest.xml}]
indent_style = space
indent_size = 4
[{*.py,SConstruct,SCsub}]
indent_style = space
indent_size = 4
# YAML requires indentation with spaces instead of tabs.
[{*.{yml,yaml},.clang{-format,-tidy,d}}]
indent_style = space
indent_size = 2
indent_style = space
[*.svg]
insert_final_newline = false

View file

@ -1,3 +0,0 @@
[*.gd]
indent_size = 4
trim_trailing_whitespace = true

View file

@ -2,21 +2,14 @@
end_of_line = crlf
charset = utf-8-bom
[*.sln]
indent_style = tab
[*.{csproj,props,targets,nuspec,resx}]
indent_style = space
indent_size = 2
[*.cs]
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = 120
csharp_indent_case_contents_when_block = false
csharp_indent_case_contents_when_block = false
csharp_new_line_before_open_brace = all
csharp_new_line_before_else = true
csharp_new_line_before_catch = true

View file

@ -0,0 +1,2 @@
[{*.gradle,AndroidManifest.xml}]
indent_style = space