You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your feature request related to a problem? Please describe
I spent twenty minutes today trying to figure out why //nolint:typecheck was being ignored in my project. I was about to report an issue for //nolint:typecheck being ignored, when I read the FAQ and saw that this was the intended behavior.
I wish I hadn't wasted twenty minutes figuring out what was wrong.
Describe the solution you'd like
When encountering a //nolint:typecheck golangci-lint should emit a warning saying this directive will be ignored and link to the FAQ.
Describe alternatives you've considered
We could also emit an error when using //nolint:typecheck, but that sounds too extreme
When reporting a typecheck error, if the line has //nolint:all, we should provide an extra warning saying "I see you put //nolint:all here, but this is ignored because of "
To be able to detect the directives, we need to analyze the code, but as typecheck errors block the analysis, it's impossible to detect the directives.
So I understand the issue but there is no solution.
Welcome
Your feature request related to a problem? Please describe
I spent twenty minutes today trying to figure out why
//nolint:typecheck
was being ignored in my project. I was about to report an issue for//nolint:typecheck
being ignored, when I read the FAQ and saw that this was the intended behavior.I wish I hadn't wasted twenty minutes figuring out what was wrong.
Describe the solution you'd like
When encountering a
//nolint:typecheck
golangci-lint should emit a warning saying this directive will be ignored and link to the FAQ.Describe alternatives you've considered
We could also emit an error when using
//nolint:typecheck
, but that sounds too extremeAdditional context
No response
Supporter
The text was updated successfully, but these errors were encountered: