-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
base: main
Are you sure you want to change the base?
[chore]: enable context-as-argument from revive #6273
Conversation
450d871
to
0797f75
Compare
Signed-off-by: Matthieu MOREL <[email protected]>
0797f75
to
5cf2dc7
Compare
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.
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 |
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.
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.
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.
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.
Description
Clean up redondant configuration and mutualise comments