Find Compose API design issues
ProprietaryComposable functions that don't follow the Compose API guidelines: lowercase name (UI emitters should be PascalCase), non-Unit return without @ReadOnlyComposable, content slot without a default {}, missing Modifier parameter, and @Composable invocations from non-Composable lambdas.
org. openrewrite. kotlin. compose. FindComposeApiDesignIssues$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. compose. FindComposeApiDesignIssues$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.
Recipe list
It runs these recipes, in this order.
- Find
@Composablefunctions whose name starts with a lowercase letter - Find
@Composable fun … (): Xfunctions returning a non-Unitvalue - Find
@Composablefunctions with a content lambda parameter not defaulted to{} - Find
@Composablefunctions without aModifierparameter - Find
@Composablecalls inside non-@Composablelambda parameters