Find if (x) false else true patterns
Proprietaryif (x) false else true is just !x. Replace the inverted Boolean conditional with the negation it already expresses.
org. openrewrite. kotlin. bestpractices. FindIfReturnFalseElseTrue$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. bestpractices. FindIfReturnFalseElseTrue$KtRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.