unused-parameter
rule should not trigger on binding closure parameter
#5740
Labels
bug
Unexpected and reproducible misbehavior.
New Issue Checklist
Bug Description
The rule triggers on
$historyItem
, but the parameter is kinda used.$historyItem
results in a binding, but it also makes it possible to access the normal variable withhistoryItem
implicitly. So even though$historyItem
is not directly used, it cannot be removed.In short, make it not trigger on
$
-prefixed parameters in a closure.Environment
The text was updated successfully, but these errors were encountered: