Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Suppress output to stdout in case of 0 issues found #5734

Closed
@sdavids

Description

@sdavids

Welcome

How did you install golangci-lint?

Brew

Your feature request related to a problem? Please describe

I am not sure if this is a bug, regression, or feature request.

$ golangci-lint --version
golangci-lint has version 2.1.1 built with go1.24.2 from 93dabf9 on 2025-04-12T18:12:29Z
$ golangci-lint run
0 issues.
$ echo $?
0

I would like the option to suppress output to stdout in case of no issues found.

Describe the solution you'd like

$ golangci-lint --version
golangci-lint has version 2.1.1 built with go1.24.2 from 93dabf9 on 2025-04-12T18:12:29Z
$ golangci-lint run
$ echo $?
0

Maybe via -q/--quiet or -s/--silent.

Describe alternatives you've considered

1>/dev/null and explicit check of $?

Additional context

No response

Supporter

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: CLIRelated to CLIquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions