Find @Composable fun … (): X functions returning a non-Unit value
ProprietaryA @Composable function that returns a value either emits UI as a side-effect (anti-pattern: invocation order is now load-bearing) or computes a derived value that should be a @ReadOnlyComposable. Mark explicit value-returning composables @ReadOnlyComposable so callers know they don't emit, or split into emitting-vs-returning pairs.
org. openrewrite. kotlin. compose. FindComposableWithReturnValue$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. compose. FindComposableWithReturnValue$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.