From e1bac6eefa3b307d6c5981bcbb1c290b725965df Mon Sep 17 00:00:00 2001 From: Vilen Topchii <32271530+vtopc@users.noreply.github.com> Date: Fri, 25 Oct 2024 21:11:31 +0300 Subject: [PATCH] added golangci-lint --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 1060781a..a61855cb 100644 --- a/Makefile +++ b/Makefile @@ -27,3 +27,12 @@ godoc: .PHONY: nilaway nilaway: $(NILAWAY) $(NILAWAY) -include-pkgs="$(PACKAGE)" -test=false -exclude-errors-in-files=mock_ ./... + +# linter: +GOLINT = $(GOPATH)/bin/golangci-lint +$(GOLINT): + curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin v1.61.0 + +.PHONY: lint +lint: $(GOLINT) + $(GOLINT) run -new-from-rev=master