Skip to content

unused: support options #4085

Closed
Closed
@fatanugraha

Description

@fatanugraha

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

No one assigned

    Labels

    area: configRelated to .golangci.yml and/or cli optionsdependenciesRelates to an upstream dependencyenhancementNew feature or improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions