diff --git a/slack-lint-checks/src/main/java/slack/lint/denylistedapis/DenyListedApiDetector.kt b/slack-lint-checks/src/main/java/slack/lint/denylistedapis/DenyListedApiDetector.kt index fb0c0ac1..24ff07cf 100644 --- a/slack-lint-checks/src/main/java/slack/lint/denylistedapis/DenyListedApiDetector.kt +++ b/slack-lint-checks/src/main/java/slack/lint/denylistedapis/DenyListedApiDetector.kt @@ -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", @@ -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", @@ -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", @@ -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",