From fb2c8f8b65458e5535ef55f543d52f3b23b79468 Mon Sep 17 00:00:00 2001 From: "Harper, Jason M" Date: Wed, 6 Nov 2024 06:16:42 -0800 Subject: [PATCH] add lint check to makefile --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a7a05ea..60edc10 100644 --- a/Makefile +++ b/Makefile @@ -96,8 +96,14 @@ check_license: if ! grep -E 'Copyright \(C\) [0-9]{4}-[0-9]{4} Intel Corporation' "$$f" >/dev/null; then echo "Error: license not found: $$f"; fail=1; fi; \ done; if [ -n "$$fail" ]; then exit 1; fi +.PHONY: check_lint +check_lint: + @echo "Running golangci-lint..." + go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest + golangci-lint run + .PHONY: check -check: check_format check_vet check_static check_license +check: check_format check_vet check_static check_license check_lint .PHONY: clean clean: