-
Notifications
You must be signed in to change notification settings - Fork 273
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
comment-spacings false positives for nolint directives #808
Comments
Hi @abemedia, thanks for filling the issue. My understanding of the issue is you ask for |
I don't think a hard-coded list should be used for these. Comments without a space are meant for "machine-readable" comments (such as
( See; |
Il will try to do a PR on this subject in the next days. My idea is to go ahead with the proposition by @thaJeztah (i.e. replacing the hard coded list with a regex) |
Thanks! Sorry for commenting with suggestions without doing the actual work; couldn't find the bandwidth to get familiar with the codebase and to make the changes, but very much appreciate the project! (it definitely caught some issues here-and-there in codebases I work on ❤️) |
Describe the bug
I'm using revive with golangci-lint and since the latest update I'm getting errors like this:
I've updated the config to contain
nolint
in thecomment-spacings
arguments to make it go away but it's odd as this was not happening before.To Reproduce
Steps to reproduce the behavior:
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: