Rule Request: Prefer for case let
when nil tuple members are skipped
#1977
Labels
rule-request
Requests for a new rules.
New Issue Checklist
Rule Request
We should prefer
for case let
when nil tuple members are skipped. For example, the general patternshould be corrected to:
Rule should be added because it makes for more readable and concise code.
Here's a before/after commit from SwiftLint itself (a02d4e1)
Would trigger:
Wouldn't trigger:
Should only be configurable on severity.
Enabled by default. I can't think of too many cases where you wouldn't want this.
The text was updated successfully, but these errors were encountered: