AutoRefactor
AutoRefactor copied to clipboard
New refactoring - Rewrite conditions like chained inequalities
Given
The following condition:
b > 0 && anotherValue > b
0 < b && anotherValue > b
When
... automatic refactorings are applied ...
Then
code is refactored to:
0 < b && b < anotherValue
0 < b && b < anotherValue
...to better expose the interval of b's value
@JnRouvignac Can you assign this issue to me?
Alas I cannot so easily. Feel free to work on it. I did not hear that anybody else is working on it