Find best-practice candidates

Proprietary

Search-only bundle: flags places where a more idiomatic Kotlin spelling is available. Each match shows up as a SearchResult for review; nothing is rewritten automatically because the migration is a judgment call.

org.openrewrite.kotlin.bestpractices.FindBestPracticeCandidates$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.bestpractices.FindBestPracticeCandidates$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 class-declaration smells
  2. Find function-declaration smells
  3. Find string-construction smells
  4. Find Boolean-conditional smells
  5. Find lambda / functional smells
  6. Find exception-handling smells
  7. Find scope-function smells
  8. Find when-statement smells
  9. Find equality / comparison smells
  10. Find lazy { } calls without an explicit LazyThreadSafetyMode
  11. Find wildcard import a.b.* statements
  12. Find anonymous object : Interface { override fun … } with a single override
  13. Find chained !! assertions in a single expression