chore: add linter to makefile

This commit is contained in:
Richard Ramos 2024-05-16 19:12:33 -04:00
parent 2ec3fcb7ae
commit e66441b027
No known key found for this signature in database
GPG Key ID: 1CE87DB518195760

View File

@ -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