mirror of
https://github.com/logos-messaging/storenode-messages-counter.git
synced 2026-01-02 14:13:11 +00:00
chore: add linter to makefile
This commit is contained in:
parent
2ec3fcb7ae
commit
e66441b027
18
Makefile
18
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user