From 825168d182aec64efdb9f7166e665d88da46fcf4 Mon Sep 17 00:00:00 2001 From: Radu Berinde Date: Mon, 23 Jan 2023 11:15:23 -0800 Subject: [PATCH] Makefile: add lint target Convenience lint target for running just the lint test. Especially useful to quickly find all compile errors in a big change. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 037d53f364..6c210f48ef 100644 --- a/Makefile +++ b/Makefile @@ -27,6 +27,10 @@ test: testrace: testflags += -race -timeout 20m testrace: test +.PHONY: lint +lint: + ${GO} test -tags '$(TAGS)' ${testflags} -run ${TESTS} ./internal/lint + .PHONY: stress stressrace stressrace: testflags += -race stress stressrace: testflags += -exec 'stress ${STRESSFLAGS}' -timeout 0 -test.v