mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 18:02:01 +00:00
Add Makefile target lint
This commit is contained in:
parent
f9bfa378ef
commit
0564fcce0f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user