EasyP

Enum Value Prefix

Categories:

  • MINIMAL
  • BASIC
  • DEFAULT

This rule checks that all enum values are prefixed with the enum name.

Examples

Bad

syntax = "proto3";

enum Foo {
    BAR = 0;
}

Good

syntax = "proto3";

enum Foo {
    FOO_BAR = 0;
}

On this page