linters/Makefile
Alexander Chuprov df29d08821
All checks were successful
Tests and linters / Lint (pull_request) Successful in 1m19s
Tests and linters / Tests (pull_request) Successful in 1m58s
Tests and linters / Build lib (pull_request) Successful in 2m17s
Tests and linters / Staticcheck (pull_request) Successful in 1m7s
[#5] linters: refactoring
Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
2023-07-31 12:59:51 +03:00

18 lines
328 B
Makefile

OUT_DIR ?= ./bin
PLUGIN_SOURCE ?= main.go
test:
@go test -v ./... -count=1
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 ./...