Find bufferedReader().lines() calls

Proprietary

BufferedReader.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$KtRecipe
mod 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.