I would like to create a Rector rule to remove feature flags (after they are no longer needed) #9624
Unanswered
paulshryock
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
It seems to me that "out of the box" this is not supported, because it looks like a custom feature. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Sometimes I write new features behind a feature flag. Let's say the code looks something like:
But later, often times this code is left much longer than it needs to, and it doesn't always get removed in a timely manner, and the amount of feature flags that we have builds up.
User story
'my-feature'feature flag,End result after running Rector
doMyFeature();Is this possible with Rector out-of-the-box? Would I need to write a custom Rector rule? What's the best approach?
Beta Was this translation helpful? Give feedback.
All reactions