reinstate go vet ./...

This commit is contained in:
Mechiel Lukkien 2023-07-22 14:02:05 +02:00
parent 5b17fcd712
commit 9c25c88542
No known key found for this signature in database

View file

@ -3,6 +3,7 @@ default: build
build: build:
# build early to catch syntax errors # build early to catch syntax errors
CGO_ENABLED=0 go build CGO_ENABLED=0 go build
CGO_ENABLED=0 go vet ./...
CGO_ENABLED=0 go vet -tags integration CGO_ENABLED=0 go vet -tags integration
CGO_ENABLED=0 go vet -tags quickstart CGO_ENABLED=0 go vet -tags quickstart
./gendoc.sh ./gendoc.sh
@ -26,7 +27,7 @@ check:
staticcheck ./... staticcheck ./...
staticcheck -tags integration staticcheck -tags integration
staticcheck -tags quickstart staticcheck -tags quickstart
GOARCH=386 CGO_ENABLED=0 go vet -tags integration ./... GOARCH=386 CGO_ENABLED=0 go vet ./...
# having "err" shadowed is common, best to not have others # having "err" shadowed is common, best to not have others
check-shadow: check-shadow: