rector: The --dry-run option should return a non-zero exit code
Or if it’s not possible, maybe add a --exit-code
option as you can see on the git diff
command.
It is for CI usage.
Related to https://github.com/rectorphp/rector/issues/799#issuecomment-442900482
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 21 (21 by maintainers)
Commits related to this issue
- Updated Rector to commit 25d3555abd08d7a97cba1621096dc07a33084aa0 https://github.com/rectorphp/rector-src/commit/25d3555abd08d7a97cba1621096dc07a33084aa0 [EarlyReturn] Clean up ChangeOrIfReturnToEarl... — committed to rectorphp/rector by TomasVotruba 3 years ago
- [EarlyReturn] Clean up ChangeOrIfReturnToEarlyReturnRector skip check (#800) * [EarlyReturn] Clean up ChangeOrIfReturnToEarlyReturnRector skip check * more cleaning up — committed to echo511/rector by samsonasik 3 years ago
I know, comment under #799 for #799
Lets go with
--dry-run
option modification for now and see how community takes it. We can always add--exit-code
later.