Enforce no golangci-lint warnings in CI

This commit is contained in:
Stanisław Barzowski 2019-07-21 17:45:51 +02:00
parent 9ada769ce4
commit 234b97cd9c
3 changed files with 18 additions and 1 deletions

14
.golangci.yml Normal file
View File

@ -0,0 +1,14 @@
run:
skip-files: ast/identifier_set.go
linters:
enable:
- stylecheck
- gochecknoinits
- golint
issues:
exclude-use-default: false
exclude:
- "should have a package comment, unless it's in another file for this package"
linters-settings:
golint:
min-confidence: 0

View File

@ -49,6 +49,7 @@ before_install:
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- go get github.com/fatih/color
- go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
- if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
- go get github.com/sergi/go-diff/diffmatchpatch

View File

@ -1,9 +1,11 @@
#!/usr/bin/env bash
set -e
run_tests() {
golangci-lint run ./...
$GOPATH/bin/goveralls -service=travis-ci
SKIP_GO_TESTS=1 ./tests.sh
}
run_tests