From 444d053e12d64179b6d3c7d610d493b53268f71c Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 9 May 2023 12:36:32 +0200 Subject: [PATCH] update golangci-lint to v1.52 Removing the "structcheck" and "varcheck" linters as they've been deprecated. level=warning msg="[runner] The linter 'structcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused." level=warning msg="[runner] The linter 'varcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused." Signed-off-by: Sebastiaan van Stijn (cherry picked from commit dec03ea3d85d66f7681648c502260ea3cf370143) Signed-off-by: Sebastiaan van Stijn --- .golangci.yml | 10 ++++++++-- script/setup/install-dev-tools | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 36c083b0f..61dd0e00e 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,7 +1,5 @@ linters: enable: - - structcheck - - varcheck - staticcheck - unconvert - gofmt @@ -14,6 +12,14 @@ linters: disable: - errcheck +linters-settings: + revive: + rules: + # TODO(thaJeztah): temporarily disabled the "unused-parameter" check. + # It produces many warnings, and some of those may need to be looked at. + - name: unused-parameter + disabled: true + run: deadline: 2m skip-dirs: diff --git a/script/setup/install-dev-tools b/script/setup/install-dev-tools index 7737836bb..460718b3e 100755 --- a/script/setup/install-dev-tools +++ b/script/setup/install-dev-tools @@ -1,6 +1,6 @@ #!/usr/bin/env bash -GOLANGCI_LINT_VERSION="v1.50.1" +GOLANGCI_LINT_VERSION="v1.52.0" # # Install developer tools to $GOBIN (or $GOPATH/bin if unset)