diff options
author | George Marques <george@gmarqu.es> | 2023-02-02 11:57:22 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2023-02-02 12:07:25 -0300 |
commit | 273bf7210f44bc6ea729b44fb167716340ad7dff (patch) | |
tree | 81c5d50b0a5406060f2a7bad972415752233cd29 /scene | |
parent | 315d3c4d21e4ee7df1e45593205e35d7a034aa6d (diff) |
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.
Diffstat (limited to 'scene')
0 files changed, 0 insertions, 0 deletions