@@ -91,7 +91,7 @@ complexity:
9191 threshold : 10
9292 includeStaticDeclarations : false
9393 includePrivateDeclarations : false
94- ComplexMethod :
94+ CyclomaticComplexMethod :
9595 active : true
9696 threshold : 15
9797 ignoreSingleWhenExpression : false
@@ -279,12 +279,26 @@ exceptions:
279279 - ' RuntimeException'
280280 - ' Throwable'
281281
282+ libraries :
283+ active : true
284+ ForbiddenPublicDataClass :
285+ active : true
286+ excludes : [ '**' ]
287+ ignorePackages :
288+ - ' *.internal'
289+ - ' *.internal.*'
290+ LibraryCodeMustSpecifyReturnType :
291+ active : true
292+ excludes : ['**']
293+ LibraryEntitiesShouldNotBePublic :
294+ active : true
295+ excludes : ['**']
296+
282297naming :
283298 active : true
284299 BooleanPropertyNaming :
285300 active : false
286301 allowedPattern : ' ^(is|has|are)'
287- ignoreOverridden : true
288302 ClassNaming :
289303 active : true
290304 classPattern : ' [A-Z][a-zA-Z0-9]*'
@@ -293,7 +307,6 @@ naming:
293307 parameterPattern : ' [a-z][A-Za-z0-9]*'
294308 privateParameterPattern : ' [a-z][A-Za-z0-9]*'
295309 excludeClassPattern : ' $^'
296- ignoreOverridden : true
297310 EnumNaming :
298311 active : true
299312 enumEntryPattern : ' [A-Z][_a-zA-Z0-9]*'
@@ -311,12 +324,10 @@ naming:
311324 excludes : ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
312325 functionPattern : ' [a-z][a-zA-Z0-9]*'
313326 excludeClassPattern : ' $^'
314- ignoreOverridden : true
315327 FunctionParameterNaming :
316328 active : true
317329 parameterPattern : ' [a-z][A-Za-z0-9]*'
318330 excludeClassPattern : ' $^'
319- ignoreOverridden : true
320331 InvalidPackageDeclaration :
321332 active : false
322333 rootPackage : ' '
@@ -358,7 +369,6 @@ naming:
358369 variablePattern : ' [a-z][A-Za-z0-9]*'
359370 privateVariablePattern : ' (_)?[a-z][A-Za-z0-9]*'
360371 excludeClassPattern : ' $^'
361- ignoreOverridden : true
362372
363373performance :
364374 active : true
@@ -396,8 +406,6 @@ potential-bugs:
396406 - ' java.util.HashSet'
397407 - ' java.util.LinkedHashMap'
398408 - ' java.util.HashMap'
399- DuplicateCaseInWhenExpression :
400- active : true
401409 ElseCaseInsteadOfExhaustiveWhen :
402410 active : false
403411 EqualsAlwaysReturnsTrueOrFalse :
@@ -412,7 +420,7 @@ potential-bugs:
412420 active : false
413421 IgnoredReturnValue :
414422 active : false
415- restrictToAnnotatedMethods : true
423+ restrictToConfig : true
416424 returnValueAnnotations :
417425 - ' *.CheckResult'
418426 - ' *.CheckReturnValue'
@@ -439,15 +447,10 @@ potential-bugs:
439447 MissingPackageDeclaration :
440448 active : false
441449 excludes : ['**/*.kts']
442- MissingWhenCase :
443- active : true
444- allowElseExpression : true
445450 NullCheckOnMutableProperty :
446451 active : false
447452 NullableToStringCall :
448453 active : false
449- RedundantElseInWhen :
450- active : true
451454 UnconditionalJumpStatementInLoop :
452455 active : false
453456 UnnecessaryNotNullOperator :
@@ -472,6 +475,8 @@ potential-bugs:
472475
473476style :
474477 active : true
478+ BracesOnWhenStatements :
479+ active : false
475480 CanBeNonNullable :
476481 active : false
477482 ClassOrdering :
@@ -480,7 +485,8 @@ style:
480485 active : false
481486 DataClassContainsFunctions :
482487 active : false
483- conversionFunctionPrefix : ' to'
488+ conversionFunctionPrefix :
489+ - ' to'
484490 DataClassShouldBeImmutable :
485491 active : false
486492 DestructuringDeclarationWithTooManyEntries :
@@ -499,12 +505,14 @@ style:
499505 includeLineWrapping : false
500506 ForbiddenComment :
501507 active : true
502- values :
503- - ' FIXME:'
504- - ' STOPSHIP:'
505- - ' TODO:'
508+ comments :
509+ - reason : ' Forbidden FIXME todo marker in comment, please fix the problem.'
510+ value : ' FIXME:'
511+ - reason : ' Forbidden STOPSHIP todo marker in comment, please address the problem before shipping the code.'
512+ value : ' STOPSHIP:'
513+ - reason : ' Forbidden TODO todo marker in comment, please do the changes.'
514+ value : ' TODO:'
506515 allowedPatterns : ' '
507- customMessage : ' '
508516 ForbiddenImport :
509517 active : false
510518 imports : []
@@ -514,12 +522,6 @@ style:
514522 methods :
515523 - ' kotlin.io.print'
516524 - ' kotlin.io.println'
517- ForbiddenPublicDataClass :
518- active : true
519- excludes : ['**']
520- ignorePackages :
521- - ' *.internal'
522- - ' *.internal.*'
523525 ForbiddenVoid :
524526 active : false
525527 ignoreOverridden : false
@@ -528,13 +530,8 @@ style:
528530 active : true
529531 ignoreOverridableFunction : true
530532 ignoreActualFunction : true
531- excludedFunctions : ' '
532- LibraryCodeMustSpecifyReturnType :
533- active : true
534- excludes : ['**']
535- LibraryEntitiesShouldNotBePublic :
536- active : true
537- excludes : ['**']
533+ excludedFunctions :
534+ - ' '
538535 LoopWithTooManyJumpStatements :
539536 active : true
540537 maxJumpCount : 1
@@ -556,8 +553,6 @@ style:
556553 ignoreEnums : false
557554 ignoreRanges : false
558555 ignoreExtensionFunctions : true
559- MandatoryBracesIfStatements :
560- active : false
561556 MandatoryBracesLoops :
562557 active : false
563558 MaxLineLength :
@@ -584,8 +579,6 @@ style:
584579 active : true
585580 OptionalUnit :
586581 active : false
587- OptionalWhenBraces :
588- active : false
589582 PreferToOverPairSyntax :
590583 active : false
591584 ProtectedMemberInFinalClass :
@@ -599,7 +592,8 @@ style:
599592 ReturnCount :
600593 active : true
601594 max : 2
602- excludedFunctions : ' equals'
595+ excludedFunctions :
596+ - ' equals'
603597 excludeLabeled : false
604598 excludeReturnFromLambda : true
605599 excludeGuardClauses : false
@@ -679,4 +673,4 @@ style:
679673 active : true
680674 excludes : ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
681675 excludeImports :
682- - ' java.util.*'
676+ - ' java.util.*'
0 commit comments