mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-03-30 13:43:26 +08:00
fix(hooks): exclude .history/ directory from doc file warning
Incorporates the fix from #316 into the standalone script.
This commit is contained in:
@@ -14,7 +14,7 @@ process.stdin.on('end', () => {
|
|||||||
if (/\.(md|txt)$/.test(filePath) &&
|
if (/\.(md|txt)$/.test(filePath) &&
|
||||||
!/(README|CLAUDE|AGENTS|CONTRIBUTING|CHANGELOG|LICENSE|SKILL)\.md$/i.test(filePath) &&
|
!/(README|CLAUDE|AGENTS|CONTRIBUTING|CHANGELOG|LICENSE|SKILL)\.md$/i.test(filePath) &&
|
||||||
!/\.claude[\/\\]plans[\/\\]/.test(filePath) &&
|
!/\.claude[\/\\]plans[\/\\]/.test(filePath) &&
|
||||||
!/(^|[\/\\])(docs|skills)[\/\\]/.test(filePath)) {
|
!/(^|[\/\\])(docs|skills|\.history)[\/\\]/.test(filePath)) {
|
||||||
console.error('[Hook] WARNING: Non-standard documentation file detected');
|
console.error('[Hook] WARNING: Non-standard documentation file detected');
|
||||||
console.error('[Hook] File: ' + filePath);
|
console.error('[Hook] File: ' + filePath);
|
||||||
console.error('[Hook] Consider consolidating into README.md or docs/ directory');
|
console.error('[Hook] Consider consolidating into README.md or docs/ directory');
|
||||||
|
|||||||
Reference in New Issue
Block a user