easyp.yaml Reference
Complete specification for easyp.yaml, configuring producer-side linting rules, breaking change detection, path exclusions, and policy inheritance.
easyp.yaml defines lint and compatibility policies for protobuf schemas. Each section uses its nearest definition in the directory tree. Explicit linters.extends and breaking.extends inherit section-scoped bases from bounded local files or declared, locked modules. See shared policies.
Configuration Schema
Prop
Type
Example configuration
version: v1
linters:
default: STANDARD
enable: [ENUM_VALUE_PREFIX, RPC_REQUEST_RESPONSE_UNIQUE]
disable: [PACKAGE_VERSION_SUFFIX]
allow_comment_ignores: true
linters-settings:
ENUM_ZERO_VALUE_SUFFIX:
suffix: UNSPECIFIED
SERVICE_SUFFIX:
suffix: Service
issues:
exclude-rules:
- path: legacy/**/*.proto
linters: [FIELD_LOWER_SNAKE_CASE]
- path: generated
breaking:
baseline: git:main
categories: [FILE]
ignore_unstable: true
ignore: [gen]Section cascading
The linters, linters-settings, issues, and breaking sections each come as a whole from the nearest file defining that section; fields are not partially merged. A child issues: {} clears inherited exclusions. An inherited exclusion path stays relative to the file defining issues, even when the invocation directory or --root is deeper.
Policy discovery searches ancestors within the workspace. If no ancestor policy exists, one unambiguous outermost descendant policy may be selected; multiple independent policies require explicit --cfg. Explicit --cfg takes precedence, and explicit --root supplies the default lookup start.
Rule selection and exclusions
Repeated rule or group names are idempotent, and disabling wins over enabling. Unknown names in enable, disable, and exclusions are errors even if also listed on the opposite side. The reserved PACKAGE_NO_IMPORT_CYCLE rule is unimplemented and cannot be selected.
issues.exclude-rules[].path uses / separators and is anchored to the directory of the file supplying the effective issues section:
| Pattern | Matches |
|---|---|
generated | The directory and its whole subtree |
api/file.proto | That file |
api/*.proto | Files directly inside api |
api/?.proto | One character before .proto |
api/[a-c].proto | a.proto, b.proto, or c.proto |
api/**/file.proto | Zero or more intermediate directories |
** must occupy an entire segment. Absolute paths, backslashes, .. traversal, and malformed patterns are rejected. A literal path ending in .proto matches that file only; other literal paths cover their subtree. These rules apply to issue exclusions only, not every configuration path.
Without path, the rule applies to all files covered by the effective issues section. linters accepts implemented rule or group names; an omitted or empty list excludes matching files from linting entirely. A completely empty rule {} retains its explicit all-ignore meaning. In the example, the whole generated subtree is excluded, while only the named rule is suppressed in legacy.
Comment suppressions
linters.allow_comment_ignores defaults to true per effective policy. False disables comment-based suppressions. easyp:disable/easyp:enable provide annotations or bounded regions; legacy nolint:RULE and buf:lint:ignore RULE remain annotations. Unknown names, empty directives, and unmatched enables remain errors even when suppressions are disabled. See the linter guide for examples and scope.
Breaking checks
Explicit --against wins over breaking.baseline; without either, the default is master. This includes explicit --against master. An empty explicit flag is an error, and a missing Git baseline does not fall back to the configured one.
The baseline can name a local branch, a lightweight or annotated tag, a full commit SHA, or another locally resolvable Git revision such as HEAD. Required refs and objects must already be present in the checkout. A bare branch name takes precedence over an identically named tag; use refs/tags/v1.2.0 to select the tag explicitly. In YAML use git:refs/tags/v1.2.0; for the CLI pass --against refs/tags/v1.2.0 without a git: or git-ref= prefix.
breaking.ignore paths are relative to the file supplying the effective breaking section, not the Git root or --root. For example, ignore: [generated] in api/easyp.yaml excludes api/generated, including when that section is inherited. Entries must be nonempty local relative paths; absolute paths and paths escaping the policy directory or repository are rejected.
Each selected module uses revision-local roots, manifests, and locks for its current and baseline revisions. The baseline is read from an isolated Git snapshot; the caller's checkout, manifest, and lock are unchanged. Policies come from current configuration and may each select a different baseline. See the breaking guide for local replacement limits.
Select FILE for file/source compatibility, PACKAGE to allow moves within a package, WIRE_JSON for binary plus JSON, or WIRE for binary. See the profile matrix. Omitted/empty categories preserve legacy checks. Shared policies remain pinned through the consuming manifest/lock.
Unstable packages
breaking.ignore_unstable defaults to false. When true, it filters packages by their final protobuf package-name component on both sides of comparison, including dependency packages. Supported forms are vNtest..., vNalpha, vNbeta, vNpMalpha, and vNpMbeta. Alpha/beta may have a positive sequence number; N, M, and that sequence start with 1–9 followed by digits. Test may have any trailing suffix, including none.
For example, acme.v1testFeature, acme.v2alpha3, and acme.v2p3beta are skipped. acme.v1, acme.v0alpha1, acme.v1beta0, and acme.v1beta1.service do not match. Stable packages remain checked, including their references to unstable types. Filtering does not excuse malformed sources: reading and import resolution happen before filtering.