We're working hard to make the developer experience as smooth as possible. The fewer steps to your first run and full automation with Rector, the better.
In February, we added improvement for the first run. Now we add a new command to set up Rector in your CI to work for you.
When you run Rector for the very first time, it generates the
rector.php config for you. It suggests directories and the first rule to kick off. Let's take this further.
You often ask, "how can I add Rector to CI to work for me?" In the end, the answer is a short Github Workflow file, but there are few traps on the way:
This road is pretty cumbersome, right?
Now we turned it to single command that:
First, make sure you have the latest Rector
0.15.21, and then run locally:
Push a pull-request, make a mistake and see how Rector handles boring work for you.