From bff5843425b581d249ed6a6a9285a9e5ed89bbbe Mon Sep 17 00:00:00 2001 From: David Bendory Date: Wed, 19 Apr 2023 12:21:44 -0400 Subject: [PATCH] Upgraded golangci-lint to version 1.52.2. See this thread: https://tektoncd.slack.com/archives/CJ4ERJWAU/p1681920119203019 Context: https://github.com/tektoncd/pipeline/issues/5899 Disabled `revive` linter; upgrade results in a high number of new unused variables not previously identified in the previous version. --- .golangci.yml | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 764cd1166a3..113b15c29a6 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -38,7 +38,6 @@ linters: - gosimple - govet - misspell - - revive - thelper - typecheck - unconvert @@ -46,6 +45,7 @@ linters: - usestdlibvars - whitespace disable: + - revive - staticcheck # Enabling presets means that new linters that we automatically adopt new # linters that augment a preset. This also opts us in for replacement linters diff --git a/Makefile b/Makefile index d916067ce39..bd07b8df0d5 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ TESTPKGS = $(shell env GO111MODULE=on $(GO) list -f \ $(PKGS)) BIN = $(CURDIR)/.bin -GOLANGCI_VERSION = v1.50.1 +GOLANGCI_VERSION = v1.52.2 GO = go TIMEOUT_UNIT = 5m