godot/modules/gdscript/tests/scripts/analyzer/errors
George Marques a166833bfa
GDScript: Add warnings that are set to error by default
- Adds a list of default levels for all warning so they can be set
  individually.
- Add warnings set by default to error for:
  - Using `get_node()` without `@onready`.
  - Using `@onready` together with `@export`.
  - Inferring a static type with a Variant value.
  - Overriding a native engine method.
- Adjust how annotations to ignore warnings are treated so they also
  apply to method parameters.
- Clean up a bit how ignored warnings are set. There were two sets but
  only one was actually being used.
- Set all warnings to the `WARN` level for tests, so they they can be
  properly tested.
- Fix enum types in native methods signatures being set to `int`.
- Fix native enums being treated as Dictionary by mistake.
- Make name of native enum types use the class they are defined in, not
  the direct super class of the script. This ensures they are always
  equal even when coming from different sources.
- Fix error for signature mismatch that was only showing the first
  default argument as having a default. Now it shows for all.
2023-02-01 00:05:14 -03:00
..
abstract_class_instantiate.gd GDScript: Fix extending abstract classes, forbid their construction 2023-01-12 17:47:10 +02:00
abstract_class_instantiate.out GDScript: Fix extending abstract classes, forbid their construction 2023-01-12 17:47:10 +02:00
abstract_script_instantiate.gd GDScript: Fix extending abstract classes, forbid their construction 2023-01-12 17:47:10 +02:00
abstract_script_instantiate.out GDScript: Fix extending abstract classes, forbid their construction 2023-01-12 17:47:10 +02:00
annotation_non_constant_parameter.gd GDScript: Allow constant expressions in annotations 2023-01-25 18:43:56 +03:00
annotation_non_constant_parameter.out GDScript: Allow constant expressions in annotations 2023-01-25 18:43:56 +03:00
assign_enum.gd Assorted enum and native type fixes 2023-01-09 11:08:07 -05:00
assign_enum.out Assorted enum and native type fixes 2023-01-09 11:08:07 -05:00
assign_named_enum.gd Assorted enum and native type fixes 2023-01-09 11:08:07 -05:00
assign_named_enum.out Assorted enum and native type fixes 2023-01-09 11:08:07 -05:00
assign_signal.gd Add MethodInfo to signal datatype 2022-12-21 22:49:51 -05:00
assign_signal.out Add MethodInfo to signal datatype 2022-12-21 22:49:51 -05:00
assymetric_assignment_bad.gd GDScript: Fix constant conversions 2023-01-29 00:01:53 +02:00
assymetric_assignment_bad.out GDScript: Fix constant conversions 2023-01-29 00:01:53 +02:00
bitwise_float_left_operand.gd
bitwise_float_left_operand.out
bitwise_float_right_operand.gd
bitwise_float_right_operand.out
class_name_shadows_builtin_type.gd
class_name_shadows_builtin_type.out GDScript: Allow out of order member resolution 2022-12-14 21:44:05 -05:00
constant_array_index_assign.gd GDScript: Begin making constants deep, not shallow or flat 2023-01-08 07:29:10 +02:00
constant_array_index_assign.out GDScript: Begin making constants deep, not shallow or flat 2023-01-08 07:29:10 +02:00
constant_dictionary_index_assign.gd GDScript: Begin making constants deep, not shallow or flat 2023-01-08 07:29:10 +02:00
constant_dictionary_index_assign.out GDScript: Begin making constants deep, not shallow or flat 2023-01-08 07:29:10 +02:00
constant_name_shadows_builtin_type.gd
constant_name_shadows_builtin_type.out
constant_subscript_type.gd GDScript: Fix type for index subscript on constant 2023-01-10 07:10:00 +02:00
constant_subscript_type.out GDScript: Fix type for index subscript on constant 2023-01-10 07:10:00 +02:00
constant_used_as_function.gd
constant_used_as_function.out
constructor_call_type.gd GDScript: Fix return type of constructor call for extending class 2022-12-27 23:02:12 +02:00
constructor_call_type.out GDScript: Fix return type of constructor call for extending class 2022-12-27 23:02:12 +02:00
cyclic_inheritance.gd GDScript: Allow out of order member resolution 2022-12-14 21:44:05 -05:00
cyclic_inheritance.out GDScript: Allow out of order member resolution 2022-12-14 21:44:05 -05:00
cyclic_ref_const.gd GDScript: Allow out of order member resolution 2022-12-14 21:44:05 -05:00
cyclic_ref_const.out GDScript: Allow out of order member resolution 2022-12-14 21:44:05 -05:00
cyclic_ref_enum_value.gd GDScript: Allow out of order member resolution 2022-12-14 21:44:05 -05:00
cyclic_ref_enum_value.out GDScript: Allow out of order member resolution 2022-12-14 21:44:05 -05:00
cyclic_ref_enum.gd GDScript: Allow out of order member resolution 2022-12-14 21:44:05 -05:00
cyclic_ref_enum.out GDScript: Allow out of order member resolution 2022-12-14 21:44:05 -05:00
cyclic_ref_external_a.notest.gd GDScript: Allow out of order member resolution 2022-12-14 21:44:05 -05:00
cyclic_ref_external.gd GDScript: Allow out of order member resolution 2022-12-14 21:44:05 -05:00
cyclic_ref_external.out GDScript: Allow out of order member resolution 2022-12-14 21:44:05 -05:00
cyclic_ref_func.gd GDScript: Allow out of order member resolution 2022-12-14 21:44:05 -05:00
cyclic_ref_func.out GDScript: Allow out of order member resolution 2022-12-14 21:44:05 -05:00
cyclic_ref_override.gd GDScript: Allow out of order member resolution 2022-12-14 21:44:05 -05:00
cyclic_ref_override.out GDScript: Allow out of order member resolution 2022-12-14 21:44:05 -05:00
cyclic_ref_var.gd GDScript: Allow out of order member resolution 2022-12-14 21:44:05 -05:00
cyclic_ref_var.out GDScript: Allow out of order member resolution 2022-12-14 21:44:05 -05:00
dictionary_duplicate_key_lua_with_string.gd
dictionary_duplicate_key_lua_with_string.out
dictionary_duplicate_key_lua.gd
dictionary_duplicate_key_lua.out
dictionary_duplicate_key_python.gd
dictionary_duplicate_key_python.out
dictionary_string_stringname_equivalent.gd Unify String and StringName 2022-12-05 21:46:47 -05:00
dictionary_string_stringname_equivalent.out Unify String and StringName 2022-12-05 21:46:47 -05:00
enum_bad_method.gd Assorted enum and native type fixes 2023-01-09 11:08:07 -05:00
enum_bad_method.out Assorted enum and native type fixes 2023-01-09 11:08:07 -05:00
enum_bad_value.gd Assorted enum and native type fixes 2023-01-09 11:08:07 -05:00
enum_bad_value.out Assorted enum and native type fixes 2023-01-09 11:08:07 -05:00
enum_class_var_assign_with_wrong_enum_type.gd GDScript: Consolidate behavior for assigning enum types 2022-02-03 13:32:16 -03:00
enum_class_var_assign_with_wrong_enum_type.out GDScript: Fix constant conversions 2023-01-29 00:01:53 +02:00
enum_class_var_init_with_wrong_enum_type.gd GDScript: Consolidate behavior for assigning enum types 2022-02-03 13:32:16 -03:00
enum_class_var_init_with_wrong_enum_type.out GDScript: Fix constant conversions 2023-01-29 00:01:53 +02:00
enum_duplicate_bad_method.gd Assorted enum and native type fixes 2023-01-09 11:08:07 -05:00
enum_duplicate_bad_method.out Assorted enum and native type fixes 2023-01-09 11:08:07 -05:00
enum_float_value.gd
enum_float_value.out
enum_function_parameter_wrong_type.gd Assorted enum and native type fixes 2023-01-09 11:08:07 -05:00
enum_function_parameter_wrong_type.out GDScript: Fix constant conversions 2023-01-29 00:01:53 +02:00
enum_function_return_wrong_type.gd Assorted enum and native type fixes 2023-01-09 11:08:07 -05:00
enum_function_return_wrong_type.out GDScript: Fix constant conversions 2023-01-29 00:01:53 +02:00
enum_local_var_assign_outer_with_wrong_enum_type.gd Assorted enum and native type fixes 2023-01-09 11:08:07 -05:00
enum_local_var_assign_outer_with_wrong_enum_type.out GDScript: Fix constant conversions 2023-01-29 00:01:53 +02:00
enum_local_var_assign_with_wrong_enum_type.gd GDScript: Consolidate behavior for assigning enum types 2022-02-03 13:32:16 -03:00
enum_local_var_assign_with_wrong_enum_type.out GDScript: Fix constant conversions 2023-01-29 00:01:53 +02:00
enum_local_var_init_with_wrong_enum_type.gd GDScript: Consolidate behavior for assigning enum types 2022-02-03 13:32:16 -03:00
enum_local_var_init_with_wrong_enum_type.out GDScript: Fix constant conversions 2023-01-29 00:01:53 +02:00
enum_name_shadows_builtin_type.gd
enum_name_shadows_builtin_type.out
enum_native_bad_value.gd Assorted enum and native type fixes 2023-01-09 11:08:07 -05:00
enum_native_bad_value.out Assorted enum and native type fixes 2023-01-09 11:08:07 -05:00
enum_preload_unnamed_assign_to_named.gd Add GDScript .editorconfig rules 2023-01-10 12:25:35 -05:00
enum_preload_unnamed_assign_to_named.out GDScript: Fix constant conversions 2023-01-29 00:01:53 +02:00
enum_shadows_base_enum.gd Assorted enum and native type fixes 2023-01-09 11:08:07 -05:00
enum_shadows_base_enum.out Assorted enum and native type fixes 2023-01-09 11:08:07 -05:00
enum_string_value.gd
enum_string_value.out
enum_unnamed_assign_to_named.gd Assorted enum and native type fixes 2023-01-09 11:08:07 -05:00
enum_unnamed_assign_to_named.out GDScript: Fix constant conversions 2023-01-29 00:01:53 +02:00
for_loop_on_constant_float.gd GDScript: Fix typing of iterator in for loop 2023-01-13 15:36:11 +02:00
for_loop_on_constant_float.out GDScript: Fix typing of iterator in for loop 2023-01-13 15:36:11 +02:00
for_loop_on_constant_int.gd GDScript: Fix typing of iterator in for loop 2023-01-13 15:36:11 +02:00
for_loop_on_constant_int.out GDScript: Fix typing of iterator in for loop 2023-01-13 15:36:11 +02:00
for_loop_on_enum_value.gd GDScript: Fix typing of iterator in for loop 2023-01-13 15:36:11 +02:00
for_loop_on_enum_value.out GDScript: Fix typing of iterator in for loop 2023-01-13 15:36:11 +02:00
for_loop_on_hard_float.gd GDScript: Fix typing of iterator in for loop 2023-01-13 15:36:11 +02:00
for_loop_on_hard_float.out GDScript: Fix typing of iterator in for loop 2023-01-13 15:36:11 +02:00
for_loop_on_hard_int.gd GDScript: Fix typing of iterator in for loop 2023-01-13 15:36:11 +02:00
for_loop_on_hard_int.out GDScript: Fix typing of iterator in for loop 2023-01-13 15:36:11 +02:00
for_loop_on_hard_iterator.gd GDScript: Fix typing of iterator in for loop 2023-01-13 15:36:11 +02:00
for_loop_on_hard_iterator.out GDScript: Fix typing of iterator in for loop 2023-01-13 15:36:11 +02:00
for_loop_on_hard_string.gd GDScript: Fix typing of iterator in for loop 2023-01-13 15:36:11 +02:00
for_loop_on_hard_string.out GDScript: Fix typing of iterator in for loop 2023-01-13 15:36:11 +02:00
for_loop_on_literal_bool.gd GDScript: Fix typing of iterator in for loop 2023-01-13 15:36:11 +02:00
for_loop_on_literal_bool.out GDScript: Fix typing of iterator in for loop 2023-01-13 15:36:11 +02:00
for_loop_on_literal_int.gd GDScript: Fix typing of iterator in for loop 2023-01-13 15:36:11 +02:00
for_loop_on_literal_int.out GDScript: Fix typing of iterator in for loop 2023-01-13 15:36:11 +02:00
function_dont_match_parent_signature_parameter_count_less.gd GDScript: Check if method signature matches the parent 2022-03-06 11:16:20 -03:00
function_dont_match_parent_signature_parameter_count_less.out Improve parent signature error 2022-12-01 15:16:16 +01:00
function_dont_match_parent_signature_parameter_count_more.gd GDScript: Check if method signature matches the parent 2022-03-06 11:16:20 -03:00
function_dont_match_parent_signature_parameter_count_more.out Improve parent signature error 2022-12-01 15:16:16 +01:00
function_dont_match_parent_signature_parameter_default_values.gd GDScript: Check if method signature matches the parent 2022-03-06 11:16:20 -03:00
function_dont_match_parent_signature_parameter_default_values.out GDScript: Add warnings that are set to error by default 2023-02-01 00:05:14 -03:00
function_dont_match_parent_signature_parameter_type.gd GDScript: Check if method signature matches the parent 2022-03-06 11:16:20 -03:00
function_dont_match_parent_signature_parameter_type.out Improve parent signature error 2022-12-01 15:16:16 +01:00
function_dont_match_parent_signature_return_type.gd GDScript: Check if method signature matches the parent 2022-03-06 11:16:20 -03:00
function_dont_match_parent_signature_return_type.out Improve parent signature error 2022-12-01 15:16:16 +01:00
function_used_as_property.gd
function_used_as_property.out
incompatible_assignment.gd GDScript: Fix some issues with assignments that involve untyped things 2023-01-12 17:07:45 +02:00
incompatible_assignment.out GDScript: Fix some issues with assignments that involve untyped things 2023-01-12 17:07:45 +02:00
inferring_with_weak_type_local_variable.gd GDScript: Disallow type inference with untyped initializer 2023-01-13 20:51:29 +02:00
inferring_with_weak_type_local_variable.out GDScript: Disallow type inference with untyped initializer 2023-01-13 20:51:29 +02:00
inferring_with_weak_type_member_variable.gd GDScript: Disallow type inference with untyped initializer 2023-01-13 20:51:29 +02:00
inferring_with_weak_type_member_variable.out GDScript: Disallow type inference with untyped initializer 2023-01-13 20:51:29 +02:00
inferring_with_weak_type_parameter.gd GDScript: Disallow type inference with untyped initializer 2023-01-13 20:51:29 +02:00
inferring_with_weak_type_parameter.out GDScript: Disallow type inference with untyped initializer 2023-01-13 20:51:29 +02:00
invalid_array_index.gd
invalid_array_index.out GDScript: Fix issues with typed arrays 2023-01-31 11:54:41 +02:00
invalid_concatenation_bool.gd
invalid_concatenation_bool.out
invalid_concatenation_dictionary.gd
invalid_concatenation_dictionary.out
invalid_concatenation_mixed.gd
invalid_concatenation_mixed.out
invalid_constant.gd
invalid_constant.out
lambda_no_return.gd GDScript: Fix typing of lambda functions 2023-01-06 16:38:22 +02:00
lambda_no_return.out GDScript: Fix typing of lambda functions 2023-01-06 16:38:22 +02:00
lambda_wrong_return.gd GDScript: Fix typing of lambda functions 2023-01-06 16:38:22 +02:00
lambda_wrong_return.out GDScript: Fix constant conversions 2023-01-29 00:01:53 +02:00
leading_number_separator.gd
leading_number_separator.out
match_with_subscript.gd GDScript: Allow variables in match patterns 2023-01-28 19:53:27 -03:00
match_with_subscript.out GDScript: Allow variables in match patterns 2023-01-28 19:53:27 -03:00
match_with_variable_expression.gd GDScript: Allow variables in match patterns 2023-01-28 19:53:27 -03:00
match_with_variable_expression.out GDScript: Allow variables in match patterns 2023-01-28 19:53:27 -03:00
missing_argument.gd
missing_argument.out
native_type_errors.gd Assorted enum and native type fixes 2023-01-09 11:08:07 -05:00
native_type_errors.out Assorted enum and native type fixes 2023-01-09 11:08:07 -05:00
outer_class_constants_as_variant.gd Fix GDScript base and outer classes, signals and functions lookup order 2023-01-09 20:12:10 -05:00
outer_class_constants_as_variant.out Fix GDScript base and outer classes, signals and functions lookup order 2023-01-09 20:12:10 -05:00
outer_class_constants.gd Fix GDScript base and outer classes, signals and functions lookup order 2023-01-09 20:12:10 -05:00
outer_class_constants.out Fix GDScript base and outer classes, signals and functions lookup order 2023-01-09 20:12:10 -05:00
outer_class_instance_constants_as_variant.gd Fix GDScript base and outer classes, signals and functions lookup order 2023-01-09 20:12:10 -05:00
outer_class_instance_constants_as_variant.out Fix GDScript base and outer classes, signals and functions lookup order 2023-01-09 20:12:10 -05:00
outer_class_instance_constants.gd Fix GDScript base and outer classes, signals and functions lookup order 2023-01-09 20:12:10 -05:00
outer_class_instance_constants.out Fix GDScript base and outer classes, signals and functions lookup order 2023-01-09 20:12:10 -05:00
outer_class_lookup.gd Add GDScript .editorconfig rules 2023-01-10 12:25:35 -05:00
outer_class_lookup.out Fix outer class lookup 2022-12-17 17:57:00 -05:00
overload_script_variable.gd Fix ability to overload "script" variable 2022-11-17 17:21:12 -05:00
overload_script_variable.out Fix ability to overload "script" variable 2022-11-17 17:21:12 -05:00
params_default_forward_reference.gd GDScript: Fix parsing default parameter values from function calls 2022-01-13 19:28:39 -05:00
params_default_forward_reference.out GDScript: Fix parsing default parameter values from function calls 2022-01-13 19:28:39 -05:00
preload_enum_error.gd Assorted enum and native type fixes 2023-01-09 11:08:07 -05:00
preload_enum_error.out GDScript: Fix constant conversions 2023-01-29 00:01:53 +02:00
property_function_get_type_error.gd GDScript: Report property type errors 2021-10-08 22:06:15 +02:00
property_function_get_type_error.out GDScript: Report property type errors 2021-10-08 22:06:15 +02:00
property_function_set_type_error.gd GDScript: Report property type errors 2021-10-08 22:06:15 +02:00
property_function_set_type_error.out GDScript: Report property type errors 2021-10-08 22:06:15 +02:00
property_inline_get_type_error.gd GDScript: Report property type errors 2021-10-08 22:06:15 +02:00
property_inline_get_type_error.out GDScript: Report property type errors 2021-10-08 22:06:15 +02:00
property_inline_set_type_error.gd GDScript: Report property type errors 2021-10-08 22:06:15 +02:00
property_inline_set_type_error.out Assorted enum and native type fixes 2023-01-09 11:08:07 -05:00
property_used_as_function.gd
property_used_as_function.out
redefine_class_constant.gd
redefine_class_constant.out
redefine_local_constant.gd
redefine_local_constant.out
return_null_in_void_func.gd Add GDScript .editorconfig rules 2023-01-10 12:25:35 -05:00
return_null_in_void_func.out GDScript: Disallow return with value in void functions 2022-12-29 03:06:13 +02:00
return_variant_in_void_func.gd Add GDScript .editorconfig rules 2023-01-10 12:25:35 -05:00
return_variant_in_void_func.out GDScript: Disallow return with value in void functions 2022-12-29 03:06:13 +02:00
setter_parameter_uses_property_type.gd GDScript: Make setter parameter type same as variable type 2021-10-12 09:39:23 -03:00
setter_parameter_uses_property_type.out Unify typing of variables, constants and parameters in GDScript 2023-01-06 01:10:04 +02:00
super_nonexistent_base_method.gd
super_nonexistent_base_method.out
typed_array_assign_differently_typed.gd GDScript: Fix issues with typed arrays 2023-01-31 11:54:41 +02:00
typed_array_assign_differently_typed.out GDScript: Fix issues with typed arrays 2023-01-31 11:54:41 +02:00
typed_array_assignment.gd GDScript: Fix issues with typed arrays 2023-01-31 11:54:41 +02:00
typed_array_assignment.out GDScript: Fix issues with typed arrays 2023-01-31 11:54:41 +02:00
typed_array_init_with_unconvertable_in_literal.gd GDScript: Fix issues with typed arrays 2023-01-31 11:54:41 +02:00
typed_array_init_with_unconvertable_in_literal.out GDScript: Fix issues with typed arrays 2023-01-31 11:54:41 +02:00
typed_array_pass_differently_to_typed.gd GDScript: Fix issues with typed arrays 2023-01-31 11:54:41 +02:00
typed_array_pass_differently_to_typed.out GDScript: Fix issues with typed arrays 2023-01-31 11:54:41 +02:00
use_value_of_void_function_builtin_method.gd GDScript: Make using return of void function an error 2022-12-30 13:35:38 -03:00
use_value_of_void_function_builtin_method.out GDScript: Make using return of void function an error 2022-12-30 13:35:38 -03:00
use_value_of_void_function_custom_method.gd GDScript: Make using return of void function an error 2022-12-30 13:35:38 -03:00
use_value_of_void_function_custom_method.out GDScript: Make using return of void function an error 2022-12-30 13:35:38 -03:00
use_value_of_void_function_gd_utility.gd GDScript: Make using return of void function an error 2022-12-30 13:35:38 -03:00
use_value_of_void_function_gd_utility.out GDScript: Make using return of void function an error 2022-12-30 13:35:38 -03:00
use_value_of_void_function_native_method.gd GDScript: Make using return of void function an error 2022-12-30 13:35:38 -03:00
use_value_of_void_function_native_method.out GDScript: Make using return of void function an error 2022-12-30 13:35:38 -03:00
use_value_of_void_function_utility.gd GDScript: Make using return of void function an error 2022-12-30 13:35:38 -03:00
use_value_of_void_function_utility.out GDScript: Make using return of void function an error 2022-12-30 13:35:38 -03:00
variable_name_shadows_builtin_type.gd
variable_name_shadows_builtin_type.out
variable_overloads_superclass_function.gd Fix ability to overload "script" variable 2022-11-17 17:21:12 -05:00
variable_overloads_superclass_function.out Fix ability to overload "script" variable 2022-11-17 17:21:12 -05:00