Answer prose round 1: name the override reviewer apart from loop-claude's judge, list the override forms, and say each rule as it holds
This commit is contained in:
+12
-7
@@ -8,8 +8,8 @@ subagent. The rules:
|
||||
|
||||
action-pin a workflow's or action.yml's `uses:` names a semver tag, such as @v3 or @v3.1.2
|
||||
commit-one-line git commit takes its message as one -m with no newline
|
||||
ignorefile-sorted each block of a .*ignore file that an edit leaves unsorted is sorted; a blank
|
||||
line or comment ends a block
|
||||
ignorefile-sorted an edit leaves each block of a .*ignore file sorted, unless the block was
|
||||
unsorted before; a blank line or comment ends a block
|
||||
image-pin a Dockerfile FROM or COPY --from, or a compose or workflow `image:` or
|
||||
`container:`, names a full patch version, a date stamp or a digest
|
||||
no-ai-attribution no Claude or Anthropic co-author or generated-with line, in a file written or
|
||||
@@ -17,11 +17,16 @@ subagent. The rules:
|
||||
todo-rank-check a git commit while todo.md has changes, staged or not, needs
|
||||
rank_todo.py --check to pass on it
|
||||
|
||||
The file rules see what an Edit, MultiEdit or Write call writes, not a file a Bash command writes.
|
||||
action-pin, ignorefile-sorted, image-pin and no-ai-attribution check only what an Edit, MultiEdit or
|
||||
Write call writes, not a file a Bash command writes.
|
||||
|
||||
A call overrides a rule with `# rule-override <rule>: <reason>`: anywhere in a Bash command, such as
|
||||
a trailing comment; in a file, as a comment line in the text the edit writes, or in Markdown as
|
||||
`<!-- rule-override <rule>: <reason> -->`. Each override that let a call through is appended to
|
||||
A call overrides a rule with `# rule-override <rule>: <reason>`:
|
||||
|
||||
- anywhere in a Bash command, such as a trailing comment
|
||||
- in a file, as a comment line in the text the edit writes
|
||||
- in Markdown, as `<!-- rule-override <rule>: <reason> -->`
|
||||
|
||||
Each override that let a call through is appended to
|
||||
rule-overrides.tsv in the checkout's git directory: UTC time, branch, rule, reason, and the file
|
||||
written or the command's first line. `rule-hook overrides` prints the lines for the current branch.
|
||||
|
||||
@@ -81,7 +86,7 @@ def main(argv: list[str], stdin: str) -> int:
|
||||
for rule in sorted({breach.rule for breach in blocking}):
|
||||
details = "; ".join(breach.detail for breach in blocking if breach.rule == rule)
|
||||
marker = f"<!-- rule-override {rule}: <reason> -->" if markdown else f"# rule-override {rule}: <reason>"
|
||||
print(f"Blocked by rule {rule}: {details}. The rule: {RULES[rule]}. Where it does not fit this case, add `{marker}` to {where}; larv-review's judge rules on the reason.", file=sys.stderr)
|
||||
print(f"Blocked by rule {rule}: {details}. The rule: {RULES[rule]}. Where it does not fit this case, add `{marker}` to {where}; larv-review rules on the reason.", file=sys.stderr)
|
||||
return 2
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user