aboutsummaryrefslogtreecommitdiffstats
path: root/.golangci.yml
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2025-02-21 00:05:40 +0800
committerGitHub <noreply@github.com>2025-02-21 00:05:40 +0800
commit3ee5ee2029529e3b0c600f4ec555b3daca178fbe (patch)
tree2416bf4425150bccd10db7fef22b7aa23edcf061 /.golangci.yml
parentcd225d7034f905f73319b5a9024f6f9d5b6a01c7 (diff)
downloadgitea-3ee5ee2029529e3b0c600f4ec555b3daca178fbe.tar.gz
gitea-3ee5ee2029529e3b0c600f4ec555b3daca178fbe.zip
Upgrade golangci-lint to v1.64.5 (#33654)
Use `usetesting` instead of deprecated `tenv`. 1. Follow up #33648 2. Make lint pass and add some comments
Diffstat (limited to '.golangci.yml')
-rw-r--r--.golangci.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/.golangci.yml b/.golangci.yml
index c39d7ac5f2..cf7a6f1a1f 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -19,12 +19,12 @@ linters:
- revive
- staticcheck
- stylecheck
- - tenv
- testifylint
- typecheck
- unconvert
- unused
- unparam
+ - usetesting
- wastedassign
run:
@@ -102,6 +102,8 @@ linters-settings:
desc: do not use the ini package, use gitea's config system instead
- pkg: gitea.com/go-chi/cache
desc: do not use the go-chi cache package, use gitea's cache system
+ usetesting:
+ os-temp-dir: true
issues:
max-issues-per-linter: 0