From 28ede1db2f69b0bd4cf6c4ee4ec999dd62b007d2 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Wed, 11 Dec 2024 08:37:02 -0300 Subject: [PATCH] [chore] enabling replace `interface{}` by `any` (#36735) #### Description As we change the gofmt by gofumpt -> https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/36471, the rewrite rule that is responsible for change `interface{}` by `any` isn't working anymore. We noticed this problem here -> https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/36688#discussion_r1873836818. This PR tries to address this lack. --- .golangci.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 83f780bdc864..28bfb9ead30a 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -80,13 +80,8 @@ linters-settings: revive: # minimal confidence for issues, default is 0.8 min-confidence: 0.8 - - gofmt: - # simplify code: gofmt with `-s` option, true by default - simplify: true - rewrite-rules: - - pattern: interface{} - replacement: any + rules: + - name: use-any goimports: # put imports beginning with prefix after 3rd-party packages;