Add Makefile target lint

This commit is contained in:
Oscar Utbult 2022-10-23 14:49:19 +02:00
parent f9bfa378ef
commit 0564fcce0f

View File

@ -338,6 +338,21 @@ vet:
hack/make-rules/vet.sh $(WHAT) hack/make-rules/vet.sh $(WHAT)
endif 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 define RELEASE_HELP_INFO
# Build a release # Build a release
# Use the 'release-in-a-container' target to build the release when already in # Use the 'release-in-a-container' target to build the release when already in