Find fun f(): Boolean = true|false literal-returning functions
ProprietaryA function whose body is literally true or false is rarely the right shape — either the predicate was a stub left in by mistake, or the value is genuinely constant and should be a const val. Either way, surface the call site for human review.
org. openrewrite. kotlin. bestpractices. FindBooleanLiteralReturnType$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. bestpractices. FindBooleanLiteralReturnType$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.