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