Repository navigation
fix(cli): stop verify exiting 0 when a rule did not run - #615
Conversation
verify exited 0 with a top-level ok: true when a runtime rule's fixtures were skipped for want of --dangerously-run-scripts, so anything reading the exit code saw a pass for a rule nothing exercised. It now exits 2 and reports ok: false when nothing failed but a rule did not run, and still exits 1 when a rule failed. The pre-commit recipe names the static engine directories, because a hook never passes the flag and any non-zero exit blocks the commit.
|
@claude /review |
|
Claude finished @theCodeDrift's task in 1m 5s —— View job Review:
|
Read. No code change: the note about the verified, failed and refused partition is an observation for future edits, and the review found no defect today. — AI Coding Agent |
taskless verifyexited 0 with a top-levelok: truewhen a runtime rule's fixtures were skipped for want of--dangerously-run-scripts. Anything reading only the exit code saw a pass for a rule nothing exercised.oktruefalsefalseA run where some rules pass and a runtime rule is skipped exits 2, because exit 0 would keep the false pass for any repo holding both kinds of rule.
Pre-commit recipe. The
hooksrecipe ran a bareverifyand forbids the flag, and any non-zero exit blocks the commit. It now names.taskless/rules/sgand.taskless/rules/vale, which never reach a runtime rule. Hooks already installed from the old recipe are not rewritten, so the changeset says what to change.Spec.
cli-rule-validationrequired the old behavior. The delta restates the requirement in full, and all existing scenarios survived the archive, with two added. The change is archived on this PR.Fixes #612