You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an unused variable has a name and is provided in a macro, it is reported by used_ignored_variable. Naming such variables contributes to the code readability. Similar variables used outside macro context are not reported.
# src/test.erl [FAIL]
- used_ignored_variable (https://github.com/inaka/elvis_core/tree/main/doc_rules/elvis_style/used_ignored_variable.md)
- Ignored variable is being used on line 12 and column 19.
- Ignored variable is being used on line 13 and column 15.
Expected Behavior
Elvis allows the usage of named unused variables inside macros.
Additional Context
OS: Linux
Erlang version: 24.3
The text was updated successfully, but these errors were encountered:
Bug Description
When an unused variable has a name and is provided in a macro, it is reported by used_ignored_variable. Naming such variables contributes to the code readability. Similar variables used outside macro context are not reported.
To Reproduce
Run elvis on this snippet:
With this config:
Result:
Expected Behavior
Elvis allows the usage of named unused variables inside macros.
Additional Context
The text was updated successfully, but these errors were encountered: