Skip to content

Commit bbdc6d4

Browse files
committed
chore(detekt): update rules configuration
1 parent 2dfea5f commit bbdc6d4

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

config/detekt/detekt.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,12 @@ complexity:
161161
ignorePrivate: false
162162
ignoreInternal: false
163163
ignoreOverridden: false
164-
ignoreAnnotatedFunctions: ['Preview']
164+
ignoreAnnotatedFunctions: ['Preview', 'PreviewLightDark', 'PreviewLightDarkLandscape']
165165

166166
coroutines:
167167
active: true
168168
CoroutineLaunchedInTestWithoutRunTest:
169-
active: false
169+
active: true
170170
GlobalCoroutineUsage:
171171
active: false
172172
InjectDispatcher:
@@ -330,7 +330,7 @@ naming:
330330
active: true
331331
aliases: ['FunctionName']
332332
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/androidUnitTest/**', '**/androidInstrumentedTest/**', '**/jsTest/**', '**/iosTest/**', '**/nativeTest/**']
333-
functionPattern: '[a-zA-Z][a-zA-Z0-9]*'
333+
functionPattern: '[a-z][a-zA-Z0-9]*'
334334
excludeClassPattern: '$^'
335335
ignoreAnnotated:
336336
- 'Composable'
@@ -522,7 +522,12 @@ potential-bugs:
522522
allowAdjacentDifferentTypeParams: true
523523
allowSingleParamUse: true
524524
ignoreArgumentsMatchingNames: true
525-
ignoreFunctionCall: []
525+
ignoreFunctionCall:
526+
- androidx.compose.runtime.remember
527+
- kotlin.comparisons.maxOf
528+
- kotlin.comparisons.minOf
529+
- kotlin.math.max
530+
- kotlin.Pair.<init>
526531
UnnecessaryNotNullCheck:
527532
active: false
528533
UnnecessaryNotNullOperator:
@@ -628,8 +633,8 @@ style:
628633
value: 'FIXME:'
629634
- reason: 'Forbidden STOPSHIP todo marker in comment, please address the problem before shipping the code.'
630635
value: 'STOPSHIP:'
631-
# - reason: 'Forbidden TODO todo marker in comment, please do the changes.'
632-
# value: 'TODO:'
636+
- reason: 'Forbidden TODO todo marker in comment, please do the changes or create an issue to address it.'
637+
value: 'TODO:'
633638
allowedPatterns: ''
634639
ForbiddenImport:
635640
active: false
@@ -744,7 +749,7 @@ style:
744749
- 'equals'
745750
excludeLabeled: false
746751
excludeReturnFromLambda: true
747-
excludeGuardClauses: false
752+
excludeGuardClauses: true
748753
SafeCast:
749754
active: true
750755
SerialVersionUIDInSerializableClass:

0 commit comments

Comments
 (0)