EasyP

Enum Pascal Case

Categories:

  • MINIMAL
  • BASIC
  • DEFAULT

This rule checks that enum names are in PascalCase.

Examples

Bad

syntax = "proto3";

package foo;

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

Good

syntax = "proto3";

package foo;

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

On this page