Skip to content

Commit

Permalink
Fix deprecated golangci-lint config
Browse files Browse the repository at this point in the history
Executing `golangci-lint run` using old config generates the following
warnings:

WARN [config_reader] The configuration option
    `run.skip-dirs-use-default` is deprecated, please use
    `issues.exclude-dirs-use-default`.
WARN [config_reader] The configuration option
    `linters.govet.check-shadowing` is deprecated. Please enable
    `shadow` instead, if you are not using `enable-all`.
  • Loading branch information
mogren authored and Sean-Der committed Apr 2, 2024
1 parent 1fe4b7a commit 376ba10
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ci/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

linters-settings:
govet:
check-shadowing: true
enable:
- shadow
misspell:
locale: US
exhaustive:
Expand Down Expand Up @@ -110,6 +111,7 @@ linters:

issues:
exclude-use-default: false
exclude-dirs-use-default: false
exclude-rules:
# Allow complex tests and examples, better to be self contained
- path: (examples|main\.go|_test\.go)
Expand All @@ -121,6 +123,3 @@ issues:
- path: cmd
linters:
- forbidigo

run:
skip-dirs-use-default: false

0 comments on commit 376ba10

Please sign in to comment.