What is the recommended way of including the same rector in multiple projects? #7067
-
Hello, We are considering in the team to have a shared rector configuration and custom rules for multiple repos. Is there a recommended way to distribute these? Maybe in a way of some kind of rector extension (in the form of a composer package)? We are using monorepo approach, so maybe the right way to go would be to have one single rector for all the other repos which would access it as a relative path And an additional question - in each repo, we currently have rector separately from the root Thank you! 🙂 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
My take is always use
|
Beta Was this translation helpful? Give feedback.
My take is always use
rector.php
per-project, you can userector.php
for shared project, and working on some cases, but will fail eventually due to different dependencies with different projects, that's will be hard to debug. To reducevendor/rector
installation, you can do:rector.php
per-project basis, you can start with :