From 0564fcce0f172040a2d13b3951b5325e1821d2ef Mon Sep 17 00:00:00 2001 From: Oscar Utbult Date: Sun, 23 Oct 2022 14:49:19 +0200 Subject: [PATCH] Add Makefile target lint --- build/root/Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/build/root/Makefile b/build/root/Makefile index c0a254f97f4..c08038eb212 100644 --- a/build/root/Makefile +++ b/build/root/Makefile @@ -338,6 +338,21 @@ vet: hack/make-rules/vet.sh $(WHAT) endif +define LINT_HELP_INFO +# Run golangci-lint +# +# Example: +# make lint +endef +.PHONY: lint +ifeq ($(PRINT_HELP),y) +lint: + echo "$$LINT_HELP_INFO" +else +lint: + hack/verify-golangci-lint.sh +endif + define RELEASE_HELP_INFO # Build a release # Use the 'release-in-a-container' target to build the release when already in