-
Notifications
You must be signed in to change notification settings - Fork 546
feat(analyze): add an option to allow generating empty baseline #776
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
feat(analyze): add an option to allow generating empty baseline #776
Conversation
|
Whats the motivation of this PR? In case you are interessted in a 0 exit code, you can use |
|
This will not generate an empty baseline file. And by empty, I mean with this content : |
|
See #751 (comment) |
src/Command/AnalyseCommand.php
Outdated
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.
This is missing a default
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.
You can't set a default on an input option which has no value.
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.
Oh right, haven't realized that 👍
src/Command/AnalyseCommand.php
Outdated
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.
This set to true should result in an error if $generateBaselineFile is null.
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.
Done. I'm not very satisfied with the error message, if you have a better idea...
|
Thank you! |
No description provided.