Unused parameters are misleading. Whatever the values passed to such parameters, the behavior will be the same.
Noncompliant Code Example
func doSomething(a: Int, b: Int) { // "b" is unused
compute(a)
}
Compliant Solution
void doSomething(a: Int) {
compute(a)
}
Exceptions
Override methods are excluded.
override doSomething(a: Int, b: Int) { // no issue reported on b
compute(a)
}