Skip to content

Commit

Permalink
[chore] enabling replace interface{} by any (open-telemetry#36735)
Browse files Browse the repository at this point in the history
<!--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.
  • Loading branch information
perebaj authored Dec 11, 2024
1 parent 11fe136 commit 28ede1d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 28ede1d

Please sign in to comment.