rpc-request-standard-name
What it does
Section titled “What it does”Reports an rpc whose request type is not named <Rpc>Request or <Service><Rpc>Request.
Why it matters
Section titled “Why it matters”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.
Example
Section titled “Example”...service FooService { rpc Get(GetRequest) returns (GetResponse); rpc List(FooServiceListRequest) returns (FooServiceListResponse); rpc Put(Other) returns (Other);}Configuration
Section titled “Configuration”protobuf: lint: rules: rpc-request-standard-name: warn # off (default), warn, errorEnabled 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.
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_STANDARD_NAME |
full |