Skip to content

Report useless entry in exclude-rules #3953

Closed
@arxeiss

Description

@arxeiss

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: configRelated to .golangci.yml and/or cli optionsenhancementNew feature or improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions