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:
authorSon Luong Ngoc <sluongng@gmail.com>2020-10-18 19:16:51 +0300
committerSon Luong Ngoc <sluongng@gmail.com>2020-10-18 23:53:43 +0300
commitba81ddec666fa935b91360c809a8710b286b6ac5 (patch)
tree32c9c348d36bc893c718679de2b7d55899e794d6
parent00173ce9e7a16b80edc6f7de0b6f6ec10395418d (diff)
lint: added maligned as a linter
This linter should help detect unoptimized struct. Fixes could either be manually added paddings into the struct or re-arrange order of fields. Ignore test structs as they are not necessary.
-rw-r--r--.golangci.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.golangci.yml b/.golangci.yml
index 40f340537..7f96a8443 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -17,6 +17,7 @@ linters:
- varcheck
- misspell
- unconvert
+ - maligned
issues:
# Excluding configuration per-path, per-linter, per-text and per-source
@@ -25,6 +26,9 @@ issues:
- linters:
- govet
text: "composite literal uses unkeyed fields"
+ - path: "_test.go"
+ linters:
+ - maligned
# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
max-issues-per-linter: 0
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.