Skip to content

Commit b6ddb24

Browse files
committed
chore: add detekt suppressions at source
1 parent f6be482 commit b6ddb24

5 files changed

Lines changed: 4 additions & 4 deletions

File tree

app/src/main/java/to/bitkit/repositories/TrezorRepo.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ import kotlin.time.ExperimentalTime
7171
import com.synonym.bitkitcore.Network as BitkitCoreNetwork
7272

7373
@OptIn(ExperimentalTime::class)
74-
@Suppress("TooManyFunctions", "LongParameterList")
74+
@Suppress("TooManyFunctions", "LongParameterList", "LargeClass")
7575
@Singleton
7676
class TrezorRepo @Inject constructor(
7777
@ApplicationContext private val context: Context,

app/src/main/java/to/bitkit/ui/components/BottomSheet.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package to.bitkit.ui.components
22

3-
import android.annotation.SuppressLint
43
import androidx.compose.foundation.background
54
import androidx.compose.foundation.layout.Box
65
import androidx.compose.foundation.layout.Column
@@ -78,7 +77,6 @@ fun BottomSheet(
7877
)
7978
}
8079

81-
@SuppressLint("ModifierParameter")
8280
@OptIn(ExperimentalMaterial3Api::class)
8381
@Composable
8482
fun BottomSheetPreview(

app/src/main/java/to/bitkit/ui/screens/trezor/TrezorViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import java.util.UUID
4343
import javax.inject.Inject
4444
import com.synonym.bitkitcore.Network as BitkitCoreNetwork
4545

46-
@Suppress("TooManyFunctions")
46+
@Suppress("TooManyFunctions", "LargeClass")
4747
@HiltViewModel
4848
class TrezorViewModel @Inject constructor(
4949
@BgDispatcher private val bgDispatcher: CoroutineDispatcher,

app/src/main/java/to/bitkit/viewmodels/AppViewModel.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1623,6 +1623,7 @@ class AppViewModel @Inject constructor(
16231623
}
16241624
}
16251625

1626+
@Suppress("LongMethod")
16261627
private suspend fun handleScan(
16271628
result: String,
16281629
routePubkyKeys: Boolean,

app/src/test/java/to/bitkit/viewmodels/AppViewModelSendFlowTest.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ class AppViewModelSendFlowTest : BaseUnitTest() {
143143
sut = createViewModel()
144144
}
145145

146+
@Suppress("LongMethod")
146147
private fun stubRepositories() {
147148
whenever(context.getString(any())).thenReturn("")
148149
whenever(context.getSystemService(Context.CLIPBOARD_SERVICE)).thenReturn(clipboardManager)

0 commit comments

Comments
 (0)