Repository navigation
fix: Report a missing --config file in check and dictionaries - #9764
Open
Kernel-Hunter wants to merge 1 commit into
Open
Kernel-Hunter wants to merge 1 commit into
Kernel-Hunter wants to merge 1 commit into
Conversation
Both commands carried on without the file, printed no error and exited with 0. They now print the configuration error and exit with 1, like `lint`. Fixes streetsidesoftware#9763
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #9763.
cspell check --config missing.json fileandcspell dictionaries --config missing.jsonignored the missing file, printed nothing and exited 0. Both now print the configuration error and exit 1:The check is a new
assertNoConfigErrorsinconfigFileHelper.ts, which throws aConfigurationError(anApplicationError).checklets that error through instead of wrapping it as a per-file failure. I added tests forcheck,check --jsonanddictionaries; they fail on main and pass now. The fullcspellpackage suite passes except one remote-cache test that needs network.traceandsuggestalso don't report a missing config on current main (exit 0). I left them alone since the issue only names the other two. Happy to do them here if you want.