message-pascal-case
What it does
Section titled “What it does”Reports a message name that is not PascalCase.
Why it matters
Section titled “Why it matters”The Protobuf style guide names messages in PascalCase, and the name becomes a class or type name in the generated code.
To fix, rename the message.
Example
Section titled “Example”... }}
message bad_message {...Configuration
Section titled “Configuration”protobuf: lint: rules: message-pascal-case: warn # off (default), warn, errorEnabled by the presets: protobuf/buf-standard.
Suppress one line with sudsy-disable-next-line message-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 | MESSAGE_PASCAL_CASE |
full |