aboutsummaryrefslogtreecommitdiff
path: root/.claude/hooks
Commit message (Collapse)AuthorAgeFilesLines
* chore: stop tracking local dev toolingCraig Jennings4 days1-114/+0
|
* chore: refresh .claude rules and hooks to rulesets canonicalCraig Jennings2026-06-121-14/+16
| | | | The startup language-bundle sync repaired drift in these rulesets-owned files. Committing them at canonical so future syncs stay no-ops.
* fix: scope validate-el.sh hook to in-project filesCraig Jennings2026-05-131-0/+7
| | | | The PostToolUse hook tried to byte-compile every .el file edited, including ones outside the chime project. Out-of-project files typically require packages that aren't on the hook's -L paths, so validation failed for unrelated reasons. Exit 0 when the edited file isn't under $PROJECT_ROOT.
* fix(hooks): run validate-el test phase from tests/ directoryCraig Jennings2026-04-211-1/+4
| | | | | | Test files start with (require 'test-bootstrap (expand-file-name "test-bootstrap.el")). The expand-file-name call resolves against default-directory, which in batch mode is the directory the shell was in when emacs started. The hook ran emacs from the project root, so the require looked for the bootstrap at the project root and could not find it. Every Edit or Write to a test file failed the hook. The fix is to cd into PROJECT_ROOT/tests inside the subshell before launching emacs, so the bootstrap require resolves to tests/test-bootstrap.el where the file actually lives.
* chore(claude): sync validate-el.sh JSON channel + pairwise rule from rulesetsCraig Jennings2026-04-191-9/+24
|
* chore: add Claude Code ruleset via ~/code/rulesets install-elispCraig Jennings2026-04-191-0/+87
Installs the Elisp ruleset from the rulesets repo: - CLAUDE.md (project instructions template) - .claude/rules/ (testing, verification, elisp, elisp-testing) - .claude/hooks/validate-el.sh (check-parens + byte-compile + run matching tests on every .el edit via PostToolUse) - .claude/settings.json (permission allowlist + hook wiring) - githooks/pre-commit (secret scan + staged-file paren check) core.hooksPath set to githooks/ so the pre-commit activates automatically. Hooks use \$CLAUDE_PROJECT_DIR with a script-relative fallback, so a fresh clone works without path edits. .gitignore extended with personal-override entries (settings.local.json, .cache/) and byte-compile artifacts (*.elc, *.eln).