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>2021-11-11 15:44:11 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2021-11-12 17:39:42 +0300
commit535484153103e4706439e39015c7852da2d14531 (patch)
tree475662426c97e1470ba888c1b27ea6646cb3fad4 /.golangci.yml
parentf8fb50aa1610d9f2cdeab79ddf2d46ae671f8cee (diff)
lint: Enable linter for unkeyed fields
We've added a special exclude rule for the govet linter such that it doesn't bug us about use of unkeyed fields in composite literals. We only have two callsites which get this wrong though, and using field names is preferable such that we don't by mistake assign a value to the wrong field. Reenable this linter and fix the two violations.
Diffstat (limited to '.golangci.yml')
-rw-r--r--.golangci.yml3
1 files changed, 0 insertions, 3 deletions
diff --git a/.golangci.yml b/.golangci.yml
index 6eefcc7f3..54f068ed3 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -712,9 +712,6 @@ issues:
## END staticcheck exclusions
# govet checks all struct initializations must be keyed by field names
- linters:
- - govet
- text: "composite literal uses unkeyed fields"
- - linters:
- stylecheck
text: "at least one file in a package should have a package comment"
- path: "_test.go"