Skip to content

Commit

Permalink
Enforce no golangci-lint warnings in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sbarzowski committed Mar 5, 2020
1 parent 9ada769 commit 234b97c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 3 additions & 1 deletion travisBuild.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 234b97c

Please sign in to comment.