-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
area: configRelated to .golangci.yml and/or cli optionsRelated to .golangci.yml and/or cli optionsdependenciesRelates to an upstream dependencyRelates to an upstream dependencyenhancementNew feature or improvementNew feature or improvement
Description
Your feature request related to a problem? Please describe.
unused (U1000) has its own configuration to tune its aggressiveness on determining whether an object is unused or not.
ref: https://github.com/dominikh/go-tools/blob/master/unused/unused.go#L231C6-L231C13
Currently we used config.StaticCheckSettings to configure this linter which doesn't allow us to tune its behaviour. If you think this is acceptable I can come up with an MR to support this.
Describe the solution you'd like.
A new configuration to configure unused's options
Describe alternatives you've considered.
N/A
Additional context.
No response
Metadata
Metadata
Assignees
Labels
area: configRelated to .golangci.yml and/or cli optionsRelated to .golangci.yml and/or cli optionsdependenciesRelates to an upstream dependencyRelates to an upstream dependencyenhancementNew feature or improvementNew feature or improvement