25 lines
683 B
JSON
25 lines
683 B
JSON
{
|
|
"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"
|
|
}
|
|
}
|
|
]
|
|
}
|