Answer principles round 1: 1 🔴, 6 🟡; correct the OVERRIDE comment, scope the floor title to the chunk and file the citation check

This commit is contained in:
2026-10-21 19:19:59 +02:00
parent 1a1da8f94d
commit b20dc28f5b
5 changed files with 18 additions and 13 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ RULES: dict[RuleName, Rule] = {
"a git commit in a checkout whose todo.md has changes",
),
}
# The lookahead ends each reason at the next marker on its line, or at the line's end. The reason is lazy, so it stops there rather than at the last marker.
# The lookahead ends each reason at the next marker on its line, or at the line's end. The reason is lazy, so it stops at the next marker instead of running on and swallowing the markers after it.
# An HTML marker's closing `-->` stays in its reason; `overrides` strips it.
OVERRIDE = re.compile(r"(?:#|<!--)\s*rule-override ([a-z-]+):([^\n]*?)(?=[ \t]*(?:#|<!--)\s*rule-override |$)", re.MULTILINE)
# [-] keeps this file from matching itself.