Skip to content

message-pascal-case

Protobufstyleno fixdefault: offprotobuf/buf-standard

Reports a message name that is not PascalCase.

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.

Reported
...
}
}
message bad_message {
...
protobuf:
lint:
rules:
message-pascal-case: warn # off (default), warn, error

Enabled 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.

The same check in other tools; Sudsy reports what each upstream rule reports.

Tool Rule Match
buf MESSAGE_PASCAL_CASE full