EasyP

Oneof Lower Snake Case

Categories:

  • MINIMAL
  • BASIC
  • DEFAULT

This rule checks that oneof names are in lower_snake_case.

Examples

Bad

syntax = "proto3";

package foo;

message Foo {
    oneof BarName {
        string bar_name = 1;
    }
}

Good

syntax = "proto3";

package foo;

message Foo {
    oneof bar_name {
        string bar_name = 1;
    }
}

On this page