From adb2ac8f45e8b3f24949ad0280589742bb884572 Mon Sep 17 00:00:00 2001 From: John Kerl Date: Sat, 25 Dec 2021 12:05:28 -0500 Subject: [PATCH] Add staticcheck to Makefile --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a7a982180..587e2bf5f 100644 --- a/Makefile +++ b/Makefile @@ -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