Skip to content

fix(hooks): pin UNVERIFIED lines in hook block reasons - #23

Merged
ElbertePlinio merged 1 commit into
mainfrom
fix/hook-reason-unverified
Sep 27, 2026
Merged

ElbertePlinio merged 1 commit into
mainfrom
fix/hook-reason-unverified

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

Closes #4

The reported bug was already fixed in #15, which replaced the hook's violations-only text_report with the shared report::summary renderer. That renderer includes the UNVERIFIED total and path lines under the 20-path cap.

This PR closes the remaining gaps from the issue. The spec now says the hook <summary> is the --summary text report with its UNVERIFIED lines, and that unverified files alone never block, which matches "UNVERIFIED alone never fails". A new integration test runs the Claude Stop hook on a repo with one violating file and one unverified .kt file and asserts that the block reason lists both.

Verified with:

  • cargo test --workspace --locked --all-targets
  • cargo fmt --check
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo llvm-cov --workspace --locked --fail-under-lines 89 (92.21% lines)
  • pickcheck check --changed (clean)

The shared summary renderer already lists unverified files in hook
reasons. Pin that in the spec and cover it with a Stop hook test.
@ElbertePlinio
ElbertePlinio merged commit 4227b64 into main Sep 27, 2026
8 checks passed
@ElbertePlinio
ElbertePlinio deleted the fix/hook-reason-unverified branch September 27, 2026 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hook block reason omits UNVERIFIED lines

1 participant