-
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
vertical_whitespace_between_cases gives false warning if blank line has whitespace #2538
Comments
@BenStaveleyTaylor this should be a good starter bug if you wanna try fixing it! |
@marcelofabri OK, that's a challenge then :-) I'll have a go shortly... |
Let me know if you have any questions! You should only have to change |
@marcelofabri Thanks. I haven't been a contributor on any open source projects before so the process is my main concern. Are there some guidelines for new contributors I can read? |
We have some documentation in CONTRIBUTING.MD, but feel free to ask any questions! |
New Issue Checklist
Describe the bug
The
vertical_whitespace_between_cases
rule flags a warning even when there is a blank line before thecase
ordefault
keyword, if that blank line contains any white space. Totally whitespace lines should be accepted as being blank.Explanation: Xcode tends to insert trailing whitespace when it formats text and its Text Editing preference for "Automatically trim trailing whitespace" is not reliable. We live in a world where there frequently is trailing whitespace and so we disable the
trailing_whitespace
rule.Complete output when running SwiftLint, including the stack trace and command used
Environment
swiftlint version
to be sure)? 0.29.2Note: the blank line before
default
contains some trailing whitespaceThe text was updated successfully, but these errors were encountered: