Skip to content

Commit ae84bc1

Browse files
authored
fix: golangci-lint (#100)
1 parent b9f191b commit ae84bc1

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.github/workflows/verify.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ jobs:
5656
- name: golangci-lint
5757
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
5858
with:
59-
version: v2.1.6
59+
version: v2.5.0
6060
args: -v

Makefile

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
GO := go
2+
GOLANG_CI := github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.5.0
3+
GOVULNCHECK := golang.org/x/vuln/cmd/govulncheck@latest
4+
15
# Generate labels for all language runtimes
26
.PHONY: generate
37
generate: run fmt
@@ -6,10 +10,13 @@ generate: run fmt
610
test:
711
go test -v -count 1 ./...
812

9-
.PHONY: lint
10-
lint: fmt ## Run linters on all go files
11-
go tool golangci-lint run -v ./...
13+
.PHONY: vulncheck
14+
vulncheck: ## Check for vulnerabilities in dependencies
15+
$(GO) run $(GOVULNCHECK) ./...
1216

17+
.PHONY: lint
18+
lint: fmt vulncheck ## Run linters on all go files
19+
$(GO) run $(GOLANG_CI) run -v
1320

1421
.PHONY: fmt
1522
fmt: ## Formats all go files
@@ -18,4 +25,4 @@ fmt: ## Formats all go files
1825

1926
.PHONY: run
2027
run:
21-
go run cmd/generate/main.go
28+
go run cmd/generate/main.go

0 commit comments

Comments
 (0)