Find MutableLiveData.postValue(...) calls inside coroutine main-thread contexts

Proprietary

postValue exists for background-thread updaters — it marshals through the main looper and coalesces consecutive updates. When called from a place that already runs on the main thread (UI callbacks, view-model initialization, Dispatchers.Main blocks), the coalescing is a footgun: intermediate values silently drop. Use setValue/.value = on the main thread, postValue only from background threads.

org.openrewrite.kotlin.android.FindLiveDataPostValueFromMain$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.android.FindLiveDataPostValueFromMain$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.