Enable detekt rules UnderscoresInNumericLiterals and fix existing issues.
This commit is contained in:
parent
0e219200b0
commit
b3cf0d2cf1
5 changed files with 10 additions and 6 deletions
|
|
@ -44,7 +44,7 @@ internal fun DatePickerPreviewDark() {
|
|||
@Composable
|
||||
private fun ContentToPreview() {
|
||||
val state = rememberDatePickerState(
|
||||
initialSelectedDateMillis = 1672578000000L,
|
||||
initialSelectedDateMillis = 1_672_578_000_000L,
|
||||
)
|
||||
AlertDialogContent(
|
||||
buttons = { /*TODO*/ },
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import java.util.Date
|
|||
|
||||
class TimelineEncryptedHistoryPostProcessorTest {
|
||||
|
||||
private val defaultLastLoginTimestamp = Date(1689061264L)
|
||||
private val defaultLastLoginTimestamp = Date(1_689_061_264L)
|
||||
|
||||
@Test
|
||||
fun `given an unencrypted room, nothing is done`() {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ class NotificationIdProviderTest {
|
|||
@Test
|
||||
fun `test notification id provider`() {
|
||||
val sut = NotificationIdProvider()
|
||||
val offsetForASessionId = 305410
|
||||
val offsetForASessionId = 305_410
|
||||
assertThat(sut.getSummaryNotificationId(A_SESSION_ID)).isEqualTo(offsetForASessionId + 0)
|
||||
assertThat(sut.getRoomMessagesNotificationId(A_SESSION_ID)).isEqualTo(offsetForASessionId + 1)
|
||||
assertThat(sut.getRoomEventNotificationId(A_SESSION_ID)).isEqualTo(offsetForASessionId + 2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue