From 8a4aa1fd002a72e2e0c02343ddb8a092739b2865 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 26 Feb 2025 11:21:48 +0100 Subject: [PATCH] build: add a make target 'golangci-lint' This adds a command 'make golangci-lint' This is done so developers can conveiently run golangci-lint locally like it runs in the CI. golangci-lint is also run as part of the more general 'make lint'. Signed-off-by: Michael Adam --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 86a678048..f5eb211e6 100644 --- a/Makefile +++ b/Makefile @@ -167,10 +167,10 @@ yamllint: .PHONY: golangci-lint golangci-lint: - @golangci-lint run + go run github.com/golangci/golangci-lint/cmd/golangci-lint@latest run .PHONY: lint -lint: yamllint pylint shellcheck vet markdownlint ## Run various linters +lint: yamllint pylint shellcheck vet markdownlint golangci-lint ## Run various linters .PHONY: pylint pylint: