File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,16 @@ linters-settings:
105105 packages-with-error-message :
106106 # See https://github.com/open-telemetry/opentelemetry-collector/issues/5200 for rationale
107107 - sync/atomic : " Use go.uber.org/atomic instead of sync/atomic"
108+ - github.com/pkg/errors : " Use 'errors' or 'fmt' instead of github.com/pkg/errors"
109+ # Add a different guard rule so that we can ignore tests.
110+ additional-guards :
111+ - list-type : denylist
112+ include-go-root : true
113+ packages-with-error-message :
114+ - go.opentelemetry.io/proto : " Use go.opentelemetry.io/collector/pdata instead"
115+ # Allow in tests for testing pdata or other receivers/exporters that expect OTLP.
116+ ignore-file-rules :
117+ - " **/*_test.go"
108118
109119linters :
110120 enable :
You can’t perform that action at this time.
0 commit comments