新规hook

This commit is contained in:
2026-07-06 17:16:05 +08:00
parent 363f97cdbe
commit 047561675b
28 changed files with 510 additions and 1345 deletions
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
# 机械红线校验:对本次暂存的文件做「可编辑范围 + 严格 ES5」硬检查,命中即阻断提交。
# 工具无关——无论 Claude Code、别的编辑器还是人手改,提交都会过这道闸。
# 启用(每个克隆一次性):git config core.hooksPath .githooks
exec node "$(git rev-parse --show-toplevel)/.claude/hooks/check-redlines.js" --staged