spectral icon indicating copy to clipboard operation
spectral copied to clipboard

No error reported when file provided in input does not exists

Open LasneF opened this issue 1 year ago • 0 comments

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

LasneF avatar Aug 29 '24 12:08 LasneF