github.com/tencent/goom@v1.0.1/Makefile (about) 1 .PHONY: all clean fmt lint generate test 2 3 all: clean fmt lint test 4 publish: lint clean 5 6 clean: 7 go clean -i . 8 rm coverage.* || true 9 echo ''>go.sum 10 go mod tidy 11 12 fmt: 13 gofmt -w . 14 goimports -w . 15 16 lint: clean 17 go generate ./... 18 #go vet ./... 19 #golint ./... 20 golangci-lint run -c golangci.yml 21 gocyclo -top 5 . 22 gocyclo -top 5 internal/bytecode 23 gocyclo -top 5 internal/patch 24 gocyclo -top 5 internal/proxy 25 gocyclo -top 5 internal/iface 26 gocyclo -top 5 internal/hack 27 gocyclo -top 5 internal/bytecode/memory 28 29 generate: 30 go generate ./... 31 32 test: clean generate 33 go test -gcflags=all=-l -coverpkg=./... -coverprofile=coverage.data ./... -run=^TestUnit.*$ 34 go tool cover -html=coverage.data -o coverage.html