Skip to content

rpc-request-standard-name

Protobufstyleno fixdefault: offprotobuf/buf-standard

Reports an rpc whose request type is not named <Rpc>Request or <Service><Rpc>Request.

A request type with the name of its rpc is not reused for another rpc. A shared type couples the two calls, and a change for one changes the other.

To fix, give each rpc its own request message with that name.

Reported
...
service FooService {
rpc Get(GetRequest) returns (GetResponse);
rpc List(FooServiceListRequest) returns (FooServiceListResponse);
rpc Put(Other) returns (Other);
}
protobuf:
lint:
rules:
rpc-request-standard-name: warn # off (default), warn, error

Enabled by the presets: protobuf/buf-standard.

Suppress one line with sudsy-disable-next-line rpc-request-standard-name 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_REQUEST_STANDARD_NAME full