You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, Go does not have enum so protoc generates an iota for enums. So we have to end the first item with zero value. This rule throws false-positive:
// protolint:disable ENUM_FIELD_NAMES_ZERO_VALUE_END_WITH
enum Result {
FOO = 0;
BAR = 1;
}
protolint version 0.38.2(66f8921)
What do you think?
The text was updated successfully, but these errors were encountered:
Oh, thanks for clarification and references! I also want to ask I think Go does not recommend UPPER_SNAKE_CASE since it mostly wants camelCase or PascalCase in variable declaration. (whereas its ok for Java, not sure about Python since it gets angry when not use lower_snake_case) Do you have any thoughts on this?
@Dentrax I have no particular thought on the rule's rationality as long as Google and its broad community define it.
In my understanding, proto files' specification is based on a language agnostic policy.
The naming convention for specific languages should be resolved by a compiler and its plugins.
The community has already discussed this topic, so I suggest you check out the link below first.
By default, Go does not have
enum
so protoc generates aniota
for enums. So we have to end the first item with zero value. This rule throws false-positive:protolint version 0.38.2(66f8921)
What do you think?
The text was updated successfully, but these errors were encountered: