Find Android storage / data-layer smells

Proprietary

Storage-tier patterns that block the main thread or sit on deprecated APIs: SharedPreferences.Editor.commit(), bare prefs.edit() calls, Room @Query methods returning synchronous results, ContentResolver.query, and Realm usage.

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

Recipe list

It runs these recipes, in this order.

  1. Find SharedPreferences.Editor.commit() calls
  2. Find sharedPrefs.edit() calls
  3. Find @Query DAO methods returning a synchronous result
  4. Find ContentResolver.query(...) calls
  5. Find Realm.getDefaultInstance() calls