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
Assume that ruleset.yml and openapi.yml are available in the current dir and that openapi.yml violates some rules defined in ruleset.yml. This is flagged with exit code 1:
spectral lint -r ruleset.yml openapi.yml
echo $? # prints 1
👍
Other errors are flagged with nonzero exit code != 1. Assume that not-available.yml is not there in the current directory
and that invalid.yml is available but does not store a valid ruleset:
Describe the bug
Assume that
ruleset.yml
andopenapi.yml
are available in the current dir and thatopenapi.yml
violates some rules defined inruleset.yml
. This is flagged with exit code 1:👍
Other errors are flagged with nonzero exit code != 1. Assume that
not-available.yml
is not there in the current directoryand that
invalid.yml
is available but does not store a valid ruleset:👍
However, there are some types of errors (
Unknown arguments
,Invalid values
and maybe more) which are flagged with exit code 1:Unfortunately this makes it impossible to evaluate a Spectral lint run by just inspecting the exit code. 😢
To Reproduce
Expected behavior
Any error is flagged with nonzero exit code != 1. Rule violation in API file is flagged with exit code 1.
Environment
Additional context
See also #2149
The text was updated successfully, but these errors were encountered: