syntax-specified
What it does
Section titled “What it does”Reports a file without syntax = ...; or edition = ...;, which makes it proto2.
Why it matters
Section titled “Why it matters”A file without the statement is proto2 by default. New files almost always mean proto3 or an edition, and with the default they get required fields and other rules that differ.
To fix, add syntax = "proto3"; or an edition.
Example
Section titled “Example”import public "google/protobuf/empty.proto";
message Old {...Configuration
Section titled “Configuration”protobuf: lint: rules: syntax-specified: warn # off (default), warn, errorEnabled by the presets: protobuf/buf-standard.
Suppress one line with sudsy-disable-next-line syntax-specified 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 | SYNTAX_SPECIFIED |
full |