Skip to content

Commit

Permalink
Style: Unify .editorconfig logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Repiteo committed Jan 12, 2025
1 parent 5b52b4b commit 9d0c41a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 20 deletions.
12 changes: 3 additions & 9 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 0 additions & 3 deletions modules/gdscript/.editorconfig

This file was deleted.

9 changes: 1 addition & 8 deletions modules/mono/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions platform/android/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[{*.gradle,AndroidManifest.xml}]
indent_style = space

0 comments on commit 9d0c41a

Please sign in to comment.