From 3cb588ccb9745df7269c03f4aecb78b0c171ce70 Mon Sep 17 00:00:00 2001 From: jinukeu Date: Fri, 12 Jan 2024 21:41:43 +0900 Subject: [PATCH] chore: ktlint, detekt --- core/ui/src/main/java/com/susu/core/ui/util/Date.kt | 1 + .../susu/feature/received/ledgerfilter/LedgerFilterScreen.kt | 4 ++-- .../susu/feature/received/navigation/ReceivedNavigation.kt | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/core/ui/src/main/java/com/susu/core/ui/util/Date.kt b/core/ui/src/main/java/com/susu/core/ui/util/Date.kt index e5c08a34..7a4b2ce2 100644 --- a/core/ui/src/main/java/com/susu/core/ui/util/Date.kt +++ b/core/ui/src/main/java/com/susu/core/ui/util/Date.kt @@ -5,6 +5,7 @@ import java.time.format.DateTimeFormatter val currentDate = LocalDateTime.now() +@Suppress("detekt:FunctionNaming") fun LocalDateTime.to_yyyy_dot_MM_dot_dd(): String { val formatter = DateTimeFormatter.ofPattern("yyyy.MM.dd") return this.format(formatter) diff --git a/feature/received/src/main/java/com/susu/feature/received/ledgerfilter/LedgerFilterScreen.kt b/feature/received/src/main/java/com/susu/feature/received/ledgerfilter/LedgerFilterScreen.kt index f4b4643c..823d8f4b 100644 --- a/feature/received/src/main/java/com/susu/feature/received/ledgerfilter/LedgerFilterScreen.kt +++ b/feature/received/src/main/java/com/susu/feature/received/ledgerfilter/LedgerFilterScreen.kt @@ -137,7 +137,7 @@ fun LedgerFilterScreen( Spacer(modifier = Modifier.weight(1f)) Column( - verticalArrangement = Arrangement.spacedBy(SusuTheme.spacing.spacing_xxs) + verticalArrangement = Arrangement.spacedBy(SusuTheme.spacing.spacing_xxs), ) { SusuFilledButton( color = FilledButtonColor.Orange, @@ -159,7 +159,7 @@ fun LedgerFilterScreen( Row( modifier = Modifier.fillMaxWidth(), - horizontalArrangement = Arrangement.spacedBy(SusuTheme.spacing.spacing_m) + horizontalArrangement = Arrangement.spacedBy(SusuTheme.spacing.spacing_m), ) { RefreshButton() diff --git a/feature/received/src/main/java/com/susu/feature/received/navigation/ReceivedNavigation.kt b/feature/received/src/main/java/com/susu/feature/received/navigation/ReceivedNavigation.kt index 5e7e4900..e5969064 100644 --- a/feature/received/src/main/java/com/susu/feature/received/navigation/ReceivedNavigation.kt +++ b/feature/received/src/main/java/com/susu/feature/received/navigation/ReceivedNavigation.kt @@ -46,7 +46,7 @@ fun NavGraphBuilder.receivedNavGraph( padding = padding, navigateLedgerDetail = navigateLedgerDetail, navigateLedgerSearch = navigateLedgerSearch, - navigateLedgerFilter= navigateLedgerFilter, + navigateLedgerFilter = navigateLedgerFilter, ) }