Open arvenil opened 3 years ago
Same spirit of #11
I made https://github.com/golangci/golangci-lint/issues/3983 to track this in golangci-lint repository.
nolint
is not a basic comment but a directive (no space between //
and nolint
).
Yes, but nolint
then works for the whole function, not just the comment. See https://github.com/golangci/golangci-lint/pull/3986 as PR to address this.
Yes, I know because it's what I said in this PR...
I was just waiting for the merge of my PR before adding a new comment here.
I find this annoying, but apparently if you have a really long link, and it's the only thing in the line, it is still being reported. I often put in comments links to other projects as a reference e.g.
nolint:lll
is also not respected in comments