summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/analyzer/warnings
Commit message (Collapse)AuthorAgeFilesLines
* Fix analyzer pushing SHADOWED_VARIABLE warning for members shadowed in ↵girdenis-p2024-11-067-14/+38
| | | | | | | | | | subclasses This fixes a bug in the analyzer where it did not push the SHADOWED_VARIABLE_BASE_CLASS warning for members shadowed by variable in subclass. It does this by comparing the class which contains the shadowed member with the class containing the variable, and pushing SHADOWED_VARIABLE only if the classes are the same. Additionally, SHADOWED_VARIABLE_BASE_CLASS can take an extra symbol which helps to specify the line for non native base class.
* Merge pull request #89675 from dalexeev/gds-correct-unused-signal-warningRémi Verschelde2024-09-052-8/+29
|\ | | | | | | GDScript: Do not produce `UNUSED_SIGNAL` warning for common implicit uses
| * GDScript: Do not produce `UNUSED_SIGNAL` warning for common implicit usesDanil Alexeev2024-03-192-8/+29
| |
* | StringName Dictionary keysrune-scape2024-08-291-2/+2
| | | | | | | | | | also added 'is_string()' method to Variant and refactored many String type comparisons to use it instead
* | Merge pull request #78178 from dalexeev/gds-add-non-tool-extends-tool-errorRémi Verschelde2024-08-285-0/+27
|\ \ | | | | | | | | | GDScript: Add warning if non-`@tool` class extends `@tool` class
| * | GDScript: Add warning if non-`@tool` class extends `@tool` classDanil Alexeev2024-07-045-0/+27
| | |
* | | GDScript: Fix false positive cases of `ENUM_VARIABLE_WITHOUT_DEFAULT`Danil Alexeev2024-07-221-0/+14
|/ /
* | GDScript: Fix false positive `CONFUSABLE_CAPTURE_REASSIGNMENT` warningsDanil Alexeev2024-06-282-42/+21
| |
* | GDScript: Add `CONFUSABLE_CAPTURE_REASSIGNMENT` warningDanil Alexeev2024-06-282-0/+63
| |
* | GDScript: Warn when enum variable has no defaultGeorge Marques2024-04-162-0/+16
| | | | | | | | | | The default will always be set to `0`, so if it's not a valid value in the enum, the warning is shown.
* | Merge pull request #84043 from dalexeev/gds-fix-unsafe-cast-warningRémi Verschelde2024-04-092-0/+57
|\ \ | |/ |/| | | GDScript: Fix `UNSAFE_CAST` warning
| * GDScript: Fix `UNSAFE_CAST` warningDanil Alexeev2023-10-272-0/+57
| |
* | GDScript: Fix `@warning_ignore` annotation issuesDanil Alexeev2024-03-123-2/+19
|/
* GDScript: Fix `UNSAFE_CALL_ARGUMENT` warning for `Variant` constructorsDanil Alexeev2023-09-302-8/+49
|
* Merge pull request #75988 from dalexeev/gds-unsafe-call-argumentYuri Sizov2023-09-273-0/+71
|\ | | | | | | GDScript: Improve call analysis
| * GDScript: Improve call analysisDanil Alexeev2023-09-213-0/+71
| | | | | | | | | | | | * Add missing `UNSAFE_CALL_ARGUMENT` warning. * Fix `Object` constructor. * Display an error for non-existent static methods.
* | Check if any global script class is shadowed by a variableChia-Hsiang Cheng2023-09-262-9/+16
|/
* Remove REDUNDANT_FOR_VARIABLE_TYPEryanabx2023-09-124-18/+0
| | | | Remove REDUNDANT_FOR_VARIABLE_TYPE
* GDScript: Add static typing for `for` loop variableDanil Alexeev2023-08-174-0/+18
|
* GDScript: Fix bug with identifier shadowed below in current scopeDanil Alexeev2023-07-268-0/+73
|
* Fix for not being able to ignore shadowing warnings on class scopejpcerrone2023-07-242-6/+14
|
* GDScript: Fix warning ignoring for member variablesDanil Alexeev2023-05-122-0/+19
|
* GDScript: Reorganize and unify warningsDanil Alexeev2023-04-283-6/+6
|
* Fix mistakes in documentation and GDScript errorsVolTer2023-04-101-1/+1
|
* Merge pull request #74949 from dalexeev/gds-fix-await-warningYuri Sizov2023-03-202-0/+90
|\ | | | | GDScript: Fix false positive `REDUNDANT_AWAIT` warning
| * GDScript: Fix false positive `REDUNDANT_AWAIT` warningDanil Alexeev2023-03-162-0/+90
| |
* | GDScript: Fix missing warning for shadowing of built-in typesDmitrii Maganov2023-03-132-0/+38
|/
* GDScript: Don't use validated call for vararg methodsGeorge Marques2023-02-241-1/+1
| | | | | Since they may have runtime type validation, we cannot use the validated call.
* Make global scope enums accessible as types in GDScriptGeorge Marques2023-02-192-2/+2
| | | | | | Add functions to CoreConstant so enums can be properly deduced. Also add the enums in release builds to make consistent with ClassDB enums and avoid differences in script compilation between debug and release.
* GDScript: Add warnings that are set to error by defaultGeorge Marques2023-02-028-0/+74
| | | | | | | | | | | | | | | | | | | | | | | - 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.
* Revert "GDScript: Add warnings that are set to error by default"Rémi Verschelde2023-02-018-64/+0
| | | | | | | | | This reverts commit a166833bfa23a21a7bff196a85a20b014e7c1396. This caused multiple regressions. Needs to be redone with more testing before merge. Fixes #72501.
* GDScript: Add warnings that are set to error by defaultGeorge Marques2023-02-018-0/+64
| | | | | | | | | | | | | | | | | | | | | | | - 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.
* GDScript: Fix constant conversionsDmitrii Maganov2023-01-294-0/+21
|
* Add support for Unicode identifiers in GDScriptGeorge Marques2023-01-211-1/+1
| | | | | | This is using an adapted version of UAX#31 to not rely on the ICU database (which isn't available in builds without TextServerAdvanced). It allows most characters used in diverse scripts but not everything.
* GDScript: Fix typing of lambda functionsDmitrii Maganov2023-01-064-0/+21