diff options
| author | Craig Jennings <c@cjennings.net> | 2026-04-14 01:17:58 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-04-14 01:17:58 -0400 |
| commit | f8c593791ae051b07dba2606c18f1deb7589825e (patch) | |
| tree | 22dc96a5eeba6250f4697b2daf573289e9fea8f2 /hooks/settings.json | |
| parent | f894e07ea3c39620e37245f1e1bf829e853bbe5b (diff) | |
| download | rulesets-f8c593791ae051b07dba2606c18f1deb7589825e.tar.gz rulesets-f8c593791ae051b07dba2606c18f1deb7589825e.zip | |
chore: remove non-functional hooks template
The hooks/settings.json template was broken since day one:
- PostEditTool is not a valid Claude hook event
- PreCommit is not a Claude concept at all
- matcher was used as a glob, not a tool-name regex
- $FILE was never substituted from stdin JSON
Hooks never fired. Formatting and secret-scanning belong in CI and
pre-commit frameworks, not per-developer Claude config. Remove the
template and its install-hooks Makefile target.
Diffstat (limited to 'hooks/settings.json')
| -rw-r--r-- | hooks/settings.json | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/hooks/settings.json b/hooks/settings.json deleted file mode 100644 index 50fdf09..0000000 --- a/hooks/settings.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "hooks": { - "PostEditTool": [ - { - "matcher": "**/*.py", - "command": "ruff format $FILE && ruff check --fix $FILE" - }, - { - "matcher": "**/*.tf", - "command": "terraform fmt $FILE" - } - ], - "PreCommit": [ - { - "command": "! grep -rn --include='*.py' --include='*.ts' --include='*.tsx' --include='*.tf' --include='*.yml' --include='*.yaml' -E '(AKIA[0-9A-Z]{16}|sk-[a-zA-Z0-9]{20,}|password\\s*=\\s*[\"'\\'']{1}[^\"'\\'']+[\"'\\'']{1})' . --exclude-dir=node_modules --exclude-dir=.git --exclude-dir=gathered" - } - ] - } -} |
