chore(makefile): downloading locally golangci-lint

This commit is contained in:
Dario Tranchitella
2022-12-26 14:27:26 +01:00
parent 793d847a0b
commit 4100b98fad
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ issues:
- Using the variable on range scope .* in function literal
service:
golangci-lint-version: 1.33.x
golangci-lint-version: 1.45.2
run:
skip-files:
+6 -2
View File
@@ -213,10 +213,14 @@ bundle-build:
goimports:
goimports -w -l -local "github.com/clastix/capsule" .
GOLANGCI_LINT = $(shell pwd)/bin/golangci-lint
golangci-lint: ## Download golangci-lint locally if necessary.
$(call go-install-tool,$(GOLANGCI_LINT),github.com/golangci/golangci-lint/cmd/golangci-lint@v1.45.2)
# Linting code as PR is expecting
.PHONY: golint
golint:
golangci-lint run -c .golangci.yml
golint: golangci-lint
$(GOLANGCI_LINT) run -c .golangci.yml
# Running e2e tests in a KinD instance
.PHONY: e2e