Skip to content

Commit 376ba10

Browse files
mogrenSean-Der
authored andcommitted
Fix deprecated golangci-lint config
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`.
1 parent 1fe4b7a commit 376ba10

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ci/.golangci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33

44
linters-settings:
55
govet:
6-
check-shadowing: true
6+
enable:
7+
- shadow
78
misspell:
89
locale: US
910
exhaustive:
@@ -110,6 +111,7 @@ linters:
110111

111112
issues:
112113
exclude-use-default: false
114+
exclude-dirs-use-default: false
113115
exclude-rules:
114116
# Allow complex tests and examples, better to be self contained
115117
- path: (examples|main\.go|_test\.go)
@@ -121,6 +123,3 @@ issues:
121123
- path: cmd
122124
linters:
123125
- forbidigo
124-
125-
run:
126-
skip-dirs-use-default: false

0 commit comments

Comments
 (0)