line-count
July 26, 2026 · View on GitHub
Constrains how many lines a block may contain. Flags unbounded growth in a public API surface, or pins a switch to the size of the enum it maps.
Syntax
| Attribute | Value | Default |
|---|---|---|
line-count | <N, <=N, ==N, >=N, >N | — |
Example
# <block line-count="<=5">
"a",
"b",
"c"
# </block>
Notes
- Blank lines are not counted. The block above counts 3.
- A malformed comparator is a hard error, not a violation.
← Validators · README