Skip to content

Commit edd75d0

Browse files
zahclaude
andcommitted
fix: Add --no-must-find-files to cspell to fix false failures
When cspell checks files in batches and all files in a batch are excluded by ignorePaths, it returns exit code 1 (no files found). The --no-must-find-files flag suppresses this error for empty batches. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 1539495 commit edd75d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nix/pre-commit.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
cspell = {
5656
enable = true;
5757
name = "cspell (cached)";
58-
entry = "cspell --no-progress --cache --config .cspell.json";
58+
entry = "cspell --no-progress --cache --no-must-find-files --config .cspell.json";
5959
language = "system";
6060
pass_filenames = true;
6161
files = "\\.(md)$";

0 commit comments

Comments
 (0)