package-version-suffix
What it does
Section titled “What it does”Reports a package whose last component is not v1, v1test..., v1alpha1, v1beta1 or v1p1alpha1 (v1beta too).
Why it matters
Section titled “Why it matters”A version in the package lets an incompatible API live next to the old one under another name (api.v2) instead of breaking its users. Without it a breaking change has to be made in place.
To fix, add a version component, for example acme.orders.v1.
Example
Section titled “Example”syntax = "proto3";
package Acme.core;
...Configuration
Section titled “Configuration”protobuf: lint: rules: package-version-suffix: warn # off (default), warn, errorEnabled by the presets: protobuf/buf-standard.
Suppress one line with sudsy-disable-next-line package-version-suffix 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_VERSION_SUFFIX |
full |