|
|
|
|
@ -68,17 +68,6 @@ cover:
|
|
|
|
|
go tool cover -html=coverage.out
|
|
|
|
|
rm coverage.out
|
|
|
|
|
|
|
|
|
|
# vet runs the Go source code static analysis tool `vet` to find
|
|
|
|
|
# any common errors.
|
|
|
|
|
vet:
|
|
|
|
|
@echo 'go vet ./...'
|
|
|
|
|
@go vet ./... ; if [ $$? -eq 1 ]; then \
|
|
|
|
|
echo ""; \
|
|
|
|
|
echo "Vet found suspicious constructs. Please check the reported constructs"; \
|
|
|
|
|
echo "and fix them if necessary before submitting the code for review."; \
|
|
|
|
|
exit 1; \
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# generate runs `go generate` to build the dynamically generated
|
|
|
|
|
# source files.
|
|
|
|
|
generate:
|
|
|
|
|
@ -102,4 +91,4 @@ vendor-status:
|
|
|
|
|
# under parallel conditions.
|
|
|
|
|
.NOTPARALLEL:
|
|
|
|
|
|
|
|
|
|
.PHONY: bin cover default dev e2etest fmt fmtcheck generate plugin-dev quickdev test-compile test testacc testrace tools vendor-status vet
|
|
|
|
|
.PHONY: bin cover default dev e2etest fmt fmtcheck generate plugin-dev quickdev test-compile test testacc testrace tools vendor-status
|
|
|
|
|
|