optional_enum_case_matching
false positive
#3057
Labels
bug
Unexpected and reproducible misbehavior.
optional_enum_case_matching
false positive
#3057
New Issue Checklist
Describe the bug
The rule picks up the pattern
_?
. This is incorrect, especially when the pattern_?
is used to distinguish betweennil
and non-nil
.Complete output when running SwiftLint, including the stack trace and command used
Environment
swiftlint version
to be sure)?0.38.2
Homebrew and CocoaPods, ran both
No
xcodebuild -version
)?Xcode 11.3.1
Build version 11C504
The text was updated successfully, but these errors were encountered: