-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add option to disable swiftlint in-file #2071
Labels
enhancement
Ideas for improvements of existing features and rules.
Comments
We probably should follow rubocop's approach: // swiftlint:disable all
[...]
// swiftlint:enable all @fredpi Would you like to submit a PR implementing this feature? |
Yeah, will do a PR with an implementation these days |
Didn't forget about this, however, will have to delay this a few days. On a tight schedule currently... |
No worries! |
Hows it going? |
@bj97301 As pointed out, takes a bit, but looking good... |
Nice. Looking forward to it :D |
Merged
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
For some cases, it would be useful to have a command to disable swiftlint parsing for a specific file (e. g.
// swiftlint:disable:file
.I know there's already an exclude option in the .yml file, but that one is not always suitable. Consider 3rd-party-frameworks like SwiftGen that currently always have to specifically disable single rules. A disable command in-file would fix that issue.
The text was updated successfully, but these errors were encountered: