Find MutableStateFlow<T?>(null) declarations
ProprietaryNullable MutableStateFlow<T?> is a common pattern for 'no value yet', but collapses the empty state and the value-is-null state into one. A SharedFlow<T> with replay = 0 and explicit tryEmit (or a sealed wrapper UiState.Empty | Loaded(T)) usually expresses intent more precisely.
org. openrewrite. kotlin. coroutines. FindMutableStateFlowNullable$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. coroutines. FindMutableStateFlowNullable$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.