From 41dc94ee17fb02e3c50f13f9c15015b9031092a2 Mon Sep 17 00:00:00 2001 From: Kohei Tokunaga Date: Wed, 8 May 2024 12:09:30 +0900 Subject: [PATCH] CI: bump up golangci-lint to v1.58.0 This also fixes the following warnings: ``` WARN [config_reader] The configuration option `run.skip-dirs` is deprecated, please use `issues.exclude-dirs`. WARN [lintersdb] The name "vet" is deprecated. The linter has been renamed to: govet. ``` Signed-off-by: Kohei Tokunaga --- .github/workflows/ci.yml | 2 +- .golangci.yml | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 41bce00c133d..88182b45f5b8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: - uses: ./.github/actions/install-go - uses: golangci/golangci-lint-action@v5 with: - version: v1.56.1 + version: v1.58.0 skip-cache: true args: --timeout=8m diff --git a/.golangci.yml b/.golangci.yml index 9c2ed082d98b..5ad1b03026b9 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -13,7 +13,7 @@ linters: - tenv # Detects using os.Setenv instead of t.Setenv since Go 1.17 - unconvert - unused - - vet + - govet - dupword # Checks for duplicate words in the source code disable: - errcheck @@ -76,12 +76,13 @@ linters-settings: nolintlint: allow-unused: true -run: - timeout: 8m - skip-dirs: + exclude-dirs: - api - cluster - docs - docs/man - releases - test # e2e scripts + +run: + timeout: 8m