Generalise stability-replay to review-replay of any pass, and route each pass on its own rung so a replay may lower one pass alone
This commit is contained in:
@@ -3,13 +3,13 @@ import os
|
||||
|
||||
from rule_hook.rules import Breach
|
||||
from rule_hook.call import Call
|
||||
from rule_hook.reviewer_rung import PASS_OF
|
||||
from review_folder import REPORTS
|
||||
from rule_hook.reviewer_rung import REVIEWERS
|
||||
|
||||
|
||||
def report_breaches(call: Call, path: str, home: str) -> list[Breach]:
|
||||
"""The breach of a file call from a reviewer that is not a Write under REPORTS in home; none from any other agent."""
|
||||
if call.agent not in REVIEWERS:
|
||||
if call.agent not in PASS_OF:
|
||||
return []
|
||||
written = os.path.realpath(os.path.join(call.cwd, path))
|
||||
reports = os.path.realpath(os.path.join(home, REPORTS))
|
||||
|
||||
Reference in New Issue
Block a user