Skip to content

Commit

Permalink
Configure golangci-lint to show all issues (#21106)
Browse files Browse the repository at this point in the history
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 <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
  • Loading branch information
3 people authored Sep 20, 2022
1 parent 1b630ff commit 3995144
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ linters-settings:
stylecheck:
checks: ["all", "-ST1005", "-ST1003"]
nakedret:
max-func-lines: 0
max-func-lines: 0
gocritic:
disabled-checks:
- ifElseChain
Expand Down Expand Up @@ -86,6 +86,8 @@ 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.
- path: _test\.go
Expand Down

0 comments on commit 3995144

Please sign in to comment.