Apply Kotlin best-practice idioms

Proprietary

Opinionated bundle of every best-practice recipe in this module: collection / string round-trip collapses, stdlib accessor swaps, and a broad set of search-only flags covering class structure, function declarations, string construction, Boolean conditionals, lambdas, and exception handling. For diff-only output, use ImproveKotlinBestPractices instead.

org.openrewrite.kotlin.bestpractices.BestPractices$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.bestpractices.BestPractices$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. Collapse redundant collection / string conversions
  2. Use stdlib accessors for size / first
  3. Find best-practice candidates