mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 15:02:30 +02:00
fix(hooks): exclude .history/ directory from doc file warning
Incorporates the fix from #316 into the standalone script.
This commit is contained in:
parent
1df0a53f22
commit
3bfd29bb46
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ process.stdin.on('end', () => {
|
|||
if (/\.(md|txt)$/.test(filePath) &&
|
||||
!/(README|CLAUDE|AGENTS|CONTRIBUTING|CHANGELOG|LICENSE|SKILL)\.md$/i.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] File: ' + filePath);
|
||||
console.error('[Hook] Consider consolidating into README.md or docs/ directory');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue