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
124 allowedExceptionNameRegex: "^(_|(ignore|expected).*)"
127 EmptyDefaultConstructor:
139 ignoreOverriddenFunctions: false
146 EmptySecondaryConstructor:
155 ExceptionRaisedInUnexpectedLocation:
157 methodNames: 'toString,hashCode,equals,finalize'
158 InstanceOfCheckForException:
160 NotImplementedDeclaration:
164 RethrowCaughtException:
170 ThrowingExceptionFromFinally:
172 ThrowingExceptionInMain:
174 ThrowingExceptionsWithoutMessageOrCause:
176 exceptions: 'IllegalArgumentException,IllegalStateException,IOException'
177 ThrowingNewInstanceOfSameException:
179 TooGenericExceptionCaught:
182 - ArrayIndexOutOfBoundsException
185 - IllegalMonitorStateException
186 - NullPointerException
187 - IndexOutOfBoundsException
190 TooGenericExceptionThrown:
220 continuationIndentSize: 4
227 NoBlankLineBeforeRbrace:
230 NoConsecutiveBlankLines:
236 NoItParamInMultilineLambda:
238 NoLineBreakAfterElse:
241 NoLineBreakBeforeAssignment:
262 ParameterListWrapping:
275 SpacingAroundKeyword:
278 SpacingAroundOperators:
281 SpacingAroundRangeOperator:
292 classPattern: '[A-Z$][a-zA-Z0-9$]*'
295 enumEntryPattern: '^[A-Z][_a-zA-Z0-9]*'
301 maximumFunctionNameLength: 30
304 minimumFunctionNameLength: 3
307 functionPattern: '^([a-z$][a-zA-Z$0-9]*)|(`.*`)$'
308 excludeClassPattern: '$^'
309 MatchingDeclarationName:
311 MemberNameEqualsClassName:
313 ignoreOverriddenFunction: true
314 ObjectPropertyNaming:
316 propertyPattern: '[A-Za-z][_A-Za-z0-9]*'
317 constantPattern: '[A-Za-z][_A-Za-z0-9]*'
320 packagePattern: '^[a-z]+(\.[a-z][a-z0-9]*)*$'
321 TopLevelPropertyNaming:
323 constantPattern: '[A-Z][_A-Z0-9]*'
324 propertyPattern: '[A-Za-z][_A-Za-z0-9]*'
325 privatePropertyPattern: '(_)?[A-Za-z][A-Za-z0-9]*'
328 maximumVariableNameLength: 64
331 minimumVariableNameLength: 1
334 variablePattern: '[a-z][A-Za-z0-9]*'
335 privateVariablePattern: '(_)?[a-z][A-Za-z0-9]*'
336 excludeClassPattern: '$^'
344 UnnecessaryTemporaryInstantiation:
349 DuplicateCaseInWhenExpression:
351 EqualsAlwaysReturnsTrueOrFalse:
353 EqualsWithHashCodeExist:
355 ExplicitGarbageCollectionCall:
359 IteratorHasNextCallsNextMethod:
361 IteratorNotThrowingNoSuchElementException:
365 excludeAnnotatedProperties: ""
366 ignoreOnClassesPattern: ""
367 UnconditionalJumpStatementInLoop:
371 UnsafeCallOnNullableType:
375 UselessPostfixExpression:
377 WrongEqualsTypeParameter:
382 CollapsibleIfStatements:
384 DataClassContainsFunctions:
386 conversionFunctionPrefix: 'to'
389 ExpressionBodySyntax:
393 values: 'TODO:,FIXME:,STOPSHIP:'
397 FunctionOnlyReturningConstant:
399 ignoreOverridableFunction: true
400 excludedFunctions: 'describeContents'
401 LoopWithTooManyJumpStatements:
406 ignoreNumbers: '-1,0,1,2'
407 ignoreHashCodeFunction: false
408 ignorePropertyDeclaration: false
409 ignoreConstantDeclaration: true
410 ignoreCompanionObjectPropertyDeclaration: true
411 ignoreAnnotation: false
412 ignoreNamedArgument: true
417 excludePackageStatements: false
418 excludeImportStatements: false
419 excludeCommentStatements: false
424 NestedClassesVisibility:
430 OptionalAbstractKeyword:
436 ProtectedMemberInFinalClass:
438 RedundantVisibilityModifierRule:
443 excludedFunctions: "equals"
446 SerialVersionUIDInSerializableClass:
448 SpacingBetweenPackageAndImports:
455 UnnecessaryAbstractClass:
457 UnnecessaryInheritance:
459 UnnecessaryParentheses:
461 UntilInsteadOfRangeTo:
467 allowedNames: "(_.*|ignored|expected)"
470 excludeAnnotatedClasses: ""
471 UtilityClassWithPublicConstructor:
475 excludeImports: 'java.util.*,kotlinx.android.synthetic.*'
479 SuboptimalLoggerUsage: