Optional vs Required Rules #6757
aka-tpayne
started this conversation in
General
Replies: 1 comment
-
Hi, thanks the idea. While this might be helpful for this one specific set, it will bring DX hit. SetList::PHP_80
SetList::PHP_80_REQUIRED
SetList::PHP_80_DEPRECATED
SetList::PHP_80_WARNINGS
... Most people want to use Rector to upgrade their code base, so they can work on their own domain. The more work and responsibility Rector resolves, the better. Yet, if you need such rulesets and you believe they have value in the community, you can create a custom repository and share it here 👍 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I didn't see anything already in the codebase, but I think optional vs required rules would be a great addition.
As great as some of the rules are, some of them just clutter up the changes, like TernaryToElvisRector.
Obviously, I can go and read through each and every rule and decide for myself, but it would be nice to have different sets for actually required rules that must be run to say upgrade to a new PHP version.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions