add gofmt check for travis

This commit is contained in:
astaxie 2017-04-28 20:36:44 +08:00
parent c76d4d1451
commit 823dca76d5
1 changed files with 1 additions and 0 deletions

View File

@ -11,6 +11,7 @@ install:
- go get -u honnef.co/go/tools/cmd/unused
- go get -u github.com/mdempsky/unconvert
script:
- find . ! \( -path './vendor' -prune \) -type f -name '*.go' -print0 | xargs -0 gofmt -l -s
- go vet $(go list ./... | grep -v /vendor/)
- structcheck $(go list ./... | grep -v /vendor/)
- gosimple -ignore "$(cat gosimple.ignore)" $(go list ./... | grep -v /vendor/)