Answer prose round 1: 0 🔴, 5 🟡 (0 misread); reword the help paragraph, the changelog bullet and the decision, and restore the entry's old sentence
This commit is contained in:
@@ -104,7 +104,7 @@ class Breach:
|
||||
detail: str
|
||||
# The checkout whose log records an override of this breach.
|
||||
directory: str
|
||||
# Text beyond the call's own whose markers override this breach: the file a commit holds, as an Edit's text is for its file.
|
||||
# The lines a commit adds to the breach's file: its markers override this breach, as a Write's text overrides its own file's.
|
||||
marked: str = ""
|
||||
|
||||
|
||||
@@ -126,7 +126,7 @@ def overrides(written: str) -> tuple[dict[str, str], list[str]]:
|
||||
|
||||
def check(breaches: list[Breach], written: str, markdown: bool, bash: bool) -> Checked:
|
||||
granted, malformed = overrides(written)
|
||||
# Each breach is overridden by the call's markers and by its own file's.
|
||||
# A marker overrides a breach when it is in the call's own text or in the breach's file.
|
||||
grants = [granted | overrides(breach.marked)[0] for breach in breaches]
|
||||
blocking = [breach for breach, grant in zip(breaches, grants) if breach.rule not in grant]
|
||||
messages = [f"`{marker}` names no rule below, or gives no reason." for marker in malformed] if blocking else []
|
||||
|
||||
Reference in New Issue
Block a user