chore(lefthook): cspell --no-gitignore — staged-файлы под gitignored .claude/worktrees/ не проверялись
cspell.json useGitignore:true заставлял cspell игнорировать все файлы worktree, расположенного под gitignored .claude/worktrees/ (Files checked: 0 — фейковый green). Staged-файлы по определению tracked, потому --no-gitignore для pre-commit cspell безопасен и чинит worktree-коммиты. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
+3
-1
@@ -38,9 +38,11 @@ pre-commit:
|
||||
Запусти `npm run lint:md:fix` или поправь руками.
|
||||
|
||||
# 3. cspell — орфография на staged .md
|
||||
# --no-gitignore: staged-файлы по определению tracked; без флага cspell
|
||||
# (useGitignore:true) игнорирует worktree-коммиты под gitignored .claude/worktrees/.
|
||||
- name: cspell
|
||||
glob: "*.md"
|
||||
run: npx cspell --no-progress --no-summary {staged_files}
|
||||
run: npx cspell --no-progress --no-summary --no-gitignore {staged_files}
|
||||
fail_text: |
|
||||
cspell нашёл слова, отсутствующие в словаре.
|
||||
Если это валидное слово проекта — добавь в cspell-words.txt.
|
||||
|
||||
Reference in New Issue
Block a user