Skip to content

Commit 8756da3

Browse files
serghei-devsergeyklay
authored andcommitted
chore(build): rename LINT variable to LINTER
Avoids confusion with the lint target name. LINTER is a more descriptive identifier for the golangci-lint binary path.
1 parent 433954e commit 8756da3

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ test-coverage-html: test-coverage ## Generate an HTML coverage report
4545

4646
.PHONY: fmt
4747
fmt: ## Format all Go source files
48-
$(LINT) fmt ./...
48+
$(LINTER) fmt ./...
4949

5050
.PHONY: vet
5151
vet: ## Run go vet on all packages
5252
$(GO) vet ./...
5353

5454
.PHONY: lint
5555
lint: ## Run golangci-lint on all packages
56-
$(LINT) run ./...
56+
$(LINTER) run ./...
5757

5858
.PHONY: tidy
5959
tidy: ## Tidy go.sum and prune stale entries from go.mod

default.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ VERSION ?= $(shell git describe --tags --always --dirty 2>/dev/null || echo dev)
2727

2828
# ── Go toolchain ──────────────────────────────────────────────────────────────
2929

30-
GO ?= go
31-
LINT ?= golangci-lint
30+
GO ?= go
31+
LINTER ?= golangci-lint
3232

3333
# ── Build flags ───────────────────────────────────────────────────────────────
3434
#

0 commit comments

Comments
 (0)