Parameters
Reports GDScript function/method parameters that are declared but never used in their owning function body.
This inspection helps you spot dead or redundant parameters. It checks only within the enclosing function or method and ignores signal declarations. Parameters whose names start with an underscore are treated as intentionally unused and are not reported. If a type hint is present but refers to an unresolved non‑builtin type, the parameter is ignored to prevent false positives.
Examples:
Quick fix actions:
Prefix the parameter with an underscore to mark it as intentionally unused.
Locating this inspection
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
GdUnusedParameter- Via Settings dialog
Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.
The inspection does not report parameters that are referenced anywhere in their function/method body. It also skips signal parameters and parameters with unresolved type to avoid false alarms.
Inspection ID: GdUnusedParameter
Suppressing Inspection
You can suppress this inspection by placing the following comment marker before the code fragment where you no longer want messages from this inspection to appear:
More detailed instructions as well as other ways and options that you have can be found in the product documentation:
Inspection Details | |
|---|---|
By default bundled with: |