enum-pascal-case
What it does
Section titled “What it does”Reports an enum name that is not PascalCase.
Why it matters
Section titled “Why it matters”The Protobuf style guide names types in PascalCase, and the generated code of most languages uses the name as a type name, where another form reads as something else.
To fix, rename to PascalCase.
Example
Section titled “Example”... }}
enum bad_enum { BAD_ENUM_UNSPECIFIED = 0;...}...Configuration
Section titled “Configuration”protobuf: lint: rules: enum-pascal-case: warn # off (default), warn, errorEnabled by the presets: protobuf/buf-standard.
Suppress one line with sudsy-disable-next-line enum-pascal-case in a comment of the file’s language.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools; Sudsy reports what each upstream rule reports.
| Tool | Rule | Match |
|---|---|---|
| buf | ENUM_PASCAL_CASE |
full |