refactor custom rector rule namespaces to be major cake version specific #358
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is my desired new code structure for how the upgrade tool should be continued
Base Rule: New custom rector rules are placed inside
src/Rector/CakeX/SomethingNewRector.phpIf a new rector rules needs custom value objects then it should be
src/Rector/CakeX/SomethingNew/SomethingNewRector.phpsrc/Rector/CakeX/SomethingNew/SomethingNew.phpThe
CakeXis always the first major version of the CakePHP version this applies to. If a rule is so generic that it can be apllied to multiple majors, just keep it in the first one where it has been added to the config.We do NOT split rector rules up by minor versions as we - currently - don't have that many custom rector rules per major to justify this.