Find when (b: Boolean) selectors
Proprietarywhen (b) { true -> … false -> … } is the long form of if (b) … — and the when reads as if it might gain a third branch, which Boolean cannot. Replace with if.
org. openrewrite. kotlin. bestpractices. FindWhenWithBooleanSubject$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. bestpractices. FindWhenWithBooleanSubject$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.