aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2022-09-20 11:39:00 +0200
committerGitHub <noreply@github.com>2022-09-20 17:39:00 +0800
commit399514453ed13ca457b12b2413c1e68f0f13acc0 (patch)
tree8f594c8eb9ce8f2c3a2e82556846ba588757023f
parent1b630ff7cdbb2ec48b67f8e3295c142f5ad77180 (diff)
downloadgitea-399514453ed13ca457b12b2413c1e68f0f13acc0.tar.gz
gitea-399514453ed13ca457b12b2413c1e68f0f13acc0.zip
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 <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
-rw-r--r--.golangci.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/.golangci.yml b/.golangci.yml
index 982ab06f0b..0e796a2016 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,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