Include related classes when processing specific files #8766
|
Hi all! Thanks for the tool, it works great! 🙏 ContextI have a massive project with thousands of files moving from PHP 7.0 to 7.1 and I want to execute an step in my CI to detect incompatible changes before we merge them. I configured my CI step to check only for modified files using: IssueLet's say I have these files:
And my scenario:
Working scenarioIf I pass both files to process, Non working scenarioBut since I've only modified the class That command doesn’t detect any issue. Is there a way to indicate Thanks in advance!! |
Replies: 1 comment
|
Hi, That's not possible, rector only work on target analyzed file, if you want multi files, then both files need to be included, on project basis, you can include by dirs collection: withPaths([
__DIR__ . '/src',
__DIR__ . '/test'
])For some circumstance, you may need to use |
Hi,
That's not possible, rector only work on target analyzed file, if you want multi files, then both files need to be included, on project basis, you can include by dirs collection:
For some circumstance, you may need to use
--clear-cache:)