1.5 KiB
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 |
|
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
- Use the test-extender skill: Run
/test-extenderto write better tests that pass the existing quality gates - Update baselines.json: If the test-extender skill cannot resolve the issue, update
tests/quality/baselines.jsonto adjust the baseline (this file IS editable) - 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.