-
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
"mark" rule's autocorrections are eating preceding closing braces #1029
Comments
I couldn't reproduce it with 0.14 😬 |
@ChristopherRogers I'm just following up on @marcelofabri's request for a repro case. If there's a bug here we'd love to know about it! |
(Sorry for taking so long to get back; I had been on vacation.) Sorry, I should've seen if the sample code reproduced the issue first. So, I took a look at the code that was triggering this bug and was able to reduce it to something smaller, which I've placed above. The number of mark comments correlates to the number of characters that are eaten. The original code doesn't have multiple mark comments on the same type like the code above. Instead it has mark comments placed above methods. |
Thanks for the follow up, @ChristopherRogers. I could reproduce it now with 0.16.1. |
Can still reproduce this in 0.20.1. |
EDIT: This bug should now be reproducible with the code snippet below as of 0.16.1.
With code like this...
swiftlint autocorrect
will transform it into this, eating the closing braces. 😋The text was updated successfully, but these errors were encountered: