rpc-request-response-unique
What it does
Section titled “What it does”Reports an rpc whose request or response type is also the request or response type of another rpc of the project.
Why it matters
Section titled “Why it matters”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.
Configuration
Section titled “Configuration”protobuf: lint: rules: rpc-request-response-unique: warn # off (default), warn, errorEnabled 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.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools; Sudsy reports what each upstream rule reports.
| Tool | Rule | Match |
|---|---|---|
| buf | RPC_REQUEST_RESPONSE_UNIQUE |
full |