You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which Xcode version are you using (check xcodebuild -version)? 12.5.1, but same issue with latest Xcode version (13)
Do you have a sample that shows the issue? Run echo "[string here]" | swiftlint lint --no-cache --use-stdin --enable-all-rules
to quickly test if your example is really demonstrating the issue. If your example is more
complex, you can use swiftlint lint --path [file here] --no-cache --enable-all-rules.
// This triggers a violation:letitems=[Int]()
for item in items {
if bar(){do{tryfoo()}catch{bar()
break
}}}
// This doesn't triggers a violation:letitems=[Int]()
for item in items {
if bar(){do{tryfoo()}catch{// bar()
break
}}}
The text was updated successfully, but these errors were encountered:
New Issue Checklist
Describe the bug
The unneeded_break_in_switch is triggering false positive in some cases.
Complete output when running SwiftLint, including the stack trace and command used
xcodebuild -version
)? 12.5.1, but same issue with latest Xcode version (13)echo "[string here]" | swiftlint lint --no-cache --use-stdin --enable-all-rules
to quickly test if your example is really demonstrating the issue. If your example is more
complex, you can use
swiftlint lint --path [file here] --no-cache --enable-all-rules
.The text was updated successfully, but these errors were encountered: