Find Sequence/List pipeline shape smells

Proprietary

Flags pipelines where the List/Sequence choice fights the data flow — long List pipelines that materialize between every stage, and Sequence pipelines that eagerly fall back to List mid-pipeline.

org.openrewrite.kotlin.performance.FindSequencePipelineSmells$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.performance.FindSequencePipelineSmells$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.

Recipe list

It runs these recipes, in this order.

  1. Find long List pipelines that should use Sequence
  2. Find seq.toList().map { ... } patterns