Ignore Go src in linter
This commit is contained in:
parent
c667c5690a
commit
1f5fe29c25
2
Makefile
2
Makefile
|
@ -179,7 +179,7 @@ test_cover:
|
|||
|
||||
test_lint:
|
||||
gometalinter.v2 --config=tools/gometalinter.json ./...
|
||||
!(gometalinter.v2 --disable-all --enable='errcheck' --vendor ./... | grep -v "client/")
|
||||
!(gometalinter.v2 --exclude /usr/lib/go/src/ --disable-all --enable='errcheck' --vendor ./... | grep -v "client/")
|
||||
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" | xargs gofmt -d -s
|
||||
dep status >> /dev/null
|
||||
!(grep -n branch Gopkg.toml)
|
||||
|
|
|
@ -5,5 +5,6 @@
|
|||
"Enable": ["golint", "vet", "ineffassign", "unparam", "unconvert", "misspell"],
|
||||
"Deadline": "500s",
|
||||
"Vendor": true,
|
||||
"Cyclo": 11
|
||||
"Cyclo": 11,
|
||||
"Exclude": ["/usr/lib/go/src/"]
|
||||
}
|
Loading…
Reference in New Issue