Skip to content

Commit 422a740

Browse files
authored
Separate make fix-lint from make vet (#1054)
Signed-off-by: Todd Short <[email protected]>
1 parent 87d97f2 commit 422a740

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,13 @@ generate: $(CONTROLLER_GEN) #EXHELP Generate code containing DeepCopy, DeepCopyI
106106
verify: tidy fmt vet generate manifests #HELP Verify all generated code is up-to-date.
107107
git diff --exit-code
108108

109+
.PHONY: fix-lint
110+
fix-lint: $(GOLANGCI_LINT) #EXHELP Fix lint issues
111+
$(GOLANGCI_LINT) run --fix $(GOLANGCI_LINT_ARGS)
112+
109113
.PHONY: fmt
110-
fmt: $(GOLANGCI_LINT) #EXHELP Formats code
111-
go fmt ./... && $(GOLANGCI_LINT) run --fix $(GOLANGCI_LINT_ARGS)
114+
fmt: #EXHELP Formats code
115+
go fmt ./...
112116

113117
.PHONY: vet
114118
vet: #EXHELP Run go vet against code.

0 commit comments

Comments
 (0)