Browse Source

Merge pull request #96965 from Repiteo/style/gdscript-editorconfig

Style: Consolidate & migrate GDScript `.editorconfig`
Rémi Verschelde 1 year ago
parent
commit
41066484ff

+ 0 - 5
modules/gdscript/.editorconfig

@@ -1,8 +1,3 @@
 [*.gd]
-indent_style = tab
 indent_size = 4
-insert_final_newline = true
 trim_trailing_whitespace = true
-
-[*.out]
-insert_final_newline = true

+ 12 - 0
modules/gdscript/tests/scripts/.editorconfig

@@ -0,0 +1,12 @@
+# This file is required to workaround `.editorconfig` autogeneration (see #96845).
+
+# Some tests handle invalid syntax deliberately; exclude relevant attributes.
+
+[parser/features/mixed_indentation_on_blank_lines.gd]
+trim_trailing_whitespace = false
+
+[parser/warnings/empty_file_newline.notest.gd]
+insert_final_newline = false
+
+[parser/warnings/empty_file_newline_comment.notest.gd]
+insert_final_newline = false

+ 0 - 2
modules/gdscript/tests/scripts/parser/.editorconfig

@@ -1,2 +0,0 @@
-[*.{gd,out}]
-trim_trailing_whitespace = false