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
Version 4 is a good time to review the exit codes that both scripts produce to ensure that success cases all use 0 and that all failure cases have codes that make sense. Documentation in the wiki to describe the new exist codes should be an output of this work.
Is there any documentation somewhere that lists all non 0 or 1 exit codes that exist, and the meaning of them?
Today was the first time I discovered an exit code of 3 is used for when and invalid standard is given. It'd be nice to be able to read a compiled list of what exit codes there are, and I cannot seem to find any information on the wiki on this topic.
0: no errors found
1: errors found
2: fixable errors found
3: processing error
It does not look like all situations are mutually exclusive. For instance, it's possible to have fixable and unfixable errors found during the same run. This should IMO be encoded as 1+2=3. If a processing error happens, 4 should be added, and each new situation should be associated with a power of 2, so that it's possible to tell more about what happened from the exit code alone.
@greg0ire I'm sure Greg had some idea in mind on where he wanted to go with this when he created the issue, but the above is all the info which is available.
Repost from squizlabs/PHP_CodeSniffer#2898 by @gsherwood:
Additional info posted by @jrfnl:
And some related closed issues:
And the following open PR is also related:
Related remark posted by @nelson6e65:
Question by @dfelton:
Reply by @jrfnl:
The text was updated successfully, but these errors were encountered: