Added golangci-lint config

This commit is contained in:
Kirill Muratov
2019-03-22 21:11:31 +03:00
parent 9a71e5e4f7
commit 39de96bad3
2 changed files with 16 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
# options for analysis running
run:
tests: false
output:
print-issued-lines: false
linters:
disable:
- errcheck
- govet
- gosimple
- unused
- staticcheck
+2
View File
@@ -27,12 +27,14 @@ cache:
- $GOPATH/pkg
before_install:
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.15.0
- echo "TRAVIS_GO_VERSION=${TRAVIS_GO_VERSION}"
install:
- go get github.com/mattn/goveralls
script:
- golangci-lint run
- make test COVERAGE_DIR=/tmp/coverage
after_success: