mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Merge pull request #113490 from oscr/add-makefile-target-lint
Add Makefile target lint
This commit is contained in:
commit
2ab2698e4c
@ -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