Report useless entry in exclude-rules #3953
Labels
area: config
Related to .golangci.yml and/or cli options
breaking
enhancement
New feature or improvement
Milestone
Your feature request related to a problem? Please describe.
From time to time I need to add something to
exclude-rules
. For example I'm introducing new rule to old codebase so I exclude the rule in some files/folders and iteratively fixing it.But sometimes I get to the point, that I fix all issues, but forgot to remove that entry in
exclude-rules
section.Describe the solution you'd like.
It would be nice, if golangci-lint would complain that I have some rule to exclude, which is not applied at all.
I see that similar thing is now done by nolintlint when I have
//nolint:xxx
in the code. But not in the.golangci.yml
file.Describe alternatives you've considered.
No alternative considered. I saw it in linters for different languages than Go.
Additional context.
No response
The text was updated successfully, but these errors were encountered: