Skip to content

Add enable list to modernize linter #6674

Description

@taran-p

Welcome

How did you install golangci-lint?

Brew

Your feature request related to a problem? Please describe

The only way to select which modernize analyzers to run is through disable, which means as new analyzers are added, the list will require upkeep

Describe the solution you'd like

The ability to whitelist analyzers in addition to the existing blacklist

Describe alternatives you've considered

Disabling all unwanted analyzers. This will require upkeep as the binary is updated

Additional context

No response

Supporter

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or improvementno decisionNo decision to fix or not

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions