Skip to content

service-suffix

Protobufstyleno fixdefault: offprotobuf/buf-standard

Reports a service whose name does not end in Service.

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.

Reported
...
...
service Thing {}
protobuf:
lint:
rules:
service-suffix: warn # off (default), warn, error

Enabled by the presets: protobuf/buf-standard.

Suppress one line with sudsy-disable-next-line service-suffix in a comment of the file’s language.

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.