Find long ?. safe-call chains
Proprietarya?.b?.c?.d?.e chains beyond 3 hops indicate a domain object hierarchy with too many nullable boundaries — the chain hides which boundary is the real concern. Flatten with let blocks at the boundary that matters, or refactor to non-nullable intermediates.
org. openrewrite. kotlin. idiom. FindSafeCallChain$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. idiom. FindSafeCallChain$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.