Browse Source

add gofmt check for travis

pull/428/head
astaxie 4 years ago
parent
commit
823dca76d5
  1. 1
      .travis.yml

1
.travis.yml

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

Loading…
Cancel
Save