EasyP

Enum Zero Value Suffix

Categories:

  • MINIMAL
  • BASIC
  • DEFAULT

This rule checks that all enum zero values are suffixed with _NONE or your custom suffix.

Examples

Bad

syntax = "proto3";

enum Foo {
    BAR = 0;
}

Good

syntax = "proto3";

enum Foo {
    FOO_BAR_NONE = 0;
}

On this page