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 processor #36347

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

Copy link
Member

@mx-psi mx-psi left a comment

Choose a reason for hiding this comment

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

Will there be any way to autofix format to make it gofumpt compliant after this PR is merged?

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
@mmorel-35
Copy link
Contributor Author

Like I did with Whitespace linter, it is applied through several PR across the whole project. Then the linter is globally enabled in the golangci config.Then can be auto fixed through IDE configuration or Make rules

@mmorel-35 mmorel-35 mentioned this pull request Nov 13, 2024
9 tasks
@bogdandrutu bogdandrutu merged commit 6db5d1a 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/processor 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
Labels
processor/attributes Attributes processor processor/cumulativetodelta Cumulative To Delta processor processor/deltatocumulative processor/deltatorate Delta To Rate processor processor/filter Filter processor processor/groupbyattrs Group By Attributes processor processor/groupbytrace Group By Trace processor processor/interval processor/k8sattributes k8s Attributes processor processor/logdedup processor/logstransform Logs Transform processor processor/metricsgeneration Metrics Generation processor processor/metricstransform Metrics Transform processor processor/probabilisticsampler Probabilistic Sampler processor processor/redaction Redaction processor processor/remotetap processor/resource Resource processor processor/resourcedetection Resource detection processor processor/routing Routing processor processor/span processor/sumologic processor/tailsampling Tail sampling processor processor/transform Transform processor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants