EasyP

Enum No Allow Alias

Categories:

  • MINIMAL
  • BASIC
  • DEFAULT

This rule checks that the allow_alias option is not set to true in an enum.

Examples

Bad

syntax = "proto3";

package foo;

enum Foo {
    option allow_alias = true;
    BAR = 0;
    BAZ = 1;
}

Good

syntax = "proto3";

package foo;

enum Foo {
    BAR = 0;
    BAZ = 1;
}

On this page