Skip to content

Commit 50c8247

Browse files
committed
fix: report all golangci-lint issues at once
The generated golangci-lint config capped reported issues low enough that lint runs only surfaced a handful of problems at a time. Fixing those and rerunning would then reveal the next batch, forcing several round trips through the same cleanup. Raise the per-linter and same-issue reporting limits so a single run reports effectively everything. These limits only filter already-produced findings, so analysis and CI runtime are unaffected. Signed-off-by: Utku Ozdemir <utku.ozdemir@siderolabs.com>
1 parent b7f35a2 commit 50c8247

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.golangci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ linters:
146146
- builtin$
147147
- examples$
148148
issues:
149-
max-issues-per-linter: 10
150-
max-same-issues: 3
149+
max-issues-per-linter: 1024
150+
max-same-issues: 1024
151151
uniq-by-line: true
152152
new: false
153153

internal/output/golangci/golangci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ linters:
128128
- builtin$
129129
- examples$
130130
issues:
131-
max-issues-per-linter: 10
132-
max-same-issues: 3
131+
max-issues-per-linter: 1024
132+
max-same-issues: 1024
133133
uniq-by-line: true
134134
new: false
135135

0 commit comments

Comments
 (0)