linters/Makefile
Alexander Chuprov f104963409
All checks were successful
Tests and linters / Tests (pull_request) Successful in 4m37s
Tests and linters / Build lib (pull_request) Successful in 4m48s
Tests and linters / Staticcheck (pull_request) Successful in 6m15s
Tests and linters / Lint (pull_request) Successful in 12m50s
[#9] makefile: add env CGO_ENABLED
Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
2023-08-11 12:25:02 +03:00

18 lines
342 B
Makefile

OUT_DIR ?= ./bin
PLUGIN_SOURCE ?= main.go
test:
@go test -v ./... -count=1
lib:
@mkdir -pv $(OUT_DIR)
@CGO_ENABLED=1 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 ./...