-
-
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
nolint directive ignored #3201
Comments
Hello, you have to use Due to a change of So the option The syntax of directives is: // nolint:foo // <-- malformed
//nolint :foo // <-- malformed
//nolint: foo // <-- malformed
//nolint:foo // <-- OK If you do that your IDE or go fmt will format the directive as a directive and it will not add extra space. Related to: |
@ldez Also for clean experiment I tried it with docker |
because the directive must placed on the package name (no blank line): //nolint:all
package main |
Welcome
Description of the problem
I have nolint directive at top of file.
golangcilint report me about some linter rules bad, then report about nolint unused.
Expected result: quite ignore all linters.
Version of golangci-lint
Configuration file
Go environment
Verbose output of running
Code example or link to a public repository
https://gist.github.com/rekby/a95d6b63626d24a9c2a2314d9aea989a
The text was updated successfully, but these errors were encountered: