本站源代码
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.

13 lines
269B

  1. PACKAGES ?= $(shell go list ./...)
  2. .PHONY: check
  3. check: lint
  4. go test
  5. .PHONY: lint
  6. lint:
  7. @which golint > /dev/null; if [ $$? -ne 0 ]; then \
  8. go get -u github.com/golang/lint/golint; \
  9. fi
  10. @for PKG in $(PACKAGES); do golint -set_exit_status $$PKG || exit 1; done;
上海开阖软件有限公司 沪ICP备12045867号-1