Initial commit
This commit is contained in:
31
hooks/examples/permissive.json
Normal file
31
hooks/examples/permissive.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"description": "Permissive mode - warn only, never block. Supports convention-based context injection.",
|
||||
"comment": "Context files in .claude/context/ auto-inject without configuration. See CONVENTIONS.md",
|
||||
|
||||
"gates": {
|
||||
"check": {
|
||||
"description": "Quality checks (warn only)",
|
||||
"comment": "Examples: 'npm run lint' | 'cargo clippy' | 'mise run check'",
|
||||
"command": "mise run check",
|
||||
"on_pass": "CONTINUE",
|
||||
"on_fail": "CONTINUE"
|
||||
},
|
||||
"test": {
|
||||
"description": "Tests (warn only)",
|
||||
"comment": "Examples: 'npm test' | 'cargo test' | 'mise run test'",
|
||||
"command": "mise run test",
|
||||
"on_pass": "CONTINUE",
|
||||
"on_fail": "CONTINUE"
|
||||
}
|
||||
},
|
||||
"hooks": {
|
||||
"PostToolUse": {
|
||||
"enabled_tools": ["Edit", "Write"],
|
||||
"gates": ["check"]
|
||||
},
|
||||
"SubagentStop": {
|
||||
"enabled_agents": [],
|
||||
"gates": ["check", "test"]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user