Find bufferedReader().lines() calls
ProprietaryBufferedReader.lines() returns a Stream<String> that must be closed explicitly and consumed exactly once. Kotlin offers lineSequence() (lazy Sequence<String>) and useLines { sequence -> … } (auto-closing) for the same use cases.
org. openrewrite. kotlin. interop. FindBufferedReaderLines$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. interop. FindBufferedReaderLines$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.