Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2023-04-27 10:22:53 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2023-04-27 10:24:04 +0300
commitb39884d094b68f4a65d20bf9494359cf28bf857f (patch)
tree1abfb94e87ff77cabe9a392e5023dc38de434e0b /.golangci.yml
parent3da9f535e6e0c9194e2201ef389171c84ab8c0dc (diff)
golangci-lint: Reenable linters broken by Go generics
The introduction of generics in Go 1.18 caused some of the linters to stop working correctly. These linters have now been fixed, so let's reenable them. While at it, sort the gitaly-linters linter alphabetically as is the case for all the other linters.
Diffstat (limited to '.golangci.yml')
-rw-r--r--.golangci.yml11
1 files changed, 4 insertions, 7 deletions
diff --git a/.golangci.yml b/.golangci.yml
index 74286926b..29f1bf988 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -15,6 +15,7 @@ linters:
- exportloopref
- forbidigo
- gci
+ - gitaly-linters
# We use both gofmt and gofumpt because gofumpt doesn't seem to be linting
# for simplifications, while gofmt does.
- gofmt
@@ -30,19 +31,15 @@ linters:
- nolintlint
- paralleltest
- revive
+ - rowserrcheck
- staticcheck
- stylecheck
+ - sqlclosecheck
- tenv
- thelper
- unconvert
- unused
- - gitaly-linters
- # These linters don't currently support Go 1.18+. Please refer to
- # https://github.com/golangci/golangci-lint/issues/2649 for further
- # information.
- #- rowserrcheck
- #- sqlclosecheck
- #- wastedassign
+ - wastedassign
linters-settings:
depguard: