From d448034dea81abee23dc704d0b48017cbd6c6929 Mon Sep 17 00:00:00 2001 From: Anoop C S Date: Thu, 23 Feb 2023 11:16:22 +0530 Subject: [PATCH] hack: Bump golang-ci-lint to v1.53.3 * Removes already deprecated[1] linter varcheck * Depguard now expects a list of allow/deny list and default rule is to allow only std lib in all files[2]. Therefore disable the linter. [1] https://golangci-lint.run/product/roadmap/#v1490 [2] https://github.com/golangci/golangci-lint/issues/3877#issuecomment-1573682848 Signed-off-by: Anoop C S --- .golangci.yaml | 2 -- hack/install-tools.sh | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index ad237a80..5990ea04 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -6,7 +6,6 @@ linters: enable: - asciicheck # - deadcode - - depguard - dupl - errcheck - exhaustive @@ -37,7 +36,6 @@ linters: - unconvert # - unparam - unused - - varcheck - whitespace linters-settings: funlen: diff --git a/hack/install-tools.sh b/hack/install-tools.sh index 1e3bca9c..b2c4e8f7 100755 --- a/hack/install-tools.sh +++ b/hack/install-tools.sh @@ -44,7 +44,7 @@ _install_revive() { } _install_golangci_lint() { - _install_tool github.com/golangci/golangci-lint/cmd/golangci-lint@v1.46.2 + _install_tool github.com/golangci/golangci-lint/cmd/golangci-lint@v1.53.3 } _install_yq() {