-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
switch_case_alignment doesn't work with switch expressions #5080
Comments
I've "fixed" it by disabling this rule for such cases for the time being. Would you let me know how you see this issue to be fixed properly in #5086, @futuretap? |
That's what I did too. I'm confused about your question though. A proper fix would be that swiftlint accepts the mentioned code snippet. The vertical alignment of |
Ah sorry ... my comment was very confusing. I mean that I prepared a PR ignoring |
Thanks, this works well for me. |
New Issue Checklist
Describe the bug
A switch expression that is assigned to a variable (SE0380) throws the error
warning: Switch and Case Statement Alignment Violation: Case statements should vertically align with their enclosing switch statement (switch_case_alignment)
Complete output when running SwiftLint, including the stack trace and command used
see above
Environment
The text was updated successfully, but these errors were encountered: