beego bee tool mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
853B

  1. language: go
  2. go:
  3. - 1.10.3
  4. install:
  5. - export PATH=$PATH:$HOME/gopath/bin
  6. - go get -u github.com/opennota/check/cmd/structcheck
  7. - go get -u honnef.co/go/tools/cmd/gosimple
  8. - go get -u honnef.co/go/tools/cmd/staticcheck
  9. - go get -u honnef.co/go/tools/cmd/unused
  10. - go get -u github.com/mdempsky/unconvert
  11. - go get -u github.com/gordonklaus/ineffassign
  12. script:
  13. - find . ! \( -path './vendor' -prune \) -type f -name '*.go' -print0 | xargs -0 gofmt -l -s
  14. - go vet $(go list ./... | grep -v /vendor/)
  15. - structcheck $(go list ./... | grep -v /vendor/)
  16. - gosimple -ignore "$(cat gosimple.ignore)" $(go list ./... | grep -v /vendor/)
  17. - staticcheck -ignore "$(cat staticcheck.ignore)" $(go list ./... | grep -v /vendor/)
  18. - unused $(go list ./... | grep -v /vendor/)
  19. - unconvert $(go list ./... | grep -v /vendor/)
  20. - ineffassign .