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:
authorSami Hiltunen <shiltunen@gitlab.com>2021-01-28 16:55:11 +0300
committerSami Hiltunen <shiltunen@gitlab.com>2021-01-28 16:58:50 +0300
commita4d1929d5b1b54949662f79f25336a81df95d1fe (patch)
treeafffb13a93dec4c72f2381f3cf337ca9421c218b
parentb3a047a5626ff654ad998dd7a94c6a51624f54b4 (diff)
exclude tests files from no underscores in names linting rule
Our test naming convention requires underscores in test names. Golint reports this as a linting violation as camel case is generally used in Go for names. This commit excludes the rule from being applied to test files.
-rw-r--r--.golangci.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.golangci.yml b/.golangci.yml
index ccea119ca..6c88dd00f 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -40,6 +40,10 @@ issues:
- golint
text: "context.Context should be the first parameter of a function"
path: "_test.go"
+ - linters:
+ - golint
+ text: "don't use underscores in Go names"
+ path: "_test.go"
## golint: Specific issues in non-*_test.go files
- linters:
- golint