1010config :
1111 validation : true
1212 warningsAsErrors : false
13+ checkExhaustiveness : false
1314 # when writing own rules with new properties, exclude the property path e.g.: 'my_rule_set,.*>.*>[my_property]'
1415 excludes : ' '
1516
@@ -78,15 +79,21 @@ comments:
7879 searchInInnerClass : true
7980 searchInInnerObject : true
8081 searchInInnerInterface : true
82+ searchInProtectedClass : false
8183 UndocumentedPublicFunction :
8284 active : false
83- excludes : ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
85+ excludes : ['**/test/**', '**/androidUnitTest/**', '**/androidInstrumentedTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
86+ searchProtectedFunction : false
8487 UndocumentedPublicProperty :
8588 active : false
86- excludes : ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
89+ excludes : ['**/test/**', '**/androidUnitTest/**', '**/androidInstrumentedTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
90+ searchProtectedProperty : false
8791
8892complexity :
8993 active : true
94+ CognitiveComplexMethod :
95+ active : false
96+ threshold : 15
9097 ComplexCondition :
9198 active : true
9299 threshold : 4
@@ -95,7 +102,8 @@ complexity:
95102 threshold : 10
96103 includeStaticDeclarations : false
97104 includePrivateDeclarations : false
98- ComplexMethod :
105+ ignoreOverloaded : false
106+ CyclomaticComplexMethod :
99107 active : true
100108 threshold : 15
101109 ignoreSingleWhenExpression : false
@@ -386,7 +394,9 @@ performance:
386394 excludes : ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
387395 SpreadOperator :
388396 active : true
389- excludes : ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
397+ excludes : ['**/test/**', '**/androidUnitTest/**', '**/androidInstrumentedTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
398+ UnnecessaryPartOfBinaryExpression :
399+ active : false
390400 UnnecessaryTemporaryInstantiation :
391401 active : true
392402
@@ -413,8 +423,6 @@ potential-bugs:
413423 - ' java.util.HashSet'
414424 - ' java.util.LinkedHashMap'
415425 - ' java.util.HashMap'
416- DuplicateCaseInWhenExpression :
417- active : true
418426 ElseCaseInsteadOfExhaustiveWhen :
419427 active : false
420428 EqualsAlwaysReturnsTrueOrFalse :
@@ -429,12 +437,16 @@ potential-bugs:
429437 active : true
430438 IgnoredReturnValue :
431439 active : true
432- restrictToAnnotatedMethods : true
440+ restrictToConfig : true
433441 returnValueAnnotations :
434442 - ' *.CheckResult'
435443 - ' *.CheckReturnValue'
436444 ignoreReturnValueAnnotations :
437445 - ' *.CanIgnoreReturnValue'
446+ returnValueTypes :
447+ - ' kotlin.sequences.Sequence'
448+ - ' kotlinx.coroutines.flow.*Flow'
449+ - ' java.util.stream.*Stream'
438450 ignoreFunctionCall : []
439451 ImplicitDefaultLocale :
440452 active : true
@@ -456,17 +468,14 @@ potential-bugs:
456468 MissingPackageDeclaration :
457469 active : false
458470 excludes : ['**/*.kts']
459- MissingWhenCase :
460- active : true
461- allowElseExpression : true
462471 NullCheckOnMutableProperty :
463472 active : false
464473 NullableToStringCall :
465474 active : false
466- RedundantElseInWhen :
467- active : true
468475 UnconditionalJumpStatementInLoop :
469476 active : false
477+ UnnecessaryNotNullCheck :
478+ active : false
470479 UnnecessaryNotNullOperator :
471480 active : true
472481 UnnecessarySafeCall :
@@ -489,6 +498,8 @@ potential-bugs:
489498
490499style :
491500 active : true
501+ AlsoCouldBeApply :
502+ active : false
492503 CanBeNonNullable :
493504 active : false
494505 CascadingCallWrapping :
@@ -500,7 +511,8 @@ style:
500511 active : false
501512 DataClassContainsFunctions :
502513 active : false
503- conversionFunctionPrefix : ' to'
514+ conversionFunctionPrefix :
515+ - ' to'
504516 DataClassShouldBeImmutable :
505517 active : false
506518 DestructuringDeclarationWithTooManyEntries :
@@ -532,14 +544,10 @@ style:
532544 ForbiddenMethodCall :
533545 active : false
534546 methods :
535- - ' kotlin.io.print'
536- - ' kotlin.io.println'
537- ForbiddenPublicDataClass :
538- active : true
539- excludes : ['**']
540- ignorePackages :
541- - ' *.internal'
542- - ' *.internal.*'
547+ - reason : ' print does not allow you to configure the output stream. Use a logger instead.'
548+ value : ' kotlin.io.print'
549+ - reason : ' println does not allow you to configure the output stream. Use a logger instead.'
550+ value : ' kotlin.io.println'
543551 ForbiddenSuppress :
544552 active : false
545553 rules : []
@@ -551,13 +559,7 @@ style:
551559 active : true
552560 ignoreOverridableFunction : true
553561 ignoreActualFunction : true
554- excludedFunctions : ' '
555- LibraryCodeMustSpecifyReturnType :
556- active : true
557- excludes : ['**']
558- LibraryEntitiesShouldNotBePublic :
559- active : true
560- excludes : ['**']
562+ excludedFunctions : []
561563 LoopWithTooManyJumpStatements :
562564 active : true
563565 maxJumpCount : 1
@@ -592,12 +594,16 @@ style:
592594 excludePackageStatements : true
593595 excludeImportStatements : true
594596 excludeCommentStatements : false
597+ excludeRawStrings : true
595598 MayBeConst :
596599 active : true
597600 ModifierOrder :
598601 active : true
599602 MultilineLambdaItParameter :
600603 active : false
604+ MultilineRawStringIndentation :
605+ active : false
606+ indentSize : 4
601607 NestedClassesVisibility :
602608 active : true
603609 NewLineAtEndOfFile :
@@ -627,7 +633,8 @@ style:
627633 ReturnCount :
628634 active : true
629635 max : 2
630- excludedFunctions : ' equals'
636+ excludedFunctions :
637+ - ' equals'
631638 excludeLabeled : false
632639 excludeReturnFromLambda : true
633640 excludeGuardClauses : false
@@ -643,6 +650,8 @@ style:
643650 excludeGuardClauses : false
644651 TrailingWhitespace :
645652 active : false
653+ TrimMultilineRawString :
654+ active : false
646655 UnderscoresInNumericLiterals :
647656 active : false
648657 acceptableLength : 4
@@ -665,6 +674,7 @@ style:
665674 active : false
666675 UnnecessaryParentheses :
667676 active : false
677+ allowForUnclearPrecedence : false
668678 UntilInsteadOfRangeTo :
669679 active : false
670680 UnusedImports :
@@ -699,6 +709,8 @@ style:
699709 active : true
700710 UseRequireNotNull :
701711 active : true
712+ UseSumOfInsteadOfFlatMapSize :
713+ active : false
702714 UselessCallOnNotNull :
703715 active : true
704716 UtilityClassWithPublicConstructor :
0 commit comments