You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cspell-tools -- used for building dictionary files
cspell-lib -- library that does the actual spell checking.
cspell-trie -- tool for working with trie files.
Which Version
Version: 5.18.5
Issue with supporting library?
[ x] No
cspell-glob -- library for matching glob patterns
cspell-io -- thin file i/o library
cspell-trie-lib - trie lib
cspell-trie2-lib - trie lib alternate format
OS:
Macos
[ x] Linux
Windows
Other
version:
OS version if applicable.
Bug Description
Describe the bug
Asking cspell to check an ignored fill results in exit code 1
NOTE: we have a git pre-commit hook which spell checks committed files so this causes a problem when the only changes are made to the files which are cspell ignored.
To Reproduce
Steps to reproduce the behavior:
Add a file to ignorePaths in cspell config `ignorePaths: ["./foo.txt"]
Ask cspell to check that ignored file cspell ./foo.txt
See error
Result:
CSpell: Files checked: 0, Issues found: 0 in 0 files
error Command failed with exit code 1.
Expected behavior
cspell should exit with status code 0 since there were no spelling issues detected
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
cspell.json
If applicable, attach a copy of the cspell.json file.
Example Repository (Optional)
An example repository makes things easier to debug.
The text was updated successfully, but these errors were encountered:
ogiexela
changed the title
exit code when when cspell is asked to check ignored filed
exit code 1 when when cspell is asked to check ignored filed
Mar 18, 2022
Info
Kind of Issue
Which Tool or library
Which Version
Version: 5.18.5
Issue with supporting library?
OS:
version:
OS version if applicable.
Bug Description
Describe the bug
Asking cspell to check an ignored fill results in exit code 1
NOTE: we have a git pre-commit hook which spell checks committed files so this causes a problem when the only changes are made to the files which are cspell ignored.
To Reproduce
Steps to reproduce the behavior:
cspell ./foo.txt
Result:
Expected behavior
cspell should exit with status code 0 since there were no spelling issues detected
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
cspell.json
If applicable, attach a copy of the
cspell.json
file.Example Repository (Optional)
An example repository makes things easier to debug.
The text was updated successfully, but these errors were encountered: