4 test-pattern: # Configure exclusions for test sources
6 patterns: # Test file regexes
18 - 'StringLiteralDuplication'
27 # LongParameterList: 1
34 # - 'FunctionCountProcessor'
35 # - 'PropertyCountProcessor'
36 # - 'ClassCountProcessor'
37 # - 'PackageCountProcessor'
38 # - 'KtFileCountProcessor'
43 # - 'ProjectStatisticsReport'
44 # - 'ComplexityReport'
45 # - 'NotificationReport'
47 # - 'BuildFailureReport'
52 # - 'HtmlOutputReport'
53 # - 'PlainOutputReport'
58 CommentOverPrivateFunction:
60 CommentOverPrivateProperty:
64 endOfSentenceFormat: ([.?!][ \t\n\r\f<])|([.?!]$)
65 UndocumentedPublicClass:
67 searchInNestedClass: true
68 searchInInnerClass: true
69 searchInInnerObject: true
70 searchInInnerInterface: true
71 UndocumentedPublicFunction:
82 includeStaticDeclarations: false
86 ignoreSingleWhenExpression: false
98 ignoreDefaultParameters: false
105 StringLiteralDuplication:
108 ignoreAnnotation: true
109 excludeStringsWithLessThan5Characters: true
110 ignoreStringsRegex: '$^'
114 thresholdInClasses: 11
115 thresholdInInterfaces: 11
116 thresholdInObjects: 11
118 ignoreDeprecated: false
125 allowedExceptionNameRegex: "^(_|(ignore|expected).*)"
128 EmptyDefaultConstructor:
140 ignoreOverriddenFunctions: false
147 EmptySecondaryConstructor:
156 ExceptionRaisedInUnexpectedLocation:
158 methodNames: 'toString,hashCode,equals,finalize'
159 InstanceOfCheckForException:
161 NotImplementedDeclaration:
165 RethrowCaughtException:
171 ThrowingExceptionFromFinally:
173 ThrowingExceptionInMain:
175 ThrowingExceptionsWithoutMessageOrCause:
177 exceptions: 'IllegalArgumentException,IllegalStateException,IOException'
178 ThrowingNewInstanceOfSameException:
180 TooGenericExceptionCaught:
183 - ArrayIndexOutOfBoundsException
186 - IllegalMonitorStateException
187 - NullPointerException
188 - IndexOutOfBoundsException
191 TooGenericExceptionThrown:
221 continuationIndentSize: 4
228 NoBlankLineBeforeRbrace:
231 NoConsecutiveBlankLines:
237 NoItParamInMultilineLambda:
239 NoLineBreakAfterElse:
242 NoLineBreakBeforeAssignment:
263 ParameterListWrapping:
276 SpacingAroundKeyword:
279 SpacingAroundOperators:
282 SpacingAroundRangeOperator:
293 classPattern: '[A-Z$][a-zA-Z0-9$]*'
296 enumEntryPattern: '^[A-Z][_a-zA-Z0-9]*'
302 maximumFunctionNameLength: 30
305 minimumFunctionNameLength: 3
308 functionPattern: '^([a-z$][a-zA-Z$0-9]*)|(`.*`)$'
309 excludeClassPattern: '$^'
310 MatchingDeclarationName:
312 MemberNameEqualsClassName:
314 ignoreOverriddenFunction: true
315 ObjectPropertyNaming:
317 propertyPattern: '[A-Za-z][_A-Za-z0-9]*'
318 constantPattern: '[A-Za-z][_A-Za-z0-9]*'
321 packagePattern: '^[a-z]+(\.[a-z][a-z0-9]*)*$'
322 TopLevelPropertyNaming:
324 constantPattern: '[A-Z][_A-Z0-9]*'
325 propertyPattern: '[A-Za-z][_A-Za-z0-9]*'
326 privatePropertyPattern: '(_)?[A-Za-z][A-Za-z0-9]*'
329 maximumVariableNameLength: 64
332 minimumVariableNameLength: 1
335 variablePattern: '[a-z][A-Za-z0-9]*'
336 privateVariablePattern: '(_)?[a-z][A-Za-z0-9]*'
337 excludeClassPattern: '$^'
345 UnnecessaryTemporaryInstantiation:
350 DuplicateCaseInWhenExpression:
352 EqualsAlwaysReturnsTrueOrFalse:
354 EqualsWithHashCodeExist:
356 ExplicitGarbageCollectionCall:
360 IteratorHasNextCallsNextMethod:
362 IteratorNotThrowingNoSuchElementException:
366 excludeAnnotatedProperties: ""
367 ignoreOnClassesPattern: ""
368 UnconditionalJumpStatementInLoop:
372 UnsafeCallOnNullableType:
376 UselessPostfixExpression:
378 WrongEqualsTypeParameter:
383 CollapsibleIfStatements:
385 DataClassContainsFunctions:
387 conversionFunctionPrefix: 'to'
390 ExpressionBodySyntax:
394 values: 'TODO:,FIXME:,STOPSHIP:'
398 FunctionOnlyReturningConstant:
400 ignoreOverridableFunction: true
401 excludedFunctions: 'describeContents'
402 LoopWithTooManyJumpStatements:
407 ignoreNumbers: '-1,0,1,2'
408 ignoreHashCodeFunction: false
409 ignorePropertyDeclaration: false
410 ignoreConstantDeclaration: true
411 ignoreCompanionObjectPropertyDeclaration: true
412 ignoreAnnotation: false
413 ignoreNamedArgument: true
418 excludePackageStatements: false
419 excludeImportStatements: false
420 excludeCommentStatements: false
425 NestedClassesVisibility:
431 OptionalAbstractKeyword:
437 ProtectedMemberInFinalClass:
439 RedundantVisibilityModifierRule:
444 excludedFunctions: "equals"
447 SerialVersionUIDInSerializableClass:
449 SpacingBetweenPackageAndImports:
456 UnnecessaryAbstractClass:
458 UnnecessaryInheritance:
460 UnnecessaryParentheses:
462 UntilInsteadOfRangeTo:
468 allowedNames: "(_.*|ignored|expected)"
471 excludeAnnotatedClasses: ""
472 UtilityClassWithPublicConstructor:
476 excludeImports: 'java.util.*,kotlinx.android.synthetic.*'
480 SuboptimalLoggerUsage: