Add lint target

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-07-14 12:43:09 +02:00
parent 5e145a9086
commit 4817c6d92d

View File

@@ -22,6 +22,7 @@ GO_BASE= CGO_ENABLED=$(CGO_ENABLED) GOOS=$(GOOS) go
GO_BUILD= $(GO_BASE) build $(LDFLAGS) $(GCFLAGS)
GO_GENERATE= $(GO_BASE) generate
GO_TEST= $(GO_BASE) test $(TEST_FLAGS)
GO_VET= $(GO_BASE) vet
TEST_FLAGS?= -race -cover -coverprofile=coverage.out
@@ -35,11 +36,15 @@ PROBOD_SRC= cmd/probod/main.go
all: build
.PHONY: lint
lint: fmt-check vet
lint: vet npm-lint
.PHONY: vet
vet:
$(GO) vet ./...
$(GO_VET) ./...
.PHONY: npm-lint
npm-lint:
$(NPM) run lint
.PHONY: test
test: ## Run tests with race detection and coverage (usage: make test [MODULE=./pkg/some/module])