Add staticcheck to Makefile

This commit is contained in:
John Kerl 2021-12-25 12:05:28 -05:00
parent 4260e505d8
commit adb2ac8f45

View file

@ -47,6 +47,11 @@ fmt:
-go fmt ./internal/pkg/...
-go fmt ./regression_test.go
# Needs first: go install honnef.co/go/tools/cmd/staticcheck@latest
# See also: https://staticcheck.io
staticcheck:
staticcheck ./...
# ----------------------------------------------------------------
# For developers before pushing to GitHub.
#
@ -89,4 +94,4 @@ release_tarball: build check
# ================================================================
# Go does its own dependency management, outside of make.
.PHONY: build mlr check unit_test regression_test fmt dev docs
.PHONY: build mlr check unit_test regression_test fmt staticcheck dev docs