Skip to content

feature request: warn on //nolint:typecheck #5005

@vegerot

Description

@vegerot

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 extreme

Additional context

No response

Supporter

Metadata

Metadata

Assignees

Labels

area: nolintRelated to nolint directive and nolintlintwon't fixThis will not be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions