Skip to content

go-critic: support to enable/disable all checks #4108

Closed
@Dentrax

Description

@Dentrax

Your feature request related to a problem? Please describe.

We have to manually define all the checks in the config: https://go-critic.com/overview.html It's a bit annoying to manage all of the checks individually.

Ref: https://golangci-lint.run/usage/linters/#gocritic

Describe the solution you'd like.

Add support for enable-all: true and disable-all: true for gocritic. So that I can drop unwanted checks in the disabled-checks section.

Describe alternatives you've considered.

As-is. Manually define and manage all the checks.

Additional context.

No response

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