Reports runBlocking calls inside suspend functions.

Using runBlocking within a suspend function blocks the calling thread and defeats the purpose of asynchronous programming.

The quick-fix replaces the runBlocking call with one of the following alternatives, depending on the context:

Example:


suspend fun something() {
  runBlocking {
    code() // The thread is blocked here
  }
}

After the quick-fix is applied:


suspend fun something() {
  code() // Runs asynchronously
}

New in 2025.1