-
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
Fix Vertical Whitespace Rule performance issue and make it not opt-in #772
Comments
Looks like a performance regression in 0.11.2. Thanks for reporting this. Note that SwiftLint 0.11.2 does complete when linting your file, it just takes much longer than it should. This is why having performance benchmarks/tests would be immensely useful (#376).
It turns out that the vertical whitespace rule is the culprit:
Also, since SwiftLint is an Xcode project, you can easily run it with Instruments and/or debug it with LLDB to identify issues. |
Fixed in f559abb. Cutting 0.12.0 now to push this out to everyone asap. |
I'll reopen this to track fixing the actual performance issue and no longer making the rule opt-in. |
@masters3d do you think you could address this? |
I'll take a look |
I'll submit a PR momentarily. SDWebImageDownloader.sharedDownloader().setValue("text/html,image/*;q=0.8", forHTTPHeaderField: "Accept") let matchMultilineComments = "/\\*(.|[\\r\\n])*?\\*/" |
Swiftlint 0.11.2 hangs on my project (while 0.11.1 does not) when linting a file. I've pared down the file as much as possible to make it easier to identify the bug. I couldn't see a way to run swiftlint in a verbose mode to debug further.
The text was updated successfully, but these errors were encountered: