-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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 receiver-naming from revive #21372
Conversation
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #21372 +/- ##
==========================================
+ Coverage 55.20% 55.26% +0.05%
==========================================
Files 337 337
Lines 57039 57039
==========================================
+ Hits 31490 31521 +31
+ Misses 22847 22821 -26
+ Partials 2702 2697 -5 ☔ View full report in Codecov by Sentry. |
a5a3791
to
a17b60f
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.
Thanks for the PR! Those variable names are definitely clearer than before.
I think we can be even more consistent about the variable names: server *ArgoCDServer
VS c HTTPSCreds
VS ag *ApplicationGenerator
- if the consideration for server
was that argoCDServer
is too long and it was always choosing the last word, then maybe creds HTTPSCreds
? And maybe generator
instead of ag
, like in sharding *ClusterSharding
?
9f2be7b
to
1ae63fe
Compare
Signed-off-by: Matthieu MOREL <[email protected]>
1ae63fe
to
b61f361
Compare
Signed-off-by: Matthieu MOREL <[email protected]> Signed-off-by: Brett C. Dudo <[email protected]>
Signed-off-by: Matthieu MOREL <[email protected]>
Signed-off-by: Matthieu MOREL <[email protected]> Signed-off-by: flbla <[email protected]>
Description
receiver-naming: By convention, receiver names in a method should reflect their identity. For example, if the receiver is of type Parts, p is an adequate name for it. Contrary to other languages, it is not idiomatic to name receivers as this or self.