@@ -17,11 +17,18 @@ processors:
1717 active : true
1818 exclude :
1919 - ' DetektProgressListener'
20+ # - 'KtFileCountProcessor'
21+ # - 'PackageCountProcessor'
22+ # - 'ClassCountProcessor'
2023 # - 'FunctionCountProcessor'
2124 # - 'PropertyCountProcessor'
22- # - 'ClassCountProcessor'
23- # - 'PackageCountProcessor'
24- # - 'KtFileCountProcessor'
25+ # - 'ProjectComplexityProcessor'
26+ # - 'ProjectCognitiveComplexityProcessor'
27+ # - 'ProjectLLOCProcessor'
28+ # - 'ProjectCLOCProcessor'
29+ # - 'ProjectLOCProcessor'
30+ # - 'ProjectSLOCProcessor'
31+ # - 'LicenseHeaderLoaderExtension'
2532
2633console-reports :
2734 active : true
@@ -45,6 +52,7 @@ comments:
4552 AbsentOrWrongFileLicense :
4653 active : false
4754 licenseTemplateFile : ' license.template'
55+ licenseTemplateIsRegex : false
4856 CommentOverPrivateFunction :
4957 active : false
5058 CommentOverPrivateProperty :
@@ -129,11 +137,13 @@ complexity:
129137coroutines :
130138 active : true
131139 GlobalCoroutineUsage :
132- active : false
140+ active : true
133141 RedundantSuspendModifier :
134- active : false
142+ active : true
143+ SleepInsteadOfDelay :
144+ active : true
135145 SuspendFunWithFlowReturnType :
136- active : false
146+ active : true
137147
138148empty-blocks :
139149 active : true
@@ -180,6 +190,8 @@ exceptions:
180190 excludes : ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
181191 NotImplementedDeclaration :
182192 active : true
193+ ObjectExtendsThrowable :
194+ active : true
183195 PrintStackTrace :
184196 active : true
185197 RethrowCaughtException :
@@ -317,6 +329,9 @@ formatting:
317329 active : true
318330 autoCorrect : true
319331 indentSize : 4
332+ SpacingAroundAngleBrackets :
333+ active : true
334+ autoCorrect : true
320335 SpacingAroundColon :
321336 active : true
322337 autoCorrect : true
@@ -344,9 +359,12 @@ formatting:
344359 SpacingAroundRangeOperator :
345360 active : true
346361 autoCorrect : true
347- SpacingBetweenDeclarationsWithAnnotations :
362+ SpacingAroundUnaryOperator :
348363 active : true
349364 autoCorrect : true
365+ SpacingBetweenDeclarationsWithAnnotations :
366+ active : false
367+ autoCorrect : true
350368 SpacingBetweenDeclarationsWithComments :
351369 active : true
352370 autoCorrect : true
@@ -398,13 +416,16 @@ naming:
398416 ignoreOverridden : true
399417 InvalidPackageDeclaration :
400418 active : false
419+ excludes : ['*.kts']
401420 rootPackage : ' '
402421 MatchingDeclarationName :
403422 active : true
404423 mustBeFirst : true
405424 MemberNameEqualsClassName :
406425 active : true
407426 ignoreOverridden : true
427+ NoNameShadowing :
428+ active : true
408429 NonBooleanPropertyPrefixedWithIs :
409430 active : true
410431 excludes : ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
@@ -455,14 +476,20 @@ performance:
455476
456477potential-bugs :
457478 active : true
479+ CastToNullableType :
480+ active : true
458481 Deprecation :
459482 active : true
483+ DontDowncastCollectionTypes :
484+ active : true
460485 DuplicateCaseInWhenExpression :
461486 active : true
462487 EqualsAlwaysReturnsTrueOrFalse :
463488 active : true
464489 EqualsWithHashCodeExist :
465490 active : true
491+ ExitOutsideMain :
492+ active : true
466493 ExplicitGarbageCollectionCall :
467494 active : true
468495 HasPlatformType :
@@ -502,12 +529,16 @@ potential-bugs:
502529 active : true
503530 UnnecessarySafeCall :
504531 active : true
532+ UnreachableCatchBlock :
533+ active : true
505534 UnreachableCode :
506535 active : true
507536 UnsafeCallOnNullableType :
508537 active : true
509538 UnsafeCast :
510- active : false
539+ active : true
540+ UnusedUnaryOperator :
541+ active : true
511542 UselessPostfixExpression :
512543 active : true
513544 WrongEqualsTypeParameter :
@@ -524,6 +555,9 @@ style:
524555 conversionFunctionPrefix : ' to'
525556 DataClassShouldBeImmutable :
526557 active : true
558+ DestructuringDeclarationWithTooManyEntries :
559+ active : true
560+ maxDestructuringEntries : 3
527561 EqualsNullCall :
528562 active : true
529563 EqualsOnSignatureLine :
@@ -548,7 +582,8 @@ style:
548582 active : false
549583 methods : ['kotlin.io.println', 'kotlin.io.print']
550584 ForbiddenPublicDataClass :
551- active : false
585+ active : true
586+ excludes : ['**']
552587 ignorePackages : ['*.internal', '*.internal.*']
553588 ForbiddenVoid :
554589 active : true
@@ -557,12 +592,15 @@ style:
557592 FunctionOnlyReturningConstant :
558593 active : true
559594 ignoreOverridableFunction : true
595+ ignoreActualFunction : true
560596 excludedFunctions : ' describeContents'
561597 excludeAnnotatedFunction : ['dagger.Provides']
562598 LibraryCodeMustSpecifyReturnType :
563599 active : true
600+ excludes : ['**']
564601 LibraryEntitiesShouldNotBePublic :
565602 active : true
603+ excludes : ['**']
566604 LoopWithTooManyJumpStatements :
567605 active : true
568606 maxJumpCount : 1
@@ -579,6 +617,7 @@ style:
579617 ignoreNamedArgument : true
580618 ignoreEnums : false
581619 ignoreRanges : false
620+ ignoreExtensionFunctions : true
582621 MandatoryBracesIfStatements :
583622 active : false # See formatting.MultiLineIfElse
584623 MandatoryBracesLoops :
@@ -593,6 +632,8 @@ style:
593632 active : true
594633 ModifierOrder :
595634 active : true
635+ MultilineLambdaItParameter :
636+ active : true
596637 NestedClassesVisibility :
597638 active : true
598639 NewLineAtEndOfFile :
@@ -625,7 +666,7 @@ style:
625666 SafeCast :
626667 active : true
627668 SerialVersionUIDInSerializableClass :
628- active : false
669+ active : true
629670 SpacingBetweenPackageAndImports :
630671 active : false # See formatting.NoConsecutiveBlankLines
631672 ThrowsCount :
@@ -643,6 +684,8 @@ style:
643684 active : true
644685 UnnecessaryApply :
645686 active : true
687+ UnnecessaryFilter :
688+ active : true
646689 UnnecessaryInheritance :
647690 active : true
648691 UnnecessaryLet :
@@ -674,6 +717,10 @@ style:
674717 active : true
675718 UseIfInsteadOfWhen :
676719 active : true
720+ UseIsNullOrEmpty :
721+ active : true
722+ UseOrEmpty :
723+ active : true
677724 UseRequire :
678725 active : true
679726 UseRequireNotNull :
0 commit comments