Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Breaking: use an exit code of 2 for fatal config problems (fixes #9384) #10009
What is the purpose of this pull request? (put an "X" next to item)
[x] Other, please explain:
What changes did you make? (Give an overview)
This updates the CLI to use an exit code of 2 for configuration errors or crashes. As described in #9384, this is useful for integrations to distinguish between successful lint runs with errors and unsuccessful lint runs.
Is there anything you'd like reviewers to focus on?
Nothing in particular
Question: What exit code are we using for invalid CLI options? (My hope is 2, my fear is 0.)