-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Role issue #18093
Role issue #18093
Conversation
- Avoid re-assignments `xxx = xxx.WithRole(xxx)`. - Enable `modifies-value-receiver` rule(this was the only error)
In Golang, So |
I against this. |
Or could we just disable the lint for RoleDescriptor? The old code seems fine. :) |
The old code is fine indeed, after applying the suggestion from lunny(which is the actual correct fix for the linter). |
Codecov Report
@@ Coverage Diff @@
## main #18093 +/- ##
=======================================
Coverage ? 44.87%
=======================================
Files ? 824
Lines ? 91581
Branches ? 0
=======================================
Hits ? 41097
Misses ? 43891
Partials ? 6593
Continue to review full report at Codecov.
|
xxx = xxx.WithRole(xxx)
.modifies-value-receiver
rule(this was the only error)