From a7f6b9fb2858dcd2114267982b674659b824ddb7 Mon Sep 17 00:00:00 2001 From: silverwind Date: Wed, 7 Sep 2022 18:04:22 +0200 Subject: [PATCH 1/2] Configure golangci-lint to show all issues golangci by default limits "same issues" to 3 which can be hindering when many issues are present. Change it to always show all issues. --- .golangci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index 982ab06f0b44a..a6d29b0873de0 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -40,7 +40,7 @@ linters-settings: stylecheck: checks: ["all", "-ST1005", "-ST1003"] nakedret: - max-func-lines: 0 + max-func-lines: 0 gocritic: disabled-checks: - ifElseChain @@ -86,6 +86,7 @@ linters-settings: - github.com/unknwon/com: "use gitea's util and replacements" issues: + max-same-issues: 0 exclude-rules: # Exclude some linters from running on tests files. - path: _test\.go From b8a11a33414a95661c28c680ceebfb4be7cd2491 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 8 Sep 2022 00:52:03 +0200 Subject: [PATCH 2/2] also unrestrict max-issues-per-linter --- .golangci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.golangci.yml b/.golangci.yml index a6d29b0873de0..0e796a2016b0a 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -86,6 +86,7 @@ linters-settings: - github.com/unknwon/com: "use gitea's util and replacements" issues: + max-issues-per-linter: 0 max-same-issues: 0 exclude-rules: # Exclude some linters from running on tests files.