@@ -74,9 +74,9 @@ MINIKUBE_RELEASES_URL=https://github.com/kubernetes/minikube/releases/download
7474
7575# latest from https://github.com/golangci/golangci-lint/releases
7676# update this only by running `make update-golint-version`
77- GOLINT_VERSION ?= v2.1.6
77+ GOLINT_VERSION ?= v2.6.2
7878# see https://golangci-lint.run/docs/configuration/file/ for config details
79- GOLINT_CONFIG ?= .golangci.yaml
79+ GOLINT_CONFIG ?= .golangci.min. yaml
8080# Set this to --verbose to see details about the linters and formatters used
8181GOLINT_VERBOSE ?=
8282# Limit number of default jobs, to avoid the CI builds running out of memory
@@ -523,15 +523,16 @@ out/linters/golangci-lint-$(GOLINT_VERSION):
523523ifeq ($(MINIKUBE_BUILD_IN_DOCKER ) ,y)
524524lint :
525525 docker run --rm -v ` pwd` :/app:Z -w /app golangci/golangci-lint:$(GOLINT_VERSION ) \
526- golangci-lint run ${GOLINT_OPTIONS} ./..."
527- # --skip-dirs "cmd/drivers/kvm|cmd/drivers/hyperkit|pkg/drivers/kvm|pkg/drivers/hyperkit"
528- # The "--skip-dirs" parameter is no longer supported in the V2 version. If you need to skip the directory,
529- # add it under "linters.settings.exclusions.paths" in the ".golangci.yaml" file.
526+ ./out/linters/golangci-lint-$(GOLINT_VERSION ) run ${GOLINT_OPTIONS} ./...
530527else
531528lint : out/linters/golangci-lint-$(GOLINT_VERSION ) # # Run lint
532529 ./out/linters/golangci-lint-$(GOLINT_VERSION ) run ${GOLINT_OPTIONS} ./...
533530endif
534531
532+ .PHONY : lint-max
533+ lint-max : out/linters/golangci-lint-$(GOLINT_VERSION ) # # Run lint
534+ ./out/linters/golangci-lint-$(GOLINT_VERSION ) run ${GOLINT_OPTIONS} --config .golangci.max.yaml ./...
535+
535536# lint-ci is slower version of lint and is meant to be used in ci (travis) to avoid out of memory leaks.
536537.PHONY : lint-ci
537538lint-ci : out/linters/golangci-lint-$(GOLINT_VERSION ) # # Run lint-ci
0 commit comments