Skip to content

Commit f21e75e

Browse files
authored
Fix depguard linter configuration (open-telemetry#2190)
1 parent 95450d7 commit f21e75e

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.golangci.yaml

+7-6
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,13 @@ linters-settings:
4444
min-confidence: 0.8
4545

4646
depguard:
47-
list-type: denylist
48-
include-go-root: true
49-
packages-with-error-message:
50-
# See https://github.com/open-telemetry/opentelemetry-collector/issues/5200 for rationale
51-
- sync/atomic: "Use go.uber.org/atomic instead of sync/atomic"
52-
- github.com/pkg/errors: "Use 'errors' or 'fmt' instead of github.com/pkg/errors"
47+
rules:
48+
main:
49+
deny:
50+
- pkg: sync/atomic
51+
desc: "Use go.uber.org/atomic instead of sync/atomic"
52+
- pkg: github.com/pkg/errors
53+
desc: "Use 'errors' or 'fmt' instead of github.com/pkg/errors"
5354

5455
linters:
5556
enable:

0 commit comments

Comments
 (0)