Expand description
ordered_block — the lines between a start / end marker
pair must stay sorted (optionally unique) under a configurable
comparator. The generic form of the per-project keep-sorted
/ keep_sorted scripts (protobuf failure_lists is the
highest-stakes source). Per-file rule (the PerFileRule fast
path), not cross-file. Design + open-question resolutions:
docs/design/v0.10/ordered_block.md.
- id: keep-sorted
kind: ordered_block
paths: ["**/.gitignore", "CODEOWNERS"]
start: "# keep-sorted start" # matched on the trimmed line
end: "# keep-sorted end"
comparator: lexical # lexical (default) | lexical-ci | numeric
unique: false # also forbid duplicate entries
level: warning