Skip to content

Commit 171d094

Browse files
committed
chore:TOP-106 lint check
1 parent 929b39c commit 171d094

File tree

8 files changed

+20
-20
lines changed

8 files changed

+20
-20
lines changed

data/src/main/java/com/tht/tht/data/remote/response/topic/DailyTopicResponse.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ data class DailyTopicResponse(
2828
enum class TopicSelectType {
2929
@SerializedName("oneChoice")
3030
ONE_CHOICE,
31+
3132
@SerializedName("twoChoice")
3233
TWO_CHOICE,
34+
3335
@SerializedName("fourChoice")
3436
FOUR_CHOICE
3537
}

feature/tohot/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ dependencies {
7272
implementation(libs.jetpack.compose.coil)
7373
implementation(libs.jetpack.coil.svg)
7474
implementation(libs.jetpack.compose.foundation)
75-
7675
implementation(libs.app.compat.theme.adpater)
7776

7877
implementation(libs.lottie.compose)

feature/tohot/src/main/java/tht/feature/tohot/component/card/OneTypeTopicSelectCard.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ private fun OneTypeTopic(
6262
topicUiModel: TopicUiModel,
6363
isSelect: Boolean,
6464
modifier: Modifier = Modifier,
65-
onSelectTopic: (Int) -> Unit = { },
65+
onSelectTopic: (Int) -> Unit = { }
6666
) {
6767
Column(
6868
modifier = modifier

feature/tohot/src/main/java/tht/feature/tohot/component/card/TopicSelectTypeCardScreen.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ fun TopicSelectTypeCardScreen(
6969
colors = listOf(
7070
colorResource(R.color.gray_8d8d8d).copy(alpha = 0.3f),
7171
colorResource(R.color.black_414141).copy(alpha = 0.9f)
72-
),
72+
)
7373
),
7474
shape = RoundedCornerShape(12.dp)
7575
)
7676
.clipToBounds()
77-
.padding(horizontal = 16.dp, vertical = 17.dp),
77+
.padding(horizontal = 16.dp, vertical = 17.dp)
7878
) {
7979
Spacer(modifier = Modifier.height(15.dp))
8080
ThtP1(

feature/tohot/src/main/java/tht/feature/tohot/component/card/TwoTypeTopicSelectCard.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ fun TwoTypeTopicSelectCard(
4646
onClickConfirm: () -> Unit = { }
4747
) {
4848
val hasSelectTopic by remember(selectTopicIdx, topicSelectUiModel) {
49-
mutableStateOf(
50-
topicSelectUiModel.topic1.idx == selectTopicIdx ||
51-
topicSelectUiModel.topic2.idx == selectTopicIdx
52-
)
49+
mutableStateOf(
50+
topicSelectUiModel.topic1.idx == selectTopicIdx ||
51+
topicSelectUiModel.topic2.idx == selectTopicIdx
52+
)
5353
}
5454
TopicSelectTypeCardScreen(
5555
modifier = modifier,
@@ -162,7 +162,7 @@ private fun TwoTypeTopicSelectCardPreview() {
162162
introduce = "안녕하세요",
163163
topicExpiredDuration = System.currentTimeMillis().toDuration(DurationUnit.MILLISECONDS),
164164
topic1 = dummyTopics[0],
165-
topic2 = dummyTopics[1],
165+
topic2 = dummyTopics[1]
166166
),
167167
selectTopicIdx = 0,
168168
buttonEnabled = true
@@ -177,7 +177,7 @@ private fun TwoTypeTopicSelectCardNoneSelectPreview() {
177177
introduce = "안녕하세요",
178178
topicExpiredDuration = System.currentTimeMillis().toDuration(DurationUnit.MILLISECONDS),
179179
topic1 = dummyTopics[0],
180-
topic2 = dummyTopics[1],
180+
topic2 = dummyTopics[1]
181181
),
182182
selectTopicIdx = -1,
183183
buttonEnabled = true

feature/tohot/src/main/java/tht/feature/tohot/component/topic/FourTypeTopic.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ fun FourTypeTopic(
6161
shape = RoundedCornerShape(56.dp)
6262
)
6363
.padding(horizontal = 24.dp, vertical = 16.dp)
64-
.alpha(if (isSelect || !hasSelectTopic) 100f else 0.4f),
64+
.alpha(if (isSelect || !hasSelectTopic) 100f else 0.4f)
6565
) {
6666
Row(
6767
modifier = Modifier.fillMaxWidth(),
@@ -88,7 +88,6 @@ fun FourTypeTopic(
8888
color = colorResource(id = R.color.white_f9fafa),
8989
textAlign = TextAlign.Center
9090
)
91-
9291
}
9392
}
9493

feature/tohot/src/main/java/tht/feature/tohot/mapper/TopicUiModelMapper.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fun DailyTopicModel.toUiModel(): TopicUiModel {
2121

2222
fun DailyTopicListModel.toUiModel(): TopicSelectUiModel {
2323
val topicExpiredDuration = (topicResetTimeMill - System.currentTimeMillis()).toDuration(DurationUnit.MILLISECONDS)
24-
return when(topicSelectType) {
24+
return when (topicSelectType) {
2525
DailyTopicListModel.TopicSelectType.ONE_CHOICE -> {
2626
if (topics.isEmpty()) throw Exception("TopicSizeException")
2727
TopicSelectUiModel.OneTopic(

feature/tohot/src/main/java/tht/feature/tohot/tohot/viewmodel/ToHotViewModel.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ class ToHotViewModel @Inject constructor(
353353
state.copy(
354354
topic = state.topic.copy(
355355
selectTopicIdx = -1,
356-
currentTopic = selectTopic,
356+
currentTopic = selectTopic
357357
),
358358
loading = ToHotLoading.None,
359359
enableTimerIdx = 0
@@ -427,8 +427,8 @@ class ToHotViewModel @Inject constructor(
427427
dialogState = ToHotState.DialogState(
428428
reportMenuDialogShow = false,
429429
reportDialogShow = false,
430-
blockDialogShow = false,
431-
),
430+
blockDialogShow = false
431+
)
432432
)
433433
}
434434
}
@@ -650,7 +650,7 @@ class ToHotViewModel @Inject constructor(
650650
reduce {
651651
it.copy(
652652
cardVisibleState = it.cardVisibleState.copy(
653-
cardMoveAllow = true,
653+
cardMoveAllow = true
654654
),
655655
dialogState = it.dialogState.copy(
656656
reportMenuDialogShow = false,
@@ -667,7 +667,7 @@ class ToHotViewModel @Inject constructor(
667667
reduce {
668668
it.copy(
669669
cardVisibleState = it.cardVisibleState.copy(
670-
cardMoveAllow = false,
670+
cardMoveAllow = false
671671
),
672672
dialogState = it.dialogState.copy(
673673
reportMenuDialogShow = true
@@ -731,7 +731,7 @@ class ToHotViewModel @Inject constructor(
731731
reduce {
732732
it.copy(
733733
cardVisibleState = it.cardVisibleState.copy(
734-
fallingAnimationIdx = userIdx,
734+
fallingAnimationIdx = userIdx
735735
),
736736
dialogState = it.dialogState.copy(
737737
reportMenuDialogShow = false,
@@ -779,7 +779,7 @@ class ToHotViewModel @Inject constructor(
779779
reduce {
780780
it.copy(
781781
cardVisibleState = it.cardVisibleState.copy(
782-
fallingAnimationIdx = idx,
782+
fallingAnimationIdx = idx
783783
),
784784
dialogState = it.dialogState.copy(
785785
reportMenuDialogShow = false,

0 commit comments

Comments
 (0)