Find nested let { } chains
Proprietarya?.let { b?.let { … } } ladders for combining nullable values are clearer as a single if (a != null && b != null) … or a sealed pair. Two-level nesting is a code smell; three or more is almost always a refactor opportunity.
org. openrewrite. kotlin. idiom. FindNestedLet$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. idiom. FindNestedLet$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.