mirror of
https://github.com/logos-messaging/storenode-messages-counter.git
synced 2026-01-03 22:53:07 +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
|
.PHONY: all build lint-install lint
|
||||||
|
|
||||||
GOCMD ?= $(shell which go)
|
|
||||||
|
|
||||||
.PHONY: all build
|
|
||||||
|
|
||||||
all: build
|
all: build
|
||||||
|
|
||||||
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