]> source.dussan.org Git - gitea.git/commitdiff
Remove `golint` as linter (#17609)
authorGusted <williamzijl7@hotmail.com>
Thu, 11 Nov 2021 05:28:45 +0000 (06:28 +0100)
committerGitHub <noreply@github.com>
Thu, 11 Nov 2021 05:28:45 +0000 (13:28 +0800)
- Partialy resolvess #17596
- In the newer versions of `golangci-lint`, golint is  deprecated and
replaced by the `revive` linter. Thus removing the `golint` linter is a
good idea, as we're already using the `revive` linter which covers all
the current `golint` cases.

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
.golangci.yml

index 2d66e01ffaf8a86d04564f9e0d86b39676eaf76e..abdd276cb6acf46a4fe2ba4a65dd3cbe0fa65adc 100644 (file)
@@ -9,7 +9,6 @@ linters:
     - unused
     - structcheck
     - varcheck
-    - golint
     - dupl
     #- gocyclo # The cyclomatic complexety of a lot of functions is too high, we should refactor those another time.
     - gofmt