Skip to content

Commit

Permalink
Makefile: Improve lint by installing golangci-lint if not available
Browse files Browse the repository at this point in the history
Signed-off-by: Heathcliff <[email protected]>
  • Loading branch information
heathcliff26 committed Dec 16, 2024
1 parent 14fa510 commit bff7a85
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ update-deps:
coverprofile:
hack/coverprofile.sh

lint:
lint: golangci-lint
golangci-lint run -v

fmt:
Expand All @@ -30,6 +30,9 @@ fmt:
validate:
hack/validate.sh

golangci-lint:
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest

.PHONY: \
default \
build \
Expand Down

0 comments on commit bff7a85

Please sign in to comment.