package-lower-snake-case
What it does
Section titled “What it does”Reports a package whose components are not lower_snake_case.
Why it matters
Section titled “Why it matters”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.
Example
Section titled “Example”syntax = "proto3";
package Acme.core;
...Configuration
Section titled “Configuration”protobuf: lint: rules: package-lower-snake-case: warn # off (default), warn, errorEnabled 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.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools; Sudsy reports what each upstream rule reports.
| Tool | Rule | Match |
|---|---|---|
| buf | PACKAGE_LOWER_SNAKE_CASE |
full |