Skip to content

rpc-request-response-unique

Protobufstyleno fixdefault: offprotobuf/buf-standard

Reports an rpc whose request or response type is also the request or response type of another rpc of the project.

A message that several rpcs share couples them: adding a field for one call changes the others, and the calls cannot evolve apart.

To fix, give each rpc its own request and response messages.

protobuf:
lint:
rules:
rpc-request-response-unique: warn # off (default), warn, error

Enabled by the presets: protobuf/buf-standard.

Suppress one line with sudsy-disable-next-line rpc-request-response-unique 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_RESPONSE_UNIQUE full