Find !! inside a ?.let { } body
Proprietaryx?.let { it!! } (or it.foo()!!) is internally inconsistent: the safe-call entry already guards null, so the !! on it can never trigger. Drop the !! — the lambda body has a non-null receiver by construction.
org. openrewrite. kotlin. bestpractices. FindForceUnwrapInLet$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. bestpractices. FindForceUnwrapInLet$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.