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.

55 lines
1.2 KiB

  1. .PHONY: all test get_vendor_deps ensure_tools
  2. GOTOOLS = \
  3. github.com/Masterminds/glide \
  4. github.com/alecthomas/gometalinter
  5. REPO:=github.com/tendermint/tmlibs
  6. all: test
  7. NOVENDOR = go list github.com/tendermint/tmlibs/... | grep -v /vendor/
  8. test:
  9. go test -tags gcc `glide novendor`
  10. get_vendor_deps: ensure_tools
  11. @rm -rf vendor/
  12. @echo "--> Running glide install"
  13. @glide install
  14. ensure_tools:
  15. go get $(GOTOOLS)
  16. metalinter: ensure_tools
  17. @gometalinter --install
  18. gometalinter --vendor --deadline=600s --enable-all --disable=lll ./...
  19. metalinter_test: ensure_tools
  20. @gometalinter --install
  21. gometalinter --vendor --deadline=600s --disable-all \
  22. --enable=deadcode \
  23. --enable=gas \
  24. --enable=goconst \
  25. --enable=gosimple \
  26. --enable=ineffassign \
  27. --enable=interfacer \
  28. --enable=megacheck \
  29. --enable=misspell \
  30. --enable=staticcheck \
  31. --enable=safesql \
  32. --enable=structcheck \
  33. --enable=unconvert \
  34. --enable=unused \
  35. --enable=varcheck \
  36. --enable=vetshadow \
  37. --enable=vet \
  38. ./...
  39. #--enable=aligncheck \
  40. #--enable=dupl \
  41. #--enable=errcheck \
  42. #--enable=gocyclo \
  43. #--enable=goimports \
  44. #--enable=golint \ <== comments on anything exported
  45. #--enable=gotype \
  46. #--enable=unparam \