UnusedAssign
Identifies variable definitions that aren't used.
The following examples contain code snippets that either fail or pass this check.
Parameter | Description |
---|---|
enabled |
Whether this check is enabled. |
severity |
The severity of the check. |
Disabling this check
Anchor link to section titled "Disabling this check"Variables that are known to be unused can be prefixed by a _
to disable the check. Example:
This check is safe to disable.