diff --git a/.golangci.yml b/.golangci.yml index 2cca15f1d14..bf9ff03b876 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -139,13 +139,12 @@ linters-settings: files: - "**_test.go" - # TODO: enable after import is not used anywhere - # disallow-otel-contrib-translator: - # deny: - # - pkg: github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/jaeger - # desc: "Use jptrace package instead of opentelemetry-collector-contrib/pkg/translator/jaeger" - # files: - # - "!**/jptrace/**" + disallow-otel-contrib-translator: + deny: + - pkg: github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/jaeger + desc: "Use jptrace package instead of opentelemetry-collector-contrib/pkg/translator/jaeger" + files: + - "!**/jptrace/**" goimports: local-prefixes: github.com/jaegertracing/jaeger