mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
Add GDScript .editorconfig
rules
- Uniformize `.gd` unit test files indentation to tabs (where needed)
This commit is contained in:
parent
91713ced81
commit
44d1d72af1
@ -21,3 +21,13 @@ indent_size = 4
|
||||
[*.{yml,yaml}]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
# GDScript unit test files
|
||||
[*.gd]
|
||||
indent_style = tab
|
||||
indent_size = 4
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.out]
|
||||
insert_final_newline = true
|
||||
|
@ -1,4 +1,5 @@
|
||||
enum MyEnum { VALUE_A, VALUE_B, VALUE_C = 42 }
|
||||
|
||||
func test():
|
||||
const P = preload("../features/enum_value_from_parent.gd")
|
||||
var local_var: MyEnum
|
||||
|
@ -11,4 +11,3 @@ func test() -> void:
|
||||
Extend.InnerClass.InnerInnerClass.test_a_b_c(A.new(), B.new(), C.new())
|
||||
Extend.InnerClass.InnerInnerClass.test_enum(C.TestEnum.HELLO_WORLD)
|
||||
Extend.InnerClass.InnerInnerClass.test_a_prime(A.APrime.new())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user