Skip to content

Commit 3a2b7c4

Browse files
authored
[chore] address linter deprecation warnings (#33191)
As was done in core open-telemetry/opentelemetry-collector#10209 Signed-off-by: Alex Boten <[email protected]>
1 parent 4ba2c7c commit 3a2b7c4

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.golangci.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ run:
1515
# which dirs to skip: issues from them won't be reported;
1616
# can use regexp here: generated.*, regexp is applied on full path;
1717
# default value is empty list, but default dirs are skipped independently
18-
# from this option's value (see skip-dirs-use-default).
19-
skip-dirs:
18+
# from this option's value (see exclude-dirs-use-default).
19+
exclude-dirs:
2020
- third_party
2121
- local
2222
- cmd/otelcontribcol
2323
- cmd/oteltestbedcol
2424

2525
# default is true. Enables skipping of directories:
2626
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
27-
skip-dirs-use-default: false
27+
exclude-dirs-use-default: false
2828

2929
# which files to skip: they will be analyzed, but issues from them
3030
# won't be reported. Default value is empty list, but there is
@@ -45,7 +45,7 @@ run:
4545
# output configuration options
4646
output:
4747
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
48-
format: colored-line-number
48+
formats: colored-line-number
4949

5050
# print lines of code with issue, default is true
5151
print-issued-lines: true
@@ -62,9 +62,6 @@ linters-settings:
6262
- prefix(github.com/open-telemetry/opentelemetry-collector-contrib)
6363

6464
govet:
65-
# report about shadowed variables
66-
check-shadowing: true
67-
6865
# settings per analyzer
6966
settings:
7067
printf: # analyzer name, run `go tool vet help` to see all analyzers

0 commit comments

Comments
 (0)