Update dependency io.nlopez.compose.rules:detekt to v0.4.8 (#3254)

* Update dependency io.nlopez.compose.rules:detekt to v0.4.8

* Fix new lint issues

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
This commit is contained in:
renovate[bot] 2024-07-31 11:08:11 +02:00 committed by GitHub
parent d02e107367
commit 6b8dba6bb2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 15 additions and 6 deletions

View file

@ -64,6 +64,7 @@ import io.element.android.libraries.ui.strings.CommonStrings
import kotlinx.collections.immutable.ImmutableList
import kotlinx.collections.immutable.toPersistentList
@Suppress("MultipleEmitters") // False positive
@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun RoomSelectView(

View file

@ -16,6 +16,7 @@
package io.element.android.libraries.troubleshoot.impl
import androidx.compose.foundation.layout.ColumnScope
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.progressSemantics
@ -68,7 +69,7 @@ fun TroubleshootNotificationsView(
}
@Composable
private fun TroubleshootTestView(
private fun ColumnScope.TroubleshootTestView(
testState: NotificationTroubleshootTestState,
onQuickFixClick: () -> Unit,
) {
@ -127,7 +128,7 @@ private fun TroubleshootTestView(
}
@Composable
private fun TroubleshootNotificationsContent(state: TroubleshootNotificationsState) {
private fun ColumnScope.TroubleshootNotificationsContent(state: TroubleshootNotificationsState) {
when (state.testSuiteState.mainState) {
AsyncAction.Loading,
AsyncAction.Confirming,
@ -197,7 +198,7 @@ private fun RunTestButton(state: TroubleshootNotificationsState) {
}
@Composable
private fun TestSuiteView(
private fun ColumnScope.TestSuiteView(
testSuiteState: TroubleshootTestSuiteState,
onQuickFixClick: (Int) -> Unit,
) {