diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-09 16:52:49 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-09 16:52:49 -0500 |
| commit | caa94e4482572bb1f30a4c4e6d8166dba9f99448 (patch) | |
| tree | c8b14c358679cc2d61edeaa569c36abb32231316 /.claude | |
| parent | cdda0a01decb7dc61c71d830823a2ba36207306d (diff) | |
| download | dotemacs-caa94e4482572bb1f30a4c4e6d8166dba9f99448.tar.gz dotemacs-caa94e4482572bb1f30a4c4e6d8166dba9f99448.zip | |
chore(hooks): drop PROJECT_ROOT guard from validate-el.sh
The PROJECT_ROOT guard skipped any .el file outside the project on the theory that out-of-tree files are owned by their own project's hooks. In practice, when I edit an .el file in another repo from a Claude session in this one, the other project often doesn't have its own hook running, so the file was getting no validation at all. I dropped the guard so any .el file edited from a Claude session here gets validated, regardless of which repo it lives in.
Diffstat (limited to '.claude')
| -rwxr-xr-x | .claude/hooks/validate-el.sh | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/.claude/hooks/validate-el.sh b/.claude/hooks/validate-el.sh index b811bcc2..803badf8 100755 --- a/.claude/hooks/validate-el.sh +++ b/.claude/hooks/validate-el.sh @@ -35,13 +35,6 @@ f="$(jq -r '.tool_input.file_path // .tool_response.filePath // empty')" [ -z "$f" ] && exit 0 [ "${f##*.}" = "el" ] || exit 0 -# Only validate in-tree files. Files outside PROJECT_ROOT are owned by -# their own project's hooks (when a Claude session runs there). -case "$f" in - "$PROJECT_ROOT"/*) ;; # in-tree, continue - *) exit 0 ;; # out-of-tree, skip -esac - MAX_AUTO_TEST_FILES=20 # skip if more matches than this (large test suites) # --- Phase 1: syntax + byte-compile --- |
