Inspectopedia 2025.3 Help

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:

func damage(target, amount): print("Damaged!") # 'target' and 'amount' are never used → reported func _process(_delta): # Leading underscore marks intentionally unused parameter → not reported pass func spawn(enemy: UnknownType): # Ignored if UnknownType cannot be resolved pass

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.

Settings or Preferences | Editor | Inspections | GdScript | Unused symbols

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:

//noinspection GdUnusedParameter

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:

JetBrains Rider 2025.3, Qodana for .NET 2025.3,

Last modified: 04 March 2026