Find WebSettings.setJavaScriptEnabled(true) calls

Proprietary

Enabling JavaScript in a WebView lets the loaded page run arbitrary script in your app's context. For first-party content this is often fine; for any third-party content it's a critical security boundary. Each match is worth reviewing alongside the trust model of the loaded URLs.

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