Skip to content

Dry run combined with no diffs always exits with success code #9487

Description

@indykoning

Bug Report

Subject Details
Rector version 2.2.7

When running Rector for CI/CD purposes we run rector process --dry-run --ansi --no-progress-bar --no-diffs
However when --dry-run is added together with --no-diffs it will always result in [OK] Rector is done! with a success exit code.
even though changes should be made.

Removing --no-diffs will result in [OK] xx files would have been changed (dry-run) by Rector with a failure exit code, as expected.
However it also gives a massive diff which is not preferable for CI/CD.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions