Skip to content

CLI flag to disable all output formats in the config #6274

@timofurrer

Description

@timofurrer

Welcome

How did you install golangci-lint?

go install

Your feature request related to a problem? Please describe

Users of golangci-lint sometimes have their preferred output formats configured in a golangci-lint configuration file (be it for personal preferences or required output for toolings, e.g. in CI). However, sometimes you just want to call golangci-lint without those preferred output formatters but just a single other formatted that satisfies the current needs.

Describe the solution you'd like

I think a command line flag to disable all configured formats in the config files in favor of the ones provided by the command line makes sense here.

Describe alternatives you've considered

Disabling all output formats manually, but that is not scalable and requires changes in scripts etc where that is used every time a new output format is added or removed.

Additional context

I've took a stab at this in #6273.

Supporter

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions