You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +00:00
Fix GDScript code style regarding colon
(cherry picked from commit ea5fd3d732)
This commit is contained in:
committed by
Yuri Sizov
parent
acdb1bdbd7
commit
f4ea9df0f4
@@ -1,3 +1,5 @@
|
||||
# Do not fix code style here!
|
||||
|
||||
func test():
|
||||
# The following lines are equivalent:
|
||||
var _integer: int = 1
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
GDTEST_OK
|
||||
>> WARNING
|
||||
>> Line: 9
|
||||
>> UNUSED_LOCAL_CONSTANT
|
||||
>> The local constant '_INTEGER' is declared but never used in the block. If this is intended, prefix it with an underscore: '__INTEGER'
|
||||
>> WARNING
|
||||
>> Line: 10
|
||||
>> UNUSED_LOCAL_CONSTANT
|
||||
>> The local constant '_INTEGER_REDUNDANT_TYPED' is declared but never used in the block. If this is intended, prefix it with an underscore: '__INTEGER_REDUNDANT_TYPED'
|
||||
>> WARNING
|
||||
>> Line: 11
|
||||
>> UNUSED_LOCAL_CONSTANT
|
||||
>> The local constant '_INTEGER_REDUNDANT_TYPED2' is declared but never used in the block. If this is intended, prefix it with an underscore: '__INTEGER_REDUNDANT_TYPED2'
|
||||
>> The local constant '_INTEGER' is declared but never used in the block. If this is intended, prefix it with an underscore: '__INTEGER'
|
||||
>> WARNING
|
||||
>> Line: 12
|
||||
>> UNUSED_LOCAL_CONSTANT
|
||||
>> The local constant '_INTEGER_REDUNDANT_INFERRED' is declared but never used in the block. If this is intended, prefix it with an underscore: '__INTEGER_REDUNDANT_INFERRED'
|
||||
>> The local constant '_INTEGER_REDUNDANT_TYPED' is declared but never used in the block. If this is intended, prefix it with an underscore: '__INTEGER_REDUNDANT_TYPED'
|
||||
>> WARNING
|
||||
>> Line: 13
|
||||
>> UNUSED_LOCAL_CONSTANT
|
||||
>> The local constant '_INTEGER_REDUNDANT_TYPED2' is declared but never used in the block. If this is intended, prefix it with an underscore: '__INTEGER_REDUNDANT_TYPED2'
|
||||
>> WARNING
|
||||
>> Line: 14
|
||||
>> UNUSED_LOCAL_CONSTANT
|
||||
>> The local constant '_INTEGER_REDUNDANT_INFERRED' is declared but never used in the block. If this is intended, prefix it with an underscore: '__INTEGER_REDUNDANT_INFERRED'
|
||||
>> WARNING
|
||||
>> Line: 15
|
||||
>> UNUSED_LOCAL_CONSTANT
|
||||
>> The local constant '_INTEGER_REDUNDANT_INFERRED2' is declared but never used in the block. If this is intended, prefix it with an underscore: '__INTEGER_REDUNDANT_INFERRED2'
|
||||
|
||||
Reference in New Issue
Block a user