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 context-as-argument from revive #6273

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mmorel-35
Copy link
Contributor

Description

Clean up redondant configuration and mutualise comments

@mmorel-35 mmorel-35 marked this pull request as draft February 5, 2025 21:38
@mmorel-35 mmorel-35 changed the title chore: enable context-as-argument from revive [chore]: enable context-as-argument from revive Feb 5, 2025
@mmorel-35 mmorel-35 force-pushed the revive/context-as-argument branch 2 times, most recently from 450d871 to 0797f75 Compare February 5, 2025 22:00
@mmorel-35 mmorel-35 force-pushed the revive/context-as-argument branch from 0797f75 to 5cf2dc7 Compare February 5, 2025 22:01
@mmorel-35 mmorel-35 marked this pull request as ready for review February 5, 2025 22:11
Copy link
Member

@dmathieu dmathieu left a comment

Choose a reason for hiding this comment

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

I'm not really at ease with forcing an old version of viper just to clean up configuration.

@@ -2,6 +2,9 @@ module go.opentelemetry.io/otel/internal/tools

go 1.22.1

// TODO (#3372) remove version replacement when it is compatible. https://github.com/golangci/golangci-lint/issues/3280
replace github.com/spf13/viper => github.com/spf13/viper v1.12.0
Copy link
Member

Choose a reason for hiding this comment

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

How about downgrading viper down below rather than a replace? We get golangci-lint breaking changes all the time, and we ignore the renovabot PRs.

Copy link
Member

@pellared pellared left a comment

Choose a reason for hiding this comment

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

I am not in favor of downgrading some dependency given that the context-as-argument rule has not even found any issue. This can bring troubles without clear benefits.

Can you make a separate PR which just cleans the config e.g. removes disabled: false? Basically one that cleans up redundant configuration and comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants