@@ -145,7 +145,7 @@ vet: test-go-generate ## Run go vet against code.
145145 GOOS=$(GOOS ) $(GO ) vet -mod=mod ./...
146146
147147.PHONY : lint-fast
148- lint-fast : staticcheck vet golangci-lint # [INTERNAL] Run all lint job against code.
148+ lint-fast : vet golangci-lint # [INTERNAL] Run all lint job against code.
149149
150150.PHONY : lint
151151lint : test-go-generate generate # # Run default lint job against code.
@@ -155,10 +155,6 @@ lint: test-go-generate generate ## Run default lint job against code.
155155golangci-lint : golangci-lint-bin generate # # Run golangci-lint against code.
156156 $(GOLANGCILINT ) run ./...
157157
158- .PHONY : staticcheck
159- staticcheck : staticcheck-bin test-go-generate generate # # Run staticcheck against code.
160- $(STATICCHECK ) ./...
161-
162158.PHONY : build-checks
163159build-checks : fmt vet goimports lint-fast # # Run build checks.
164160
@@ -386,7 +382,7 @@ controller-gen: $(LOCALBIN) ## Download controller-gen locally if necessary.
386382envtest : $(LOCALBIN ) # # Download envtest-setup locally if necessary.
387383 $(call go-install-tool,$(ENVTEST ) ,sigs.k8s.io/controller-runtime/tools/setup-envtest,$(ENVTEST_VERSION ) )
388384
389- GOLANGCILINT_VERSION = v1.64.8
385+ GOLANGCILINT_VERSION = v2.8.0
390386GOLANGCILINT = $(LOCALBIN ) /golangci-lint-$(GOLANGCILINT_VERSION )
391387.PHONY : golangci-lint-bin
392388golangci-lint-bin : $(LOCALBIN ) # # Download golangci-lint locally if necessary.
@@ -396,12 +392,6 @@ golangci-lint-bin: $(LOCALBIN) ## Download golangci-lint locally if necessary.
396392 mv "$(LOCALBIN)/golangci-lint" "$(GOLANGCILINT)"; \
397393 }
398394
399- STATICCHECK_VERSION = v0.6.1
400- STATICCHECK = $(LOCALBIN ) /staticcheck-$(STATICCHECK_VERSION )
401- .PHONY : staticcheck-bin
402- staticcheck-bin : $(LOCALBIN ) # # Download staticcheck locally if necessary.
403- $(call go-install-tool,$(STATICCHECK ) ,honnef.co/go/tools/cmd/staticcheck,$(STATICCHECK_VERSION ) )
404-
405395GOIMPORTS_VERSION = v0.34.0
406396GOIMPORTS = $(LOCALBIN ) /goimports-$(GOIMPORTS_VERSION )
407397.PHONY : goimports-bin
0 commit comments