Enable OptionalUnit
rule
This commit is contained in:
parent
b970e2f90f
commit
0333e4714e
6 changed files with 7 additions and 11 deletions
|
@ -6,4 +6,6 @@ import org.koin.core.scope.Scope
|
|||
|
||||
fun Scope.developmentBackends() = emptyMap<String, BackendFactory>()
|
||||
|
||||
fun Module.developmentModuleAdditions() = Unit
|
||||
fun Module.developmentModuleAdditions() {
|
||||
// No-op
|
||||
}
|
||||
|
|
|
@ -181,8 +181,7 @@ class StorageEditorTest : K9RobolectricTest() {
|
|||
on { remove(any()) } doAnswer {
|
||||
val key = it.getArgument<String>(0)
|
||||
workingMap.remove(key)
|
||||
|
||||
Unit
|
||||
return@doAnswer
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -45,7 +45,6 @@ class ChunkedDatabaseOperationsTest {
|
|||
argumentTransformation = Int::toString,
|
||||
) { selectionSet, selectionArguments ->
|
||||
chunks.add(selectionSet to selectionArguments)
|
||||
Unit
|
||||
}
|
||||
|
||||
assertThat(chunks).hasSize(1)
|
||||
|
@ -65,7 +64,6 @@ class ChunkedDatabaseOperationsTest {
|
|||
chunkSize = 1,
|
||||
) { selectionSet, selectionArguments ->
|
||||
chunks.add(selectionSet to selectionArguments)
|
||||
Unit
|
||||
}
|
||||
|
||||
assertThat(chunks).hasSize(2)
|
||||
|
@ -89,7 +87,6 @@ class ChunkedDatabaseOperationsTest {
|
|||
chunkSize = 5,
|
||||
) { selectionSet, selectionArguments ->
|
||||
chunks.add(selectionSet to selectionArguments)
|
||||
Unit
|
||||
}
|
||||
|
||||
assertThat(chunks).hasSize(3)
|
||||
|
|
|
@ -27,9 +27,7 @@ class SerialRunner(private val runnables: List<AutoDiscoveryRunnable>) {
|
|||
networkError = discoveryResult
|
||||
}
|
||||
}
|
||||
NoUsableSettingsFound -> {
|
||||
Unit
|
||||
}
|
||||
NoUsableSettingsFound -> { }
|
||||
is UnexpectedException -> {
|
||||
Timber.w(discoveryResult.exception, "Unexpected exception")
|
||||
}
|
||||
|
|
|
@ -663,7 +663,7 @@ style:
|
|||
OptionalAbstractKeyword:
|
||||
active: true
|
||||
OptionalUnit:
|
||||
active: false
|
||||
active: true
|
||||
OptionalWhenBraces:
|
||||
active: false
|
||||
PreferToOverPairSyntax:
|
||||
|
|
|
@ -26,7 +26,7 @@ open class ComposeTest {
|
|||
|
||||
fun getString(@StringRes resourceId: Int): String = RuntimeEnvironment.getApplication().getString(resourceId)
|
||||
|
||||
fun runComposeTest(testContent: ComposeContentTestRule.() -> Unit): Unit = with(composeTestRule) {
|
||||
fun runComposeTest(testContent: ComposeContentTestRule.() -> Unit) = with(composeTestRule) {
|
||||
testContent()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue