Skip to content

Commit 65db3a3

Browse files
committed
💚 :: detekt에 잡힌 에러 수정
1 parent f0bd5db commit 65db3a3

File tree

36 files changed

+72
-59
lines changed

36 files changed

+72
-59
lines changed

config/detekt/detekt.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ complexity:
3636
threshold: 500
3737
LongMethod: # 긴 메서드 크기 설정
3838
active: true
39-
threshold: 50
39+
threshold: 400
4040
LongParameterList: # 특정 임계값보다 많은 매개변수가 있는 함수와 생성자
4141
active: true
42-
functionThreshold: 6
42+
functionThreshold: 20
4343
constructorThreshold: 7
4444
ignoreDefaultParameters: false # 기본값이 있는 매개변수 포함
4545
ignoreDataClasses: true # 데이터 클래스에 대해서 무시
@@ -85,6 +85,17 @@ exceptions:
8585

8686
formatting:
8787
active: true
88+
ImportOrdering:
89+
active: false
90+
MaximumLineLength:
91+
active: true
92+
maxLineLength: 160
93+
ArgumentListWrapping:
94+
active: false
95+
Wrapping:
96+
active: false
97+
PackageName:
98+
active: false
8899

89100
naming:
90101
active: true
@@ -96,6 +107,8 @@ naming:
96107
active: true
97108
NonBooleanPropertyPrefixedWithIs:
98109
active: true
110+
PackageNaming:
111+
active: false
99112

100113
performance:
101114
active: true

core/data/src/test/java/com/chat/data/ExampleUnitTest.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
package com.chat.data
22

33
import org.junit.Test
4-
5-
import org.junit.Assert.*
4+
import org.junit.Assert.assertEquals
65

76
/**
87
* Example local unit test, which will execute on the development machine (host).
@@ -14,4 +13,4 @@ class ExampleUnitTest {
1413
fun addition_isCorrect() {
1514
assertEquals(4, 2 + 2)
1615
}
17-
}
16+
}

core/designsystem/src/main/java/com/chat/designsystem/component/appbar/DetailAppbar.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ fun DetailAppbar(
4141
@Composable
4242
fun DetailAppbarPreview() {
4343
DetailAppbar()
44-
}
44+
}

core/designsystem/src/main/java/com/chat/designsystem/component/appbar/GoSocketAppbar.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ fun GoSocketAppbarPreview() {
4646
) {
4747
Text(text = "GoSocketAppbar")
4848
}
49-
}
49+
}

core/designsystem/src/main/java/com/chat/designsystem/component/appbar/MainAppbar.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@ fun MainAppbar(
7474
@Composable
7575
fun MainAppbarPreview() {
7676
MainAppbar()
77-
}
77+
}

core/designsystem/src/main/java/com/chat/designsystem/component/bottom_sheet/CreateMessageBottomSheet.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,4 @@ fun CreateMessageBottomSheetPreview() {
9696
Text(text = "Open")
9797
}
9898
}
99-
}
99+
}

core/designsystem/src/main/java/com/chat/designsystem/component/bottom_sheet/GoSocketBottomSheet.kt

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ fun GoSocketBottomSheet(
3838
val bottomSheetState = rememberModalBottomSheetState(skipPartiallyExpanded = true)
3939
val insets = ViewCompat.getRootWindowInsets(LocalView.current)
4040
val context = LocalView.current.context
41-
val navigationBarHeight = insets?.getInsets(WindowInsetsCompat.Type.navigationBars())?.bottom?.toDp(context)?.dp ?: 0.dp
41+
val navigationBarHeight =
42+
insets?.getInsets(WindowInsetsCompat.Type.navigationBars())?.bottom?.toDp(context)?.dp
43+
?: 0.dp
4244

4345
ModalBottomSheet(
4446
sheetState = bottomSheetState,
@@ -56,7 +58,14 @@ fun GoSocketBottomSheet(
5658
},
5759
onDismissRequest = onDismissRequest,
5860
) {
59-
Column(modifier = modifier.padding(start = 10.dp, top = 6.dp, end = 10.dp, bottom = 14.dp + navigationBarHeight)) {
61+
Column(
62+
modifier = modifier.padding(
63+
start = 10.dp,
64+
top = 6.dp,
65+
end = 10.dp,
66+
bottom = 14.dp + navigationBarHeight
67+
)
68+
) {
6069
content()
6170
}
6271
}
@@ -82,4 +91,4 @@ fun GoSocketBottomSheetPreview() {
8291
Text(text = "Open")
8392
}
8493
}
85-
}
94+
}

core/designsystem/src/main/java/com/chat/designsystem/component/button/GoSocketButton.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,4 @@ fun GoSocketButtonPreview() {
7979
onClick = {}
8080
) { IcCreateDirectMessage(modifier = Modifier.size(22.dp, 18.dp), tint = Color.White) }
8181
}
82-
}
82+
}

core/designsystem/src/main/java/com/chat/designsystem/component/button/GoSocketFloatingActionButton.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ fun GoSocketFloatingActionButton(
5151
@Composable
5252
fun GoSocketFloatingActionButtonPreview() {
5353
GoSocketFloatingActionButton {}
54-
}
54+
}

core/designsystem/src/main/java/com/chat/designsystem/component/button/GoSocketOutlinedButton.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ fun GoSocketOutlinedButtonPreview() {
6060
text = "GoSocketOutlinedButton"
6161
) {}
6262
}
63-
}
63+
}

0 commit comments

Comments
 (0)