GDScript: Reorganize and unify warnings
This commit is contained in:
parent
e8f5d0f6e8
commit
13310f3557
22 changed files with 175 additions and 212 deletions
|
|
@ -2,4 +2,4 @@ GDTEST_OK
|
|||
>> WARNING
|
||||
>> Line: 6
|
||||
>> RETURN_VALUE_DISCARDED
|
||||
>> The function 'i_return_int()' returns a value that will be discarded if not used.
|
||||
>> The function "i_return_int()" returns a value that will be discarded if not used.
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ GDTEST_OK
|
|||
>> WARNING
|
||||
>> Line: 8
|
||||
>> UNUSED_LOCAL_CONSTANT
|
||||
>> The local constant 'TEST' is declared but never used in the block. If this is intended, prefix it with an underscore: '_TEST'
|
||||
>> The local constant "TEST" is declared but never used in the block. If this is intended, prefix it with an underscore: "_TEST".
|
||||
>> WARNING
|
||||
>> Line: 8
|
||||
>> SHADOWED_VARIABLE
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ GDTEST_OK
|
|||
>> WARNING
|
||||
>> Line: 2
|
||||
>> UNUSED_VARIABLE
|
||||
>> The local variable 'abs' is declared but never used in the block. If this is intended, prefix it with an underscore: '_abs'
|
||||
>> The local variable "abs" is declared but never used in the block. If this is intended, prefix it with an underscore: "_abs".
|
||||
>> WARNING
|
||||
>> Line: 2
|
||||
>> SHADOWED_GLOBAL_IDENTIFIER
|
||||
>> The variable 'abs' has the same name as a built-in function.
|
||||
>> The variable "abs" has the same name as a built-in function.
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ GDTEST_OK
|
|||
>> WARNING
|
||||
>> Line: 8
|
||||
>> UNUSED_VARIABLE
|
||||
>> The local variable 'foo' is declared but never used in the block. If this is intended, prefix it with an underscore: '_foo'
|
||||
>> The local variable "foo" is declared but never used in the block. If this is intended, prefix it with an underscore: "_foo".
|
||||
>> WARNING
|
||||
>> Line: 8
|
||||
>> SHADOWED_VARIABLE
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ GDTEST_OK
|
|||
>> WARNING
|
||||
>> Line: 2
|
||||
>> UNUSED_VARIABLE
|
||||
>> The local variable 'test' is declared but never used in the block. If this is intended, prefix it with an underscore: '_test'
|
||||
>> The local variable "test" is declared but never used in the block. If this is intended, prefix it with an underscore: "_test".
|
||||
>> WARNING
|
||||
>> Line: 2
|
||||
>> SHADOWED_VARIABLE
|
||||
|
|
|
|||
|
|
@ -2,6 +2,6 @@ GDTEST_OK
|
|||
>> WARNING
|
||||
>> Line: 11
|
||||
>> STATIC_CALLED_ON_INSTANCE
|
||||
>> The function 'num_uint64()' is a static function but was called from an instance. Instead, it should be directly called from the type: 'String.num_uint64()'.
|
||||
>> The function "num_uint64()" is a static function but was called from an instance. Instead, it should be directly called from the type: "String.num_uint64()".
|
||||
8589934592
|
||||
8589934592
|
||||
|
|
|
|||
|
|
@ -2,4 +2,4 @@ GDTEST_OK
|
|||
>> WARNING
|
||||
>> Line: 2
|
||||
>> UNASSIGNED_VARIABLE
|
||||
>> The variable '__' was used but never assigned a value.
|
||||
>> The variable "__" was used but never assigned a value.
|
||||
|
|
|
|||
|
|
@ -2,4 +2,4 @@ GDTEST_OK
|
|||
>> WARNING
|
||||
>> Line: 4
|
||||
>> UNASSIGNED_VARIABLE_OP_ASSIGN
|
||||
>> Using assignment with operation but the variable '__' was not previously assigned a value.
|
||||
>> Using assignment with operation but the variable "__" was not previously assigned a value.
|
||||
|
|
|
|||
|
|
@ -2,4 +2,4 @@ GDTEST_OK
|
|||
>> WARNING
|
||||
>> Line: 7
|
||||
>> UNREACHABLE_CODE
|
||||
>> Unreachable code (statement after return) in function 'test()'.
|
||||
>> Unreachable code (statement after return) in function "test()".
|
||||
|
|
|
|||
|
|
@ -2,4 +2,4 @@ GDTEST_OK
|
|||
>> WARNING
|
||||
>> Line: 2
|
||||
>> UNUSED_PARAMETER
|
||||
>> The parameter 'p_arg2' is never used in the function 'function_with_unused_argument'. If this is intended, prefix it with an underscore: '_p_arg2'
|
||||
>> The parameter "p_arg2" is never used in the function "function_with_unused_argument()". If this is intended, prefix it with an underscore: "_p_arg2".
|
||||
|
|
|
|||
|
|
@ -2,4 +2,4 @@ GDTEST_OK
|
|||
>> WARNING
|
||||
>> Line: 2
|
||||
>> UNUSED_VARIABLE
|
||||
>> The local variable 'unused' is declared but never used in the block. If this is intended, prefix it with an underscore: '_unused'
|
||||
>> The local variable "unused" is declared but never used in the block. If this is intended, prefix it with an underscore: "_unused".
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue