Skip to content

Commit 198dc47

Browse files
committed
Add lint target to Makefile
1 parent 79bc5f9 commit 198dc47

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,10 @@ verify-update: imports update
5353
clean:
5454
rm -rf _output/
5555
.PHONY: clean
56+
57+
PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))
58+
GOLANGCI_LINT = go run -mod=vendor ${PROJECT_DIR}/vendor/github.com/golangci/golangci-lint/v2/cmd/golangci-lint
59+
60+
.PHONY: lint
61+
lint:
62+
${GOLANGCI_LINT} run

0 commit comments

Comments
 (0)