golangci-lint: show all errors at once

When golangci-lint it will only report 3 errors fromt he same linter by
default. This is annoying when a new linter is added and you think only
3 three errors lets fix it real quick only to notice when you rerun it
there again new 3 errors and so on.
In CI and local I want to see all issues at once so I can fix them and
know how much work it is before starting to fix them.

With `max-issues-per-linter: 0` and `max-same-issues: 0` it will show
us all errors because 0 means unlimted. By default it will only show 50
per linter and 3 from the same issue.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
pull/17402/head
Paul Holzinger 2023-02-07 14:17:30 +01:00
parent 77e4b19397
commit 93c35a7038
No known key found for this signature in database
GPG Key ID: EB145DD938A3CAF2
1 changed files with 10 additions and 0 deletions

View File

@ -74,3 +74,13 @@ linters-settings:
nolintlint:
allow-leading-space: false
require-specific: true
issues:
# Maximum issues count per one linter.
# Set to 0 to disable.
# Default: 50
max-issues-per-linter: 0
# Maximum count of issues with the same text.
# Set to 0 to disable.
# Default: 3
max-same-issues: 0