Find Flow.filter { } .filter { } chains
ProprietaryAdjacent Flow.filter { } calls do twice the work a combined predicate would do. Fold them into one filter { p1(it) && p2(it) }.
org. openrewrite. kotlin. coroutines. FindFlowFilterFilterChain$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. coroutines. FindFlowFilterFilterChain$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.