From e66441b0271e01657f7c97187b57bec97cd017da Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Thu, 16 May 2024 19:12:33 -0400 Subject: [PATCH] chore: add linter to makefile --- Makefile | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 73464f4..5786f72 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,17 @@ -SHELL := bash # the shell used internally by Make - -GOCMD ?= $(shell which go) - -.PHONY: all build +.PHONY: all build lint-install lint all: build build: - ${GOCMD} build -o build/storeverif ./cmd/storeverif + go build -tags=gowaku_no_rln -o build/storeverif ./cmd/storeverif + go build -tags=gowaku_no_rln -o build/populatedb ./cmd/populatedb + + +lint-install: + curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | \ + bash -s -- -b $(shell go env GOPATH)/bin v1.52.2 + +lint: + @echo "lint" + @golangci-lint run ./... --deadline=5m