-
Notifications
You must be signed in to change notification settings - Fork 2.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
messages: MessageAckKeyspaceIds #2886
Conversation
@michael-berlin I need to override codeclimate for some var names it's flagged. The names are non-compliant because they need to match the proto names. I tried to assert them as WontFix, but it says I'm not authorized. |
I think it only complains about the loop variable? You could rename these? ;) Fixing this now (at the price of breaking consistency) would be the easiest solution. This way you also avoid that somebody else runs into this problem at a later point when they touch that code. Note that the golang team doesn't provide directives to exempt something e.g. In any case, the Code Climate check is configured as optional (same as with Travis) i.e. you can always override/ignore it. Only the CLA check or the pull approve one require admin rights to ignore it. |
I could, but I'd be breaking consistency on how proto names variables. In general, they say that one should not fix golint warnings for golint's sake. Exceptions are allowed where it makes sense. I can rename these variables, but we'll need a way to override these because there will be cases where it won't make sense to comply. |
Is this written down somewhere? :) Given that they don't provide a directive to exempt things, I feel like their primary goal is to not have such exceptions in the first place i.e. always write compliant code :)
We can skip the check on a per file basis and do so for generated code: https://github.com/youtube/vitess/blob/master/.codeclimate.yml#L14 For not generated code, I don't want to skip files. Otherwise, we would skip legitimate problems in the same file as well. |
Skipping files would not be a good idea. We should just be able to override specific reports (which codeclimate allows, with the right permissions). The golint documentation specifically states that warnings can be ignored if it doesn't make sense: https://github.com/golang/lint#purpose. And here are some supporting arguments in issues: |
I tried the "Approve" feature in Code Climate and it works for me. Because of my approval, the check is green now. Did you login with your GitHub account on Code Climate? I checked the Code Climate settings but didn't find anything which would allow me to configure a list of allowed approvers. My guess is that, similar to Travis, you just need to be a collaborator of the project and then it works? We can follow up with them on that. Nonetheless, let me repeat what I said earlier:
|
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.
One comment on proto file.
// set by the application to further identify the caller. | ||
vtrpc.CallerID caller_id = 1; | ||
|
||
// Optional keyspace for message table. |
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.
The keyspace is not optional in v2, is it?
All review comments addressed including variable renaming. |
There is a need for a V2 level API for message acks. BUG=38423920
There is a need for a V2 level API for message acks.
BUG=38423920