-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add generic rule for adding comments to fusion prototype usage #52
Conversation
dlubitz
commented
Apr 21, 2024
- Add rule for adding comments to used Prototypes.
- Replace dedicated Neos.Neos:PrimaryContent rule with generic rule
- Add comments for Neos.Fusion:Attributes
Replace dedicated Neos.Neos:PrimaryContent rule with generic rule Add comments for Neos.Fusion:Attributes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice, +1 by reading.
Thanks, those kind of tools are really helpful
Ok, so this PR broke
If I go back one commit, it works. |
*/ | ||
$rectorConfig->rule(FusionPrimaryContentRector::class); | ||
$rectorConfig->ruleWithConfiguration(FusionPrototypeNameAddComment::class, [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kdambekalns Yeah, sorry. AFAIS there is wrong class used:
This needs to be: FusionPrototypeNameAddCommentRector::class
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's pretty sh**ty, that the tests are not covering the "real" configuration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, creating a PR right now…
@kdambekalns with the hard pinned rector version of the package? |
Fixes an error that slipped in with #52: ``` [ERROR] Expected an instance of this class or to this class among its parents "Rector\Core\Contract\Rector\RectorInterface". Got: "Neos\Rector\Generic\ValueObject\FusionPrototypeNameAddComment" in /…/Packages/Libraries/neos/rector/src/../config/set/contentrepository-90.php (which is being imported from "/…/rector.php"). ```