github.com/erda-project/erda-infra@v1.0.9/Makefile (about) 1 tidy: 2 go mod tidy 3 4 format: 5 @GOFILES=$$(find . -name "*.go"); \ 6 for path in $${GOFILES}; do \ 7 gofmt -w -l $${path}; \ 8 goimports -w -l $${path}; \ 9 done; 10 11 check: 12 golint -set_exit_status=1 ./... 13 go vet ./... 14 go test -test.timeout=20s -race -cpu=2 ./... 15 16 fix-golangci-lint: 17 golangci-lint run -v --fix