diff options
author | Sami Hiltunen <shiltunen@gitlab.com> | 2021-01-28 16:55:11 +0300 |
---|---|---|
committer | Sami Hiltunen <shiltunen@gitlab.com> | 2021-01-28 16:58:50 +0300 |
commit | a4d1929d5b1b54949662f79f25336a81df95d1fe (patch) | |
tree | afffb13a93dec4c72f2381f3cf337ca9421c218b | |
parent | b3a047a5626ff654ad998dd7a94c6a51624f54b4 (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.yml | 4 |
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 |