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 linter for pkg #36348

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

mmorel-35
Copy link
Contributor

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

Description

gofumpt enforces a stricter format than gofmt

Part of #36363

@mmorel-35 mmorel-35 force-pushed the gofumpt/pkg branch 2 times, most recently from 191cd18 to 1b94fa5 Compare November 13, 2024 17:50
@andrzej-stencel
Copy link
Member

For housekeeping, @mmorel-35 can you please create an issue for this and mention all the gofumpt pull requests in it, so that those pull requests can be easily correlated?

@@ -141,7 +141,7 @@ func testMetrics() pmetric.MetricSlice {

dp = dps.AppendEmpty()
attributes = pcommon.NewMap()
setDPDoubleVal(dp, 2, attributes, time.Date(1997, 07, 27, 1, 1, 1, 1, &time.Location{}))
setDPDoubleVal(dp, 2, attributes, time.Date(1997, 0o7, 27, 1, 1, 1, 1, &time.Location{}))
Copy link
Member

Choose a reason for hiding this comment

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

I like how the formatter has exposed that the "07" is actually interpreted in octal.

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
@mmorel-35 mmorel-35 mentioned this pull request Nov 13, 2024
9 tasks
@bogdandrutu bogdandrutu merged commit 7c914b9 into open-telemetry:main Nov 13, 2024
158 checks passed
@github-actions github-actions bot added this to the next release milestone Nov 13, 2024
@mmorel-35 mmorel-35 deleted the gofumpt/pkg branch November 14, 2024 06:02
sbylica-splunk pushed a commit to sbylica-splunk/opentelemetry-collector-contrib that referenced this pull request Dec 17, 2024
#### Description

[gofumpt](https://golangci-lint.run/usage/linters/#gofumpt) enforces a
stricter format than gofmt

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
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.

4 participants