Skip to content

Commit 28ede1d

Browse files
authored
[chore] enabling replace interface{} by any (open-telemetry#36735)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description As we change the gofmt by gofumpt -> open-telemetry#36471, the rewrite rule that is responsible for change `interface{}` by `any` isn't working anymore. We noticed this problem here -> open-telemetry#36688 (comment). This PR tries to address this lack.
1 parent 11fe136 commit 28ede1d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.golangci.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,8 @@ linters-settings:
8080
revive:
8181
# minimal confidence for issues, default is 0.8
8282
min-confidence: 0.8
83-
84-
gofmt:
85-
# simplify code: gofmt with `-s` option, true by default
86-
simplify: true
87-
rewrite-rules:
88-
- pattern: interface{}
89-
replacement: any
83+
rules:
84+
- name: use-any
9085

9186
goimports:
9287
# put imports beginning with prefix after 3rd-party packages;

0 commit comments

Comments
 (0)