-
Couldn't load subscription status.
- Fork 544
Add --stop-on-failure option to halt analysis on first error #4287
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feels and probably is vibe-coded. And it's missing the main point - --stop-on-failure has to stop only a non-ignored error.
Feels and probably is vibe-coded.
Is it bad or good?
it's missing the main point - --stop-on-failure has to stop only a non-ignored error.
thank you, I'll check and fix it
Summary
Adds a new
--stop-on-failureCLI option that stops PHPStan analysis immediately when the first error is encountered in any file.Changes
--stop-on-failureflag added toAnalyseCommandUse Cases
Testing
Example Usage