summaryrefslogtreecommitdiffstats
path: root/.golangci.yml
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2022-12-08 09:21:37 +0100
committerGitHub <noreply@github.com>2022-12-08 16:21:37 +0800
commit0585ac3ac6ff4f59e8455cb5f4cbe42c4b79c965 (patch)
tree4af0fa56e13f9a2008a7d34b2fc776c5373868af /.golangci.yml
parentcf27403e189f674d9a1e02cb71bc1ac13a5ba23d (diff)
downloadgitea-0585ac3ac6ff4f59e8455cb5f4cbe42c4b79c965.tar.gz
gitea-0585ac3ac6ff4f59e8455cb5f4cbe42c4b79c965.zip
Update go dev dependencies (#22064)
`golangci-lint` [deprecated](https://github.com/golangci/golangci-lint/issues/1841) a bunch of linters, removed them.
Diffstat (limited to '.golangci.yml')
-rw-r--r--.golangci.yml34
1 files changed, 17 insertions, 17 deletions
diff --git a/.golangci.yml b/.golangci.yml
index 99133badd9..130ad286b5 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -1,28 +1,28 @@
linters:
enable:
- - gosimple
- - deadcode
- - typecheck
- - govet
- - errcheck
- - staticcheck
- - unused
- - structcheck
- - varcheck
+ - bidichk
+ # - deadcode # deprecated - https://github.com/golangci/golangci-lint/issues/1841
+ - depguard
- dupl
- #- gocyclo # The cyclomatic complexety of a lot of functions is too high, we should refactor those another time.
- - gofmt
+ - errcheck
- gocritic
- - bidichk
- - ineffassign
- - revive
+ # - gocyclo # The cyclomatic complexety of a lot of functions is too high, we should refactor those another time.
+ - gofmt
- gofumpt
- - depguard
+ - gosimple
+ - govet
+ - ineffassign
- nakedret
- - unconvert
- - wastedassign
- nolintlint
+ - revive
+ - staticcheck
+ # - structcheck # deprecated - https://github.com/golangci/golangci-lint/issues/1841
- stylecheck
+ - typecheck
+ - unconvert
+ - unused
+ # - varcheck # deprecated - https://github.com/golangci/golangci-lint/issues/1841
+ # - wastedassign # disabled - https://github.com/golangci/golangci-lint/issues/2649
enable-all: false
disable-all: true
fast: false