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
If your field name contains a number, the number should appear after the letter instead of after the underscore. For example, use song_name1 instead of song_name_1
When field name like song_name_1 or song_1_name is used, there is no obvious problem when generating javascript and java code, but it is strange that only golang decides to keep the underscore. So the golang code looks like:
ifmsg.GetSongName_1() =="new song" {
...
}
ifmsg.GetSong_1Name() =="new song" {
...
}
I can't find an option to turn on the linter to spot the problem, is there any?
The text was updated successfully, but these errors were encountered:
Hi,
I don't see the rule for
field name contains a number
being enforce when using theDEFAULT
lint configuration. The rule is mentioned in https://protobuf.dev/programming-guides/style/When field name like
song_name_1
orsong_1_name
is used, there is no obvious problem when generating javascript and java code, but it is strange that only golang decides to keep the underscore. So the golang code looks like:I can't find an option to turn on the linter to spot the problem, is there any?
The text was updated successfully, but these errors were encountered: