summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-09-13 10:11:59 -0500
committerThaddeus Crews <repiteo@outlook.com>2024-09-13 11:12:17 -0500
commitbf811db6c83dee6b3138c69d1dbc1a2adcc98f4e (patch)
tree38a86d9d263c7bfaf65d35177eccb3cf46c24c36 /modules/gdscript/tests/scripts
parent74de05a01c8716a42d4e3427f607d7bea76b35e5 (diff)
downloadredot-engine-bf811db6c83dee6b3138c69d1dbc1a2adcc98f4e.tar.gz
Style: Consolidate & migrate GDScript `.editorconfig`
• Moved to test project root so a new `.editorconfig` isn't constantly generated. • Disable attributes only in the files which use invalid syntax deliberately
Diffstat (limited to 'modules/gdscript/tests/scripts')
-rw-r--r--modules/gdscript/tests/scripts/.editorconfig12
-rw-r--r--modules/gdscript/tests/scripts/parser/.editorconfig2
2 files changed, 12 insertions, 2 deletions
diff --git a/modules/gdscript/tests/scripts/.editorconfig b/modules/gdscript/tests/scripts/.editorconfig
new file mode 100644
index 0000000000..da1efefe3c
--- /dev/null
+++ b/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
diff --git a/modules/gdscript/tests/scripts/parser/.editorconfig b/modules/gdscript/tests/scripts/parser/.editorconfig
deleted file mode 100644
index fa43b3ad78..0000000000
--- a/modules/gdscript/tests/scripts/parser/.editorconfig
+++ /dev/null
@@ -1,2 +0,0 @@
-[*.{gd,out}]
-trim_trailing_whitespace = false