Initial commit
This commit is contained in:
24
hooks/hooks.json
Normal file
24
hooks/hooks.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"PreToolUse": [
|
||||
{
|
||||
"name": "lint-before-commit",
|
||||
"command": "echo 'Running pre-commit linting validation...'",
|
||||
"description": "Validate linting before Bash commits",
|
||||
"match": {
|
||||
"tool": "Bash",
|
||||
"pattern": "git commit"
|
||||
}
|
||||
}
|
||||
],
|
||||
"PostToolUse": [
|
||||
{
|
||||
"name": "verify-no-claude-attribution",
|
||||
"command": "git log -1 --pretty=%B | grep -q 'Claude Code' && echo 'ERROR: Claude attribution detected in commit message!' || echo 'Commit message looks good'",
|
||||
"description": "Ensure no Claude Code attribution in commits",
|
||||
"match": {
|
||||
"tool": "Bash",
|
||||
"pattern": "git commit"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user