Skip to content
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

Merged
merged 1 commit into from
Nov 21, 2024
Merged

Conversation

mmorel-35
Copy link
Contributor

@mmorel-35 mmorel-35 commented Nov 20, 2024

Description

gofumpt enforces a stricter format than gofmt

Closes #36363

@mmorel-35
Copy link
Contributor Author

/cc @andrzej-stencel

@songy23 songy23 added the ci-cd CI, CD, testing, build issues label Nov 21, 2024
Copy link
Member

@andrzej-stencel andrzej-stencel left a 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.

Copy link
Member

@andrzej-stencel andrzej-stencel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet! 😍 Thank you!

@dmitryax dmitryax merged commit 242addd into open-telemetry:main Nov 21, 2024
158 checks passed
@github-actions github-actions bot added this to the next release milestone Nov 21, 2024
@mmorel-35 mmorel-35 deleted the gofumpt branch November 21, 2024 20:56
MovieStoreGuy pushed a commit that referenced this pull request Dec 11, 2024
<!--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.
sbylica-splunk pushed a commit to sbylica-splunk/opentelemetry-collector-contrib that referenced this pull request Dec 17, 2024
sbylica-splunk pushed a commit to sbylica-splunk/opentelemetry-collector-contrib that referenced this pull request Dec 17, 2024
<!--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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[chore] enable gofumpt linter
5 participants