Find DisposableEffect { … } blocks missing an onDispose { }
ProprietaryDisposableEffect's contract is to return a DisposableEffectResult from onDispose { … } — without it, the compiler should reject the block, but easy mistakes (early return, wrong receiver) silently bypass cleanup. Confirm the final statement of every DisposableEffect lambda is an onDispose { } call so resources are released on leave-the-composition.
org. openrewrite. kotlin. compose. FindDisposableEffectMissingOnDispose$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. compose. FindDisposableEffectMissingOnDispose$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.