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

Most upvoted comments

I’m talking about issue #799, not the PR i just opened.

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.