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 with historyItem implicitly. So even though $historyItem is not directly used, it cannot be removed.
List($history) { $historyItem in
Foo(
url: historyItem.url
)
}
In short, make it not trigger on $-prefixed parameters in a closure.
Environment
- SwiftLint version: 0.56.0
- Xcode version: Xcode 15.4, Build version 15F31d
- Installation method used: Installer
- Configuration file:
only_rules:
- unused_parameter
New Issue Checklist
Bug Description
The rule triggers on
$historyItem, but the parameter is kinda used.$historyItemresults in a binding, but it also makes it possible to access the normal variable withhistoryItemimplicitly. So even though$historyItemis not directly used, it cannot be removed.In short, make it not trigger on
$-prefixed parameters in a closure.Environment