We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95450d7 commit f21e75eCopy full SHA for f21e75e
.golangci.yaml
@@ -44,12 +44,13 @@ linters-settings:
44
min-confidence: 0.8
45
46
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"
+ rules:
+ main:
+ deny:
+ - pkg: sync/atomic
+ desc: "Use go.uber.org/atomic instead of sync/atomic"
+ - pkg: github.com/pkg/errors
53
+ desc: "Use 'errors' or 'fmt' instead of github.com/pkg/errors"
54
55
linters:
56
enable:
0 commit comments