Transform existing ->and() calls to expect() - #6
Conversation
|
I think new rule will be good? 👀 |
|
It's the same behavior as the original configuration only that this also transforms existing Maybe it should have been a separate rule from the beginning then? But I think they have a lot of overlap. Would you still move everything to a new rule? What about naming? |
|
I was wondering new rule for making That way rule cannot touch default behaviour and it will be useful for everyone who do not want to use |
|
I'll look into it. |
|
@MrPunyapal I updated the PR and move the logic to a new |
Follow up to #4
I realized while the new
merge_different_variablesoption does not transformexpect()to->and()it keeps existing->and()calls which causes a non-uniform syntax. Added a method to also transform existing code.Let me know what you think.