Repository navigation
docs(review-checklist): state the rule-ordering invariant in the header - #1737
Merged
Merged
Conversation
Adding a rule to the tail of its thematic section is the intuitive move, and it silently breaks the numbering: markdown numbers ordered-list items by position, so the new rule renders under the section's next number and its own number appears nowhere. #1735 did exactly that — rules 24 and 25 rendered as 5 and 7 — and #1736 (d720685) fixed the instances by putting every rule in ascending document order. Rule numbers are cited by number elsewhere (ADR-028 rule 23, ADR-019 rule 9, REVIEW.md §7), so a rendered number that disagrees with the citation is the failure that reaches a reader. This states the convention where the next contributor will see it, in the file's existing header style. Docs only, one line. Rendered numbers are unchanged at 1..25 (marked@12), and the note adds no list item.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
One line in the header of
docs/development/review-checklist.md, stating a convention whose absence cost two PRs today.Markdown numbers ordered-list items by position, not by the literal number in the source, and this file's rule numbers are cited by number elsewhere (
ADR-028cites rule 23,ADR-019cites rule 9,REVIEW.mdcites §7). So appending a new rule to the tail of its thematic section — the intuitive move, and the one I made in #1735 — renders that rule under the section's next number. Measured ona204e72bbefore #1736: rule 24 rendered as 5, rule 25 as 7, rule 23 as 18, rule 18 as 19/20; the numbers 24 and 25 appeared nowhere in the rendered file. #1736 (d720685a) fixed the instances by putting every rule in ascending document order. This states the rule so the next contributor does not have to rediscover it.The consequence is worth stating plainly, because the convention has a cost: new rules go at the end of the file, so they land under whichever section is last rather than in the section they belong to thematically. That is the trade this file already made in #1736 (rules 23, 24 and 25 now sit under
## Failure direction), and it is the right one for a file whose numbers are cited by external documents. If the doc owner would rather have both — thematic placement and correct numbers — the fix is structural: convert the rules from ordered-list items to###headings, which decouples the number from list position entirely. That is a large diff and not this PR; say the word and I will scope it.Evidence
git diff --numstat→1 insertion(+), 0 deletions(-).1…25(samemarked@12direct-children count as docs(review-checklist): dedupe rules 18/19 and put every rule in numeric order so rendered numbers match their literals #1736's head, which Vera independently confirmed with mdast).