File tree Expand file tree Collapse file tree
internal/rules/MDS036-max-section-length Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ settings :
3+ max : 0
4+ per-heading :
5+ - pattern : " ^Changelog$"
6+ max : 2
7+ diagnostics :
8+ - line : 3
9+ column : 1
10+ message : ' section "## Changelog" too long (5 > 2)'
11+ ---
12+ # Overview
13+
14+ ## Changelog
15+
16+ - entry one
17+ - entry two
18+ - entry three
Original file line number Diff line number Diff line change 1+ ---
2+ settings :
3+ max : 0
4+ per-heading :
5+ - pattern : " ^Short$"
6+ max : 4
7+ ---
8+ # Title
9+
10+ ## Short
11+
12+ One line.
13+
14+ ## Longer section with no matching pattern
15+
16+ This section is longer but stays untouched because only headings
17+ matching ` ^Short$ ` are capped and the default ` max ` is zero.
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ to prevent oversized headings from hiding in otherwise compliant files.
1414
15151 . [x] Define section boundary detection rules for heading levels.
16162 . [x] Add configuration for per-heading or per-pattern limits.
17- 3 . [x] Implement rule to count section length by lines or tokens .
17+ 3 . [x] Implement rule to count section length by lines.
18184 . [x] Document configuration and examples.
1919
2020## Acceptance Criteria
You can’t perform that action at this time.
0 commit comments