Have each reviewer write its full report to a file and return the worker only its findings' one-line summaries

This commit is contained in:
2026-10-18 00:11:08 +02:00
parent fdd48bb1cd
commit 9207566328
19 changed files with 111 additions and 30 deletions
+2 -1
View File
@@ -41,6 +41,7 @@ from rule_hook.rules import Breach, command_breaches, file_breaches, Outcome, ru
from git_command import commits
from failure import Failure
from rule_hook.override_log import Log, log_path, logged, print_overrides, write_override
from rule_hook.reviewer_report import report_breaches
from rule_hook.reviewer_rung import reviewer_breaches
from shell_command import simple_commands
from rule_hook.todo_check import todo_breaches
@@ -81,7 +82,7 @@ def breaches_of(call: Call, home: str, environ: typing.Mapping[str, str]) -> tup
return None
before = read(path)
added, after = applied(call, before)
return added, path, file_breaches(path, before, added, after)
return added, path, report_breaches(call, path) + file_breaches(path, before, added, after)
def answer(judged: Outcome, what: str, now: float) -> int: