Skip to content

Is it possible to disable //nolint? #3015

Closed Answered by bombsimon
GirZ0n asked this question in Q&A
Discussion options

You must be logged in to vote

There's no way to disable this. I would suggest looking in the source code rather than using golangci-lint for this purpose. Something like this:

grep -rE '// ?nolint' > /dev/null && echo 'Uses //nolint' || echo 'Does not use //nolint'

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@mirecl
Comment options

@bombsimon
Comment options

@ldez
Comment options

@alexpts
Comment options

Answer selected by ldez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants