Skip to content

Commit 3995144

Browse files
silverwindlunnywxiaoguang
authored
Configure golangci-lint to show all issues (#21106)
golangci by default [limits](https://golangci-lint.run/usage/configuration/#issues-configuration) "same issues" to 3 which can be hindering when many issues are present. Change it to always show all issues. Co-authored-by: Lunny Xiao <[email protected]> Co-authored-by: wxiaoguang <[email protected]>
1 parent 1b630ff commit 3995144

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.golangci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ linters-settings:
4040
stylecheck:
4141
checks: ["all", "-ST1005", "-ST1003"]
4242
nakedret:
43-
max-func-lines: 0
43+
max-func-lines: 0
4444
gocritic:
4545
disabled-checks:
4646
- ifElseChain
@@ -86,6 +86,8 @@ linters-settings:
8686
- github.com/unknwon/com: "use gitea's util and replacements"
8787

8888
issues:
89+
max-issues-per-linter: 0
90+
max-same-issues: 0
8991
exclude-rules:
9092
# Exclude some linters from running on tests files.
9193
- path: _test\.go

0 commit comments

Comments
 (0)