From 93c35a703876063e181c18d9239a1bd5c7dcc578 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Tue, 7 Feb 2023 14:17:30 +0100 Subject: [PATCH] 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 --- .golangci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 3db83c8474..56b551ca31 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -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