virtualx-engine/modules/gdscript
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
..
doc_classes GDScript: Fix @icon annotation 2023-01-31 17:43:54 +03:00
editor Allow unicode identifier in GDScript syntax highlighter 2023-01-29 13:17:05 +08:00
icons Make script type distinguishable by icon 2022-01-13 12:29:05 +01:00
language_server call update_exports from LSP didSave function 2023-01-20 19:16:53 -08:00
tests GDScript: Add warnings that are set to error by default 2023-02-01 00:05:14 -03:00
config.py [Scons] Implement module dependency sorting. 2022-08-04 20:00:19 +02:00
gdscript.cpp Merge pull request #72444 from reduz/fix-global-class-parsing 2023-01-31 13:20:00 +01:00
gdscript.h Merge pull request #71687 from reduz/support-script-class-name-in-efs 2023-01-21 16:54:23 +01:00
gdscript_analyzer.cpp GDScript: Add warnings that are set to error by default 2023-02-01 00:05:14 -03:00
gdscript_analyzer.h GDScript: Add warnings that are set to error by default 2023-02-01 00:05:14 -03:00
gdscript_byte_codegen.cpp GDScript: Fix issues with typed arrays 2023-01-31 11:54:41 +02:00
gdscript_byte_codegen.h Merge pull request #70948 from vnen/gdscript-ptr-method-name-in-debug 2023-01-23 12:24:15 -03:00
gdscript_cache.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
gdscript_cache.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
gdscript_codegen.h Merge pull request #70948 from vnen/gdscript-ptr-method-name-in-debug 2023-01-23 12:24:15 -03:00
gdscript_compiler.cpp GDScript: Allow void functions to return calls to other void functions 2023-01-31 11:37:30 -03:00
gdscript_compiler.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
gdscript_disassembler.cpp GDScript: Add names for disassembling function pointers 2023-01-23 11:04:31 -03:00
gdscript_editor.cpp GDScript: Allow constant expressions in annotations 2023-01-25 18:43:56 +03:00
gdscript_function.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
gdscript_function.h GDScript: Add names for disassembling function pointers 2023-01-23 11:04:31 -03:00
gdscript_lambda_callable.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
gdscript_lambda_callable.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
gdscript_parser.cpp GDScript: Add warnings that are set to error by default 2023-02-01 00:05:14 -03:00
gdscript_parser.h GDScript: Add warnings that are set to error by default 2023-02-01 00:05:14 -03:00
gdscript_rpc_callable.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
gdscript_rpc_callable.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
gdscript_tokenizer.cpp Add support for Unicode identifiers in GDScript 2023-01-21 13:39:40 -03:00
gdscript_tokenizer.h Add support for Unicode identifiers in GDScript 2023-01-21 13:39:40 -03:00
gdscript_utility_functions.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
gdscript_utility_functions.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
gdscript_vm.cpp GDScript: Fix issues with typed arrays 2023-01-31 11:54:41 +02:00
gdscript_warning.cpp GDScript: Add warnings that are set to error by default 2023-02-01 00:05:14 -03:00
gdscript_warning.h GDScript: Add warnings that are set to error by default 2023-02-01 00:05:14 -03:00
register_types.cpp Remove references to compiled GDScript in export 2023-01-20 15:09:07 -03:00
register_types.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
SCsub SCons: Unify tools/target build type configuration 2022-09-26 16:31:46 +02:00