Retitle the comprehension-floor decision to say the floor doesn't block anything, define the comprehension terms and explain OVERRIDE

This commit is contained in:
2026-10-21 19:02:38 +02:00
parent bff8872e9b
commit 1a1da8f94d
5 changed files with 13 additions and 21 deletions
+2
View File
@@ -61,6 +61,8 @@ 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.
# 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.
ATTRIBUTION = re.compile(r"co-authored[-]by:[^\n]*\b(?:claude|anthropic)\b|generated with \[?claude code", re.IGNORECASE)