mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-08 10:23:30 +08:00
fix: resolve CI failures on main — lint, hooks validator, and test alignment
- Fix MD012 trailing blank lines in commands/projects.md and commands/promote.md - Fix MD050 strong-style in continuous-learning-v2 (escape __tests__ as inline code) - Extract doc-file-warning hook to standalone script to fix hooks validator regex parsing - Update session-end test to match #317 behavior (always update summary content) - Allow shell script hooks in integration test format validation All 992 tests passing.
This commit is contained in:
@@ -692,10 +692,11 @@ async function runTests() {
|
||||
|
||||
const isInline = hook.command.startsWith('node -e');
|
||||
const isFilePath = hook.command.startsWith('node "');
|
||||
const isShellScript = hook.command.endsWith('.sh');
|
||||
|
||||
assert.ok(
|
||||
isInline || isFilePath,
|
||||
`Hook command in ${hookType} should be inline (node -e) or file path (node "), got: ${hook.command.substring(0, 50)}`
|
||||
isInline || isFilePath || isShellScript,
|
||||
`Hook command in ${hookType} should be inline (node -e), file path (node "), or shell script (.sh), got: ${hook.command.substring(0, 80)}`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user