Find debounce(...).distinctUntilChanged() patterns

Proprietary

debounce already drops intermediate values within the window; adding distinctUntilChanged after it is redundant if the upstream is already deduped. Verify whether distinctUntilChanged belongs before debounce, where it can prevent re-firing the debounce window for repeated values.

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