Added megacheck

This tool combines staticcheck, gosimple and unused.
Fixed reports from unused.
This commit is contained in:
Ivan Kozlovic
2017-08-11 17:28:18 -06:00
parent 396d9f9d76
commit 20926a6176
6 changed files with 5 additions and 30 deletions

View File

@@ -1,23 +1,21 @@
language: go
go:
- 1.6.4
- 1.7.6
- 1.8.3
- 1.6.x
- 1.7.x
- 1.8.x
install:
- go get github.com/nats-io/go-nats
- go get github.com/mattn/goveralls
- go get github.com/wadey/gocovmerge
- go get -u honnef.co/go/tools/cmd/staticcheck
- go get -u honnef.co/go/tools/cmd/gosimple
- go get -u honnef.co/go/tools/cmd/megacheck
- go get -u github.com/client9/misspell/cmd/misspell
before_script:
- EXCLUDE_VENDOR=$(go list ./... | grep -v "/vendor/")
- go build
- $(exit $(go fmt $EXCLUDE_VENDOR | wc -l))
- go vet $EXCLUDE_VENDOR
- gosimple $EXCLUDE_VENDOR
- misspell -error -locale US .
- staticcheck $EXCLUDE_VENDOR
- megacheck $EXCLUDE_VENDOR
- if [[ "$TRAVIS_GO_VERSION" == 1.7.* ]]; then ./scripts/cross_compile.sh $TRAVIS_TAG; fi
script:
- go test -i -race $EXCLUDE_VENDOR