pattern_matching_keywords
should not trigger in some cases
#3852
Labels
bug
Unexpected and reproducible misbehavior.
New Issue Checklist
Describe the bug
pattern_matching_keywords
opt-in rule will warn this type of code.When matching a pattern it may be desirable to bind some elements of the tuple while comparing others to an existing variable. Currently,
pattern_matching_keywords
simply counts the number oflet
s andvar
s, causing it to miss cases like this.Environment
swiftlint version
to be sure)? Verified via unit tests on masterxcodebuild -version
)? Xcode 13.2.1, Build version 13C100The text was updated successfully, but these errors were encountered: