From 5c51f647d0cb86faa94c60aa2f58d596b6217eb8 Mon Sep 17 00:00:00 2001 From: Joywayer Date: Tue, 11 Aug 2026 22:18:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=88=E5=85=B3=E9=97=ADgithooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .githooks/pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.githooks/pre-commit b/.githooks/pre-commit index af113f6..e3769af 100644 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -2,4 +2,4 @@ # 机械红线校验:对本次暂存的文件做「可编辑范围 + 严格 ES5」硬检查,命中即阻断提交。 # 工具无关——无论 Claude Code、别的编辑器还是人手改,提交都会过这道闸。 # 启用(每个克隆一次性):git config core.hooksPath .githooks -exec node "$(git rev-parse --show-toplevel)/.claude/hooks/check-redlines.js" --staged +# exec node "$(git rev-parse --show-toplevel)/.claude/hooks/check-redlines.js" --staged