linters/Makefile

19 lines
328 B
Makefile
Raw Permalink Normal View History

OUT_DIR ?= ./bin
PLUGIN_SOURCE ?= main.go
2023-07-18 08:16:27 +00:00
test:
@go test -v ./... -count=1
2023-07-18 08:16:27 +00:00
lib:
@mkdir -pv $(OUT_DIR)
@go build -buildmode=plugin -o $(OUT_DIR)/external_linters.so $(PLUGIN_SOURCE)
lint:
@golangci-lint run
staticcheck-install:
@go install honnef.co/go/tools/cmd/staticcheck@latest
staticcheck-run:
@staticcheck ./...