From 6feab51210f8cd9d4ba5ddb586933b83932e0fae Mon Sep 17 00:00:00 2001 From: Terry Howe Date: Mon, 16 Dec 2024 06:13:31 -0700 Subject: [PATCH] chore: add lint make file target (#1586) Signed-off-by: Terry Howe --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 355ab30a9..2f9bf76fc 100644 --- a/Makefile +++ b/Makefile @@ -145,6 +145,10 @@ check-encoding: ## check file CR/LF encoding fix-encoding: ## fix file CR/LF encoding find cmd internal -type f -name "*.go" -exec sed -i -e "s/\r//g" {} + +.PHONY: lint +lint: ## run CI version of lint + golangci-lint run ./... + .PHONY: tidy tidy: ## go mod tidy GO111MODULE=on $(GO_EXE) mod tidy