Skip to content

package-lower-snake-case

Protobufstyleno fixdefault: offprotobuf/buf-standard

Reports a package whose components are not lower_snake_case.

The Protobuf style guide writes packages in lower_snake_case, dot separated. Generators turn the package into namespaces or modules, and another form reads as something else there.

To fix, rename the package.

Reported
syntax = "proto3";
package Acme.core;
...
protobuf:
lint:
rules:
package-lower-snake-case: warn # off (default), warn, error

Enabled by the presets: protobuf/buf-standard.

Suppress one line with sudsy-disable-next-line package-lower-snake-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 PACKAGE_LOWER_SNAKE_CASE full