2023-04-20 05:33:49 +00:00
|
|
|
go := env_var_or_default('GOCMD', 'go')
|
|
|
|
|
|
|
|
|
|
default: tidy test
|
|
|
|
|
|
|
|
|
|
tidy:
|
|
|
|
|
{{go}} mod tidy
|
|
|
|
|
goimports -l -w .
|
|
|
|
|
gofumpt -l -w .
|
|
|
|
|
{{go}} fmt ./...
|
|
|
|
|
|
|
|
|
|
test:
|
|
|
|
|
{{go}} vet ./...
|
|
|
|
|
golangci-lint run ./...
|
2023-04-24 22:33:38 +00:00
|
|
|
{{go}} test -race -coverprofile=cover.out -timeout=60s ./...
|
2023-04-20 05:33:49 +00:00
|
|
|
{{go}} tool cover -html=cover.out -o=cover.html
|
|
|
|
|
|
|
|
|
|
todo:
|
|
|
|
|
-git grep -e TODO --and --not -e ignoretodo
|