Find when (x) expressions without an else branch

Proprietary

A when (x) used as an expression requires exhaustiveness — without an else, the compiler can only prove it for sealed/enum selectors. Used as a statement, the missing else is a tripwire: any new variant silently falls through. Flag for review.

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