Skip to content

rpc-pascal-case

Protobufstyleno fixdefault: offprotobuf/buf-standard

Reports an rpc name that is not PascalCase.

The Protobuf style guide names rpcs in PascalCase, and the name becomes a method name in the generated client and server code.

To fix, rename the rpc.

Reported
...
}
...
rpc bad_call(Good) returns (Good);
}
protobuf:
lint:
rules:
rpc-pascal-case: warn # off (default), warn, error

Enabled by the presets: protobuf/buf-standard.

Suppress one line with sudsy-disable-next-line rpc-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 RPC_PASCAL_CASE full