1
0
mirror of https://github.com/beego/bee.git synced 2024-12-22 04:50:49 +00:00

add gofmt check for travis

This commit is contained in:
astaxie 2017-04-28 20:36:44 +08:00
parent c76d4d1451
commit 823dca76d5

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/)