-
-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSpell: How to exit without error when no files are checked? #1514
Comments
This behavior is by design. Please check out |
Can the documentation for I'd like to see a section like this which lists all of the CLI arguments and details (can even be generated directly from |
Thank you for the feed back. I adjusted the cspell README with #1530. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Info
Kind of Issue
Which Tool or library
Which Version
Version: 5.6.6
OS:
Bug Description
Running
cspell
on a single file which is excluded viaignorePaths
results in a non-zero exit code.To Reproduce
cspell.json
file withignorePaths: ["someFile.json"]
someFile.json
npx cspell someFile.json
CSpell: Files checked: 0, Issues found: 0 in 0 files
but the exit code is1
Expected behavior
Command should be a no-op and have a successful exit code
Additional context
This is a huge issue when running
cspell
in lint-staged on changed files. If only one file was changed, and that file is ignored viaignorePaths
the commit fails even though it should succeed since the file is ignored.cspell.json
The text was updated successfully, but these errors were encountered: