Skip to content

Report count of issues shown for a particular linter type #2924

Closed
@inianv

Description

@inianv

Your feature request related to a problem? Please describe.

Right now there is no way to simply count the number of issues indicated when a particular linter is enabled. It will be useful to add a command line flag that can indicate the count of issues per linter type

Describe the solution you'd like.

Add a command line flag to summarize the count of each linter config enabled or a specific linter alone

Describe alternatives you've considered.

I could use CLI search tools to get it done. E.g. use a tool like ripgrep to pipe the output

golangci-lint run | rg -w errcheck -c
10

Additional context.

No response

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