Skip to content

Commit

Permalink
CI: bump up golangci-lint to v1.58.0
Browse files Browse the repository at this point in the history
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 <ktokunaga.mail@gmail.com>
  • Loading branch information
ktock committed May 8, 2024
1 parent bfdc224 commit 41dc94e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
9 changes: 5 additions & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 41dc94e

Please sign in to comment.