mirror of
https://github.com/containers/podman
synced 2024-10-18 16:24:34 +00:00
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>
This commit is contained in:
parent
77e4b19397
commit
93c35a7038
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue