Skip to content

service-pascal-case

Protobufstyleno fixdefault: offprotobuf/buf-standard

Reports a service name that is not PascalCase.

The Protobuf style guide names services in PascalCase, and the name becomes a class name in the generated code.

To fix, rename the service.

Reported
...
}
service bad_service {
...
}
protobuf:
lint:
rules:
service-pascal-case: warn # off (default), warn, error

Enabled by the presets: protobuf/buf-standard.

Suppress one line with sudsy-disable-next-line service-pascal-case 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 SERVICE_PASCAL_CASE full