From 86710d9b4b513fc1b5717729e4135297658509c8 Mon Sep 17 00:00:00 2001 From: Holger Obermaier <40787752+ho-ob@users.noreply.github.com> Date: Wed, 4 Feb 2026 10:04:44 +0100 Subject: [PATCH] Add golangci-lin as make target --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 8b62dab..0fbec79 100644 --- a/Makefile +++ b/Makefile @@ -72,6 +72,11 @@ staticcheck: $(GOBIN) install honnef.co/go/tools/cmd/staticcheck@latest $$($(GOBIN) env GOPATH)/bin/staticcheck ./... +.PHONY: golangci-lint +golangci-lint: + $(GOBIN) install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest + $$($(GOBIN) env GOPATH)/bin/golangci-lint run + .ONESHELL: .PHONY: RPM RPM: scripts/cc-metric-collector.spec