Added golangci-lint config

This commit is contained in:
Kirill Muratov 2019-03-22 21:11:31 +03:00
parent cac03318eb
commit 8f6bfb0295
2 changed files with 16 additions and 0 deletions

14
.golangci.yml Normal file
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

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: