mirror of
https://github.com/beego/bee.git
synced 2024-11-21 23:50:54 +00:00
add gofmt check for travis
This commit is contained in:
parent
c76d4d1451
commit
823dca76d5
@ -11,6 +11,7 @@ install:
|
|||||||
- go get -u honnef.co/go/tools/cmd/unused
|
- go get -u honnef.co/go/tools/cmd/unused
|
||||||
- go get -u github.com/mdempsky/unconvert
|
- go get -u github.com/mdempsky/unconvert
|
||||||
script:
|
script:
|
||||||
|
- find . ! \( -path './vendor' -prune \) -type f -name '*.go' -print0 | xargs -0 gofmt -l -s
|
||||||
- go vet $(go list ./... | grep -v /vendor/)
|
- go vet $(go list ./... | grep -v /vendor/)
|
||||||
- structcheck $(go list ./... | grep -v /vendor/)
|
- structcheck $(go list ./... | grep -v /vendor/)
|
||||||
- gosimple -ignore "$(cat gosimple.ignore)" $(go list ./... | grep -v /vendor/)
|
- gosimple -ignore "$(cat gosimple.ignore)" $(go list ./... | grep -v /vendor/)
|
||||||
|
Loading…
Reference in New Issue
Block a user