service-suffix
What it does
Section titled “What it does”Reports a service whose name does not end in Service.
Why it matters
Section titled “Why it matters”The suffix tells a reader of the generated code, which has clients and servers of the service, that the name is a service. It also keeps the service from clashing with the message of the same name.
To fix, rename it OrdersService.
Example
Section titled “Example”...
...
service Thing {}Configuration
Section titled “Configuration”protobuf: lint: rules: service-suffix: warn # off (default), warn, errorEnabled by the presets: protobuf/buf-standard.
Suppress one line with sudsy-disable-next-line service-suffix in a comment of the file’s language.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools. full: Sudsy reports what the upstream rule reports; partial: only part of it, as the last column says.
| Tool | Rule | Match | What differs |
|---|---|---|---|
| buf | SERVICE_SUFFIX |
partial | The suffix is not configurable. |