Skip to content
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

No error reported when file provided in input does not exists #2675

Open
LasneF opened this issue Aug 29, 2024 · 0 comments
Open

No error reported when file provided in input does not exists #2675

LasneF opened this issue Aug 29, 2024 · 0 comments

Comments

@LasneF
Copy link

LasneF commented Aug 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant