-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Allow //nolint
only with specific linter and check set and wo space
#1165
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Why would this be/does this have to be a breaking change? I came to this from looking at #2706. The suggested format within that issue was to extend the format of the existing nolint directive
I don't see how that would be breaking? There didn't appear to be much discussion on the duplicate issue as to whether some format like this was appropriate, so I'm wondering if we could revive the idea here, what do maintainers feel about extending the existing I suppose a key to implementing this could be how we understand which rule within a linter triggered an issue, I guess there's no standard format for that right now, and if we start enforcing a format, then perhaps that could be a breaking change for some linters? |
This issue has been around for 5 years, golangci-lint has changed since the issue was opened. nolint directives will be replaced by another directive approach. |
Are there details of the new approach? A tracking issue? |
Breaking change for v2. We can require not only specific linter (
staticcheck
), but also a specific check inside it.The text was updated successfully, but these errors were encountered: