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
Describe the bug
When running the linter, if you pass it unknown arguments it does not run the linter and instead writes out help docs.
This behavior is fine but it's problematic because it returns an exit code of 0 - For the past 2 weeks, we erroneously thought the linter was running because it was giving a successful status code.
To Reproduce npx @stoplight/spectral lint descriptions/v1/api.yaml -rip && echo "FAIL"
You will see the word FAIL printed to your console, indicating the status code was successful
Expected behavior
I expected spectral to return a non zero status code and my echo statement to not run
Environment (remove any that are not applicable):
Library version: 5.9.1
The text was updated successfully, but these errors were encountered:
Describe the bug
When running the linter, if you pass it unknown arguments it does not run the linter and instead writes out help docs.
This behavior is fine but it's problematic because it returns an exit code of 0 - For the past 2 weeks, we erroneously thought the linter was running because it was giving a successful status code.
To Reproduce
npx @stoplight/spectral lint descriptions/v1/api.yaml -rip && echo "FAIL"
You will see the word
FAIL
printed to your console, indicating the status code was successfulExpected behavior
I expected spectral to return a non zero status code and my echo statement to not run
Environment (remove any that are not applicable):
The text was updated successfully, but these errors were encountered: