From a52ae325f95adab428a67383b1694692616b32e9 Mon Sep 17 00:00:00 2001 From: RainbowMango Date: Mon, 26 Sep 2022 17:53:19 +0800 Subject: [PATCH] Update golangci-lint from 1.46.2 to 1.49.0 Signed-off-by: RainbowMango --- .golangci.yml | 3 --- hack/verify-staticcheck.sh | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index e79ca25b6..16d077d67 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -32,15 +32,12 @@ linters: - goimports - govet # linters default enabled by golangci-lint . - - deadcode - errcheck - gosimple - ineffassign - staticcheck - - structcheck - typecheck - unused - - varcheck # other linters supported by golangci-lint. - gci - gocyclo diff --git a/hack/verify-staticcheck.sh b/hack/verify-staticcheck.sh index c7a80a70e..e8ecc2b43 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.46.2" +GOLANGCI_LINT_VER="v1.49.0" cd "${REPO_ROOT}" source "hack/util.sh"