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>2020-12-16 13:31:45 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2020-12-17 14:19:44 +0300
commit0b14423fbe999a62bb477a7c2f5b42e8767c4e99 (patch)
tree1a8c902752ccaea84146d1f058baa1cbc6908742 /.golangci.yml
parent0b414007c95dfdbe3b981420852bf73d8409d1a0 (diff)
golangci: Enable missing default linters
The golangci-lint project has a list of linters [1] which are enabled by default, which indicates that they're deemed useful enough to be always enabled. As we're default-disabling all linters, we do not have those enabled for Gitaly. Given that they don't add any warnings, let's enable all defaul linters. The only exception is the errcheck linter as we have quite some locations where we don't perform error checking at all. [1]: https://golangci-lint.run/usage/linters/
Diffstat (limited to '.golangci.yml')
-rw-r--r--.golangci.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.golangci.yml b/.golangci.yml
index 431e56ddb..29c94a0ac 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -10,6 +10,7 @@ linters:
enable:
- deadcode
- goimports
+ - gosimple
- govet
- ineffassign
- maligned
@@ -18,7 +19,10 @@ linters:
- noctx
- rowserrcheck
- sqlclosecheck
+ - staticcheck
+ - structcheck
- stylecheck
+ - unused
- unconvert
- varcheck