-
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
superfluous_disable_command bug #5788
Comments
Please provide a concrete example. |
I created a custom rule weak_self_closure. In some places, I disabled it ( // swiftlint:disable:this weak_self_closure). After updating with the new version (0.57.0) in all disabled places I receive superfluous_disable_command warning. When I am removing the "// swiftlint:disable:this weak_self_closure", it shows "weak_self_closure" warning. |
I wish I'd never touched this. I think there is a problem here, where disabled regions are nested. Given the following config:
and the following input:
then
But I think this is being caused by the way regions are returned from |
Any update on this? |
Yes - there's a PR at #5797, which is awaiting code review, which should hopefully fix the issue. |
This should be resolved by #5797 |
superfluous_disable_command incorrectly runs all custom rules.
The text was updated successfully, but these errors were encountered: