Merge pull request #113490 from oscr/add-makefile-target-lint

Add Makefile target lint
This commit is contained in:
Kubernetes Prow Robot 2022-11-01 08:24:56 -07:00 committed by GitHub
commit 2ab2698e4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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