Describe the bug
running spectral on an non existing file does return that all is fine
To Reproduce
spectral lint bob --ruleset .spectral.spectral.yaml
with no file called bob
return
"No results with a severity of 'error' found!"
Expected behavior
a message indicating that bob file does not exists and return error exit code
Environment (remove any that are not applicable):
- OS: Windows
- Spectral ; 6.11.1
Additional context
if i set a wrong ruleset i have a nice error message ,
"Could not read ruleset" , i would expect the same cannot read the api decription file
Describe the bug
running spectral on an non existing file does return that all is fine
To Reproduce
spectral lint bob --ruleset .spectral.spectral.yaml
with no file called bob
return
"No results with a severity of 'error' found!"
Expected behavior
a message indicating that bob file does not exists and return error exit code
Environment (remove any that are not applicable):
Additional context
if i set a wrong ruleset i have a nice error message ,
"Could not read ruleset" , i would expect the same cannot read the api decription file