Skip to content

Commit

Permalink
.golangci.yml: switch deprecated skip-dirs to exclude-dirs
Browse files Browse the repository at this point in the history
golangci-lint 1.59.1 reports:

  WARN [config_reader] The configuration option `run.skip-dirs` is
  deprecated, please use `issues.exclude-dirs`.
  • Loading branch information
kyleam committed Aug 13, 2024
1 parent 2f3c7c5 commit 4260397
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ issues:
- gocyclo
- dupl
- gosec
exclude-dirs:
- (^|/)mock($|/)

linters-settings:
errcheck:
Expand All @@ -31,8 +33,6 @@ linters-settings:

run:
skip-dirs-use-default: true
skip-dirs:
- (^|/)mock($|/)
timeout: 3m

linters:
Expand Down

0 comments on commit 4260397

Please sign in to comment.