no-unused-vars
August 21, 2025 ยท View on GitHub
The {"extends": "solhint:recommended"} property in a configuration file enables this rule.
Description
Variable "name" is unused.
Options
This rule accepts an array of options:
| Index | Description | Default Value |
|---|---|---|
| 0 | Rule severity. Must be one of "error", "warn", "off". | warn |
| 1 | A JSON object with a single property "validateParameters" as boolean specifying whether to report unused parameters from functions and modifiers. | {"validateParameters":true} |
Example Config
{
"rules": {
"no-unused-vars": [
"warn",
{
"validateParameters": true
}
]
}
}
Examples
This rule does not have examples.
Version
This rule was introduced in Solhint 5.0.4