From 8bc3fe0c0fccfad2b315422e563384bd69913894 Mon Sep 17 00:00:00 2001 From: iawia002 Date: Tue, 12 Oct 2021 17:46:28 +0800 Subject: [PATCH] Bump golangci-lint version to v1.42.1 Signed-off-by: iawia002 --- .golangci.yml | 2 +- hack/verify-staticcheck.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 725d84dee3c1..16eba6de1e4c 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -29,7 +29,6 @@ linters: # linters maintained by golang.org - gofmt - goimports - - golint - govet # linters default enabled by golangci-lint . - deadcode @@ -45,6 +44,7 @@ linters: - gocyclo - gosec - whitespace + - revive linters-settings: goimports: diff --git a/hack/verify-staticcheck.sh b/hack/verify-staticcheck.sh index 2f0f171b3914..1f71dcedad40 100755 --- a/hack/verify-staticcheck.sh +++ b/hack/verify-staticcheck.sh @@ -6,7 +6,7 @@ set -o pipefail REPO_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. GOLANGCI_LINT_PKG="github.com/golangci/golangci-lint/cmd/golangci-lint" -GOLANGCI_LINT_VER="v1.32.2" +GOLANGCI_LINT_VER="v1.42.1" cd "${REPO_ROOT}" source "hack/util.sh"