Files
noteflow/.claude/hookify.block-tests-quality.local.md

1.5 KiB

name, enabled, event, action, tool_matcher, conditions
name enabled event action tool_matcher conditions
block-tests-quality true file block Edit|Write|MultiEdit
field operator pattern
file_path regex_match tests/quality/
field operator pattern
file_path regex_not_match baselines.json$

BLOCKED: Protected Directory

The tests/quality/ directory is protected and cannot be modified directly.

Why This Is Blocked

  • This directory contains the test smell detection baselines and quality gate infrastructure
  • Changes to these files could compromise the project's quality enforcement
  • The user has explicitly requested that agents may view but never modify these files

What You Should Do Instead

  1. Use the test-extender skill: Run /test-extender to write better tests that pass the existing quality gates
  2. Update baselines.json: If the test-extender skill cannot resolve the issue, update tests/quality/baselines.json to adjust the baseline (this file IS editable)
  3. Report to user: Only if neither approach works, explain the issue and wait for explicit approval

Allowed Operations

  • Read files: Use the Read tool to view contents
  • Run tests: Execute pytest tests/quality/ to check current state
  • Edit baselines.json: This specific file can be modified to update violation counts

Forbidden Operations

  • Direct modification of any Python files in tests/quality/
  • Creating new files in this directory
  • Deleting or renaming existing test files

This rule cannot be bypassed. Do not attempt workarounds.