vertical_whitespace_between_cases not triggering when using @unknown before default #3511
Open
2 tasks done
Labels
bug
Unexpected and reproducible misbehavior.
New Issue Checklist
Describe the bug
The
vertical_whitespace_between_cases
rule doesn't trigger when using@unknown
beforedefault
in aswitch
.Complete output when running SwiftLint, including the stack trace and command used
Environment
swiftlint version
to be sure)?0.43.0-rc.2
https://github.com/realm/SwiftLint/releases/download/0.43.0-rc.2/portable_swiftlint.zip
If so, paste their relative paths and respective contents.
xcodebuild -version
)?Xcode 12.2 Build version 12B45b
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
.Test1.swift
:Test2.swift
(that works correctly):The text was updated successfully, but these errors were encountered: