Skip to content

Commit

Permalink
Update rx-coroutines interop lint message
Browse files Browse the repository at this point in the history
  • Loading branch information
serge-slack committed Oct 1, 2024
1 parent 493e0d1 commit 90b7f08
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,7 @@ internal class DenyListedApiDetector : Detector(), SourceCodeScanner, XmlScanner
DenyListedEntry(
className = "kotlinx.coroutines.rx3.RxCompletableKt",
functionName = "rxCompletable",
errorMessage =
"rxCompletable defaults to Dispatchers.Default, which will silently introduce multithreading. Provide an explicit dispatcher. Dispatchers.Unconfined is usually the best choice, as it behaves in an rx-y way.",
errorMessage = "Provide an explicit dispatcher.",
parameters =
listOf(
"kotlin.coroutines.CoroutineContext",
Expand All @@ -382,8 +381,7 @@ internal class DenyListedApiDetector : Detector(), SourceCodeScanner, XmlScanner
DenyListedEntry(
className = "kotlinx.coroutines.rx3.RxMaybeKt",
functionName = "rxMaybe",
errorMessage =
"rxMaybe defaults to Dispatchers.Default, which will silently introduce multithreading. Provide an explicit dispatcher. Dispatchers.Unconfined is usually the best choice, as it behaves in an rx-y way.",
errorMessage = "Provide an explicit dispatcher.",
parameters =
listOf(
"kotlin.coroutines.CoroutineContext",
Expand All @@ -394,8 +392,7 @@ internal class DenyListedApiDetector : Detector(), SourceCodeScanner, XmlScanner
DenyListedEntry(
className = "kotlinx.coroutines.rx3.RxSingleKt",
functionName = "rxSingle",
errorMessage =
"rxSingle defaults to Dispatchers.Default, which will silently introduce multithreading. Provide an explicit dispatcher. Dispatchers.Unconfined is usually the best choice, as it behaves in an rx-y way.",
errorMessage = "Provide an explicit dispatcher.",
parameters =
listOf(
"kotlin.coroutines.CoroutineContext",
Expand All @@ -406,8 +403,7 @@ internal class DenyListedApiDetector : Detector(), SourceCodeScanner, XmlScanner
DenyListedEntry(
className = "kotlinx.coroutines.rx3.RxObservableKt",
functionName = "rxObservable",
errorMessage =
"rxObservable defaults to Dispatchers.Default, which will silently introduce multithreading. Provide an explicit dispatcher. Dispatchers.Unconfined is usually the best choice, as it behaves in an rx-y way.",
errorMessage ="Provide an explicit dispatcher.",
parameters =
listOf(
"kotlin.coroutines.CoroutineContext",
Expand Down

0 comments on commit 90b7f08

Please sign in to comment.