-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[chore] enable gofumpt globally #36471
Conversation
7da7d1a
to
f4296b3
Compare
9f6229a
to
f17fa44
Compare
/cc @andrzej-stencel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Makefile
's make gofmt
and Makefile.Common
's make fmt
commands still use gofmt
- would be good to replace them with gofumpt
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet! 😍 Thank you!
<!--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 -> #36471, the rewrite rule that is responsible for change `interface{}` by `any` isn't working anymore. We noticed this problem here -> #36688 (comment). This PR tries to address this lack.
#### Description [gofumpt](https://golangci-lint.run/usage/linters/#gofumpt) enforces a stricter format than gofmt Closes open-telemetry#36363
<!--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.
Description
gofumpt enforces a stricter format than gofmt
Closes #36363