linters/Makefile
Evgenii Stratonikov 7fbd18be41 [#25] Makefile: Use -trimpath while building
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-08-28 14:23:46 +03:00

19 lines
342 B
Makefile

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