596 lines
13 KiB
YAML
596 lines
13 KiB
YAML
build:
|
|
maxIssues: 0
|
|
excludeCorrectable: false
|
|
weights:
|
|
complexity: 2
|
|
LongParameterList: 1
|
|
style: 1
|
|
comments: 1
|
|
|
|
config:
|
|
validation: true
|
|
warningsAsErrors: false
|
|
checkExhaustiveness: false
|
|
|
|
processors:
|
|
active: true
|
|
|
|
console-reports:
|
|
active: true
|
|
|
|
output-reports:
|
|
active: true
|
|
|
|
comments:
|
|
active: true
|
|
AbsentOrWrongFileLicense:
|
|
active: false
|
|
CommentOverPrivateFunction:
|
|
active: false
|
|
CommentOverPrivateProperty:
|
|
active: false
|
|
DeprecatedBlockTag:
|
|
active: false
|
|
EndOfSentenceFormat:
|
|
active: false
|
|
OutdatedDocumentation:
|
|
active: false
|
|
UndocumentedPublicClass:
|
|
active: false
|
|
UndocumentedPublicFunction:
|
|
active: false
|
|
UndocumentedPublicProperty:
|
|
active: false
|
|
|
|
complexity:
|
|
active: true
|
|
ComplexCondition:
|
|
active: true
|
|
threshold: 4
|
|
ComplexInterface:
|
|
active: false
|
|
CyclomaticComplexMethod:
|
|
active: true
|
|
threshold: 15
|
|
ignoreSingleWhenExpression: false
|
|
ignoreSimpleWhenEntries: false
|
|
ignoreNestingFunctions: false
|
|
LabeledExpression:
|
|
active: false
|
|
LargeClass:
|
|
active: true
|
|
threshold: 600
|
|
LongMethod:
|
|
active: true
|
|
threshold: 60
|
|
LongParameterList:
|
|
active: true
|
|
functionThreshold: 6
|
|
constructorThreshold: 7
|
|
ignoreDefaultParameters: false
|
|
ignoreDataClasses: true
|
|
ignoreAnnotatedParameter: []
|
|
MethodOverloading:
|
|
active: false
|
|
NamedArguments:
|
|
active: false
|
|
NestedBlockDepth:
|
|
active: true
|
|
threshold: 4
|
|
ReplaceSafeCallChainWithRun:
|
|
active: false
|
|
StringLiteralDuplication:
|
|
active: false
|
|
TooManyFunctions:
|
|
active: true
|
|
thresholdInFiles: 20
|
|
thresholdInClasses: 20
|
|
thresholdInInterfaces: 20
|
|
thresholdInObjects: 20
|
|
thresholdInEnums: 20
|
|
ignoreDeprecated: false
|
|
ignorePrivate: false
|
|
ignoreOverridden: false
|
|
|
|
coroutines:
|
|
active: true
|
|
GlobalCoroutineUsage:
|
|
active: false
|
|
InjectDispatcher:
|
|
active: false
|
|
RedundantSuspendModifier:
|
|
active: true
|
|
SleepInsteadOfDelay:
|
|
active: true
|
|
SuspendFunSwallowedCancellation:
|
|
active: false
|
|
SuspendFunWithCoroutineScopeReceiver:
|
|
active: false
|
|
SuspendFunWithFlowReturnType:
|
|
active: true
|
|
|
|
empty-blocks:
|
|
active: true
|
|
EmptyCatchBlock:
|
|
active: true
|
|
allowedExceptionNameRegex: '_|(ignore|expected).*'
|
|
EmptyClassBlock:
|
|
active: true
|
|
EmptyDefaultConstructor:
|
|
active: true
|
|
EmptyDoWhileBlock:
|
|
active: true
|
|
EmptyElseBlock:
|
|
active: true
|
|
EmptyFinallyBlock:
|
|
active: true
|
|
EmptyForBlock:
|
|
active: true
|
|
EmptyFunctionBlock:
|
|
active: true
|
|
ignoreOverridden: false
|
|
EmptyIfBlock:
|
|
active: true
|
|
EmptyInitBlock:
|
|
active: true
|
|
EmptyKtFile:
|
|
active: true
|
|
EmptySecondaryConstructor:
|
|
active: true
|
|
EmptyTryBlock:
|
|
active: true
|
|
EmptyWhenBlock:
|
|
active: true
|
|
EmptyWhileBlock:
|
|
active: true
|
|
|
|
exceptions:
|
|
active: true
|
|
ExceptionRaisedInUnexpectedLocation:
|
|
active: true
|
|
methodNames:
|
|
- 'equals'
|
|
- 'finalize'
|
|
- 'hashCode'
|
|
- 'toString'
|
|
InstanceOfCheckForException:
|
|
active: true
|
|
NotImplementedDeclaration:
|
|
active: false
|
|
ObjectExtendsThrowable:
|
|
active: false
|
|
PrintStackTrace:
|
|
active: true
|
|
RethrowCaughtException:
|
|
active: true
|
|
ReturnFromFinally:
|
|
active: true
|
|
ignoreLabeled: false
|
|
SwallowedException:
|
|
active: true
|
|
ignoredExceptionTypes:
|
|
- 'InterruptedException'
|
|
- 'MalformedURLException'
|
|
- 'NumberFormatException'
|
|
- 'ParseException'
|
|
allowedExceptionNameRegex: '_|(ignore|expected).*'
|
|
ThrowingExceptionFromFinally:
|
|
active: true
|
|
ThrowingExceptionInMain:
|
|
active: false
|
|
ThrowingExceptionsWithoutMessageOrCause:
|
|
active: true
|
|
exceptions:
|
|
- 'ArrayIndexOutOfBoundsException'
|
|
- 'Exception'
|
|
- 'IllegalArgumentException'
|
|
- 'IllegalMonitorStateException'
|
|
- 'IllegalStateException'
|
|
- 'IndexOutOfBoundsException'
|
|
- 'NullPointerException'
|
|
- 'RuntimeException'
|
|
- 'Throwable'
|
|
ThrowingNewInstanceOfSameException:
|
|
active: true
|
|
TooGenericExceptionCaught:
|
|
active: true
|
|
exceptionNames:
|
|
- 'ArrayIndexOutOfBoundsException'
|
|
- 'Error'
|
|
- 'Exception'
|
|
- 'IllegalMonitorStateException'
|
|
- 'IndexOutOfBoundsException'
|
|
- 'NullPointerException'
|
|
- 'RuntimeException'
|
|
- 'Throwable'
|
|
allowedExceptionNameRegex: '_|(ignore|expected).*'
|
|
TooGenericExceptionThrown:
|
|
active: true
|
|
exceptionNames:
|
|
- 'Error'
|
|
- 'Exception'
|
|
- 'RuntimeException'
|
|
- 'Throwable'
|
|
|
|
naming:
|
|
active: true
|
|
BooleanPropertyNaming:
|
|
active: false
|
|
ClassNaming:
|
|
active: true
|
|
classPattern: '[A-Z][a-zA-Z0-9]*'
|
|
ConstructorParameterNaming:
|
|
active: true
|
|
parameterPattern: '[a-z][A-Za-z0-9]*'
|
|
privateParameterPattern: '[a-z][A-Za-z0-9]*'
|
|
excludeClassPattern: '$^'
|
|
EnumNaming:
|
|
active: true
|
|
enumEntryPattern: '[A-Z][_a-zA-Z0-9]*'
|
|
ForbiddenClassName:
|
|
active: false
|
|
FunctionMaxLength:
|
|
active: false
|
|
FunctionMinLength:
|
|
active: false
|
|
FunctionNaming:
|
|
active: true
|
|
excludeClassPattern: '$^'
|
|
functionPattern: '[a-z][a-zA-Z0-9]*'
|
|
excludeAnnotatedFunction: ['Composable']
|
|
ignoreAnnotated: ['Test']
|
|
FunctionParameterNaming:
|
|
active: true
|
|
parameterPattern: '[a-z][A-Za-z0-9]*'
|
|
InvalidPackageDeclaration:
|
|
active: true
|
|
rootPackage: ''
|
|
LambdaParameterNaming:
|
|
active: false
|
|
MatchingDeclarationName:
|
|
active: true
|
|
mustBeFirst: true
|
|
MemberNameEqualsClassName:
|
|
active: true
|
|
ignoreOverridden: true
|
|
NoNameShadowing:
|
|
active: true
|
|
NonBooleanPropertyPrefixedWithIs:
|
|
active: false
|
|
ObjectPropertyNaming:
|
|
active: true
|
|
constantPattern: '[A-Za-z][_A-Za-z0-9]*'
|
|
propertyPattern: '[A-Za-z][_A-Za-z0-9]*'
|
|
privatePropertyPattern: '(_)?[A-Za-z][_A-Za-z0-9]*'
|
|
PackageNaming:
|
|
active: true
|
|
packagePattern: '[a-z]+(\.[a-z][A-Za-z0-9]*)*'
|
|
TopLevelPropertyNaming:
|
|
active: true
|
|
constantPattern: '[A-Z][_A-Z0-9]*'
|
|
propertyPattern: '[A-Za-z][_A-Za-z0-9]*'
|
|
privatePropertyPattern: '_?[A-Za-z][_A-Za-z0-9]*'
|
|
VariableMaxLength:
|
|
active: false
|
|
VariableMinLength:
|
|
active: false
|
|
VariableNaming:
|
|
active: true
|
|
variablePattern: '[a-z][A-Za-z0-9]*'
|
|
privateVariablePattern: '(_)?[a-z][A-Za-z0-9]*'
|
|
excludeClassPattern: '$^'
|
|
|
|
performance:
|
|
active: true
|
|
ArrayPrimitive:
|
|
active: true
|
|
CouldBeSequence:
|
|
active: false
|
|
ForEachOnRange:
|
|
active: true
|
|
SpreadOperator:
|
|
active: false
|
|
UnnecessaryPartOfBinaryExpression:
|
|
active: false
|
|
UnnecessaryTemporaryInstantiation:
|
|
active: true
|
|
|
|
potential-bugs:
|
|
active: true
|
|
AvoidReferentialEquality:
|
|
active: true
|
|
forbiddenTypePatterns:
|
|
- 'kotlin.String'
|
|
CastNullableToNonNullableType:
|
|
active: false
|
|
CastToNullableType:
|
|
active: false
|
|
Deprecation:
|
|
active: false
|
|
DontDowncastCollectionTypes:
|
|
active: false
|
|
DoubleMutabilityForCollection:
|
|
active: true
|
|
ElseCaseInsteadOfExhaustiveWhen:
|
|
active: false
|
|
EqualsAlwaysReturnsTrueOrFalse:
|
|
active: true
|
|
EqualsWithHashCodeExist:
|
|
active: true
|
|
ExitOutsideMain:
|
|
active: false
|
|
ExplicitGarbageCollectionCall:
|
|
active: true
|
|
HasPlatformType:
|
|
active: true
|
|
IgnoredReturnValue:
|
|
active: true
|
|
ImplicitDefaultLocale:
|
|
active: true
|
|
ImplicitUnitReturnType:
|
|
active: false
|
|
InvalidRange:
|
|
active: true
|
|
IteratorHasNextCallsNextMethod:
|
|
active: true
|
|
IteratorNotThrowingNoSuchElementException:
|
|
active: true
|
|
LateinitUsage:
|
|
active: false
|
|
MapGetWithNotNullAssertionOperator:
|
|
active: true
|
|
MissingPackageDeclaration:
|
|
active: false
|
|
NullCheckOnMutableProperty:
|
|
active: false
|
|
NullableToStringCall:
|
|
active: false
|
|
UnconditionalJumpStatementInLoop:
|
|
active: false
|
|
UnnecessaryNotNullCheck:
|
|
active: false
|
|
UnnecessaryNotNullOperator:
|
|
active: true
|
|
UnnecessarySafeCall:
|
|
active: true
|
|
UnreachableCatchBlock:
|
|
active: true
|
|
UnreachableCode:
|
|
active: true
|
|
UnsafeCallOnNullableType:
|
|
active: true
|
|
UnsafeCast:
|
|
active: true
|
|
UnusedUnaryOperator:
|
|
active: true
|
|
UselessPostfixExpression:
|
|
active: true
|
|
WrongEqualsTypeParameter:
|
|
active: true
|
|
|
|
style:
|
|
active: true
|
|
AlsoCouldBeApply:
|
|
active: false
|
|
BracesOnIfStatements:
|
|
active: false
|
|
BracesOnWhenStatements:
|
|
active: false
|
|
CanBeNonNullable:
|
|
active: false
|
|
CascadingCallWrapping:
|
|
active: false
|
|
ClassOrdering:
|
|
active: false
|
|
CollapsibleIfStatements:
|
|
active: false
|
|
DataClassContainsFunctions:
|
|
active: false
|
|
DataClassShouldBeImmutable:
|
|
active: false
|
|
DestructuringDeclarationWithTooManyEntries:
|
|
active: true
|
|
maxDestructuringEntries: 3
|
|
DoubleNegativeLambda:
|
|
active: false
|
|
EqualsNullCall:
|
|
active: true
|
|
EqualsOnSignatureLine:
|
|
active: false
|
|
ExplicitCollectionElementAccessMethod:
|
|
active: false
|
|
ExplicitItLambdaParameter:
|
|
active: false
|
|
ExpressionBodySyntax:
|
|
active: false
|
|
ForbiddenAnnotation:
|
|
active: false
|
|
ForbiddenComment:
|
|
active: true
|
|
values:
|
|
- 'FIXME:'
|
|
- 'STOPSHIP:'
|
|
- 'TODO:'
|
|
allowedPatterns: ''
|
|
ForbiddenImport:
|
|
active: false
|
|
ForbiddenMethodCall:
|
|
active: false
|
|
ForbiddenSuppress:
|
|
active: false
|
|
ForbiddenVoid:
|
|
active: true
|
|
ignoreOverridden: false
|
|
ignoreUsageInGenerics: false
|
|
FunctionOnlyReturningConstant:
|
|
active: true
|
|
ignoreOverridableFunction: true
|
|
ignoreActualFunction: true
|
|
excludedFunctions: []
|
|
LoopWithTooManyJumpStatements:
|
|
active: true
|
|
maxJumpCount: 1
|
|
MagicNumber:
|
|
active: true
|
|
excludes:
|
|
- '**/test/**'
|
|
- '**/androidTest/**'
|
|
- '**/commonTest/**'
|
|
- '**/jvmTest/**'
|
|
- '**/jsTest/**'
|
|
- '**/iosTest/**'
|
|
ignoreNumbers:
|
|
- '-1'
|
|
- '0'
|
|
- '1'
|
|
- '2'
|
|
ignoreHashCodeFunction: true
|
|
ignorePropertyDeclaration: false
|
|
ignoreLocalVariableDeclaration: false
|
|
ignoreConstantDeclaration: true
|
|
ignoreCompanionObjectPropertyDeclaration: true
|
|
ignoreAnnotation: false
|
|
ignoreNamedArgument: true
|
|
ignoreEnums: false
|
|
ignoreRanges: false
|
|
ignoreExtensionFunctions: true
|
|
MandatoryBracesLoops:
|
|
active: false
|
|
MaxChainedCallsOnSameLine:
|
|
active: false
|
|
MaxLineLength:
|
|
active: true
|
|
maxLineLength: 120
|
|
excludePackageStatements: true
|
|
excludeImportStatements: true
|
|
excludeCommentStatements: false
|
|
MayBeConst:
|
|
active: true
|
|
ModifierOrder:
|
|
active: true
|
|
MultilineLambdaItParameter:
|
|
active: false
|
|
MultilineRawStringIndentation:
|
|
active: false
|
|
NestedClassesVisibility:
|
|
active: true
|
|
NewLineAtEndOfFile:
|
|
active: true
|
|
NoTabs:
|
|
active: false
|
|
NullableBooleanCheck:
|
|
active: false
|
|
ObjectLiteralToLambda:
|
|
active: true
|
|
OptionalAbstractKeyword:
|
|
active: true
|
|
OptionalUnit:
|
|
active: false
|
|
PreferToOverPairSyntax:
|
|
active: false
|
|
ProtectedMemberInFinalClass:
|
|
active: true
|
|
RedundantExplicitType:
|
|
active: false
|
|
RedundantHigherOrderMapUsage:
|
|
active: true
|
|
RedundantVisibilityModifierRule:
|
|
active: false
|
|
ReturnCount:
|
|
active: true
|
|
max: 2
|
|
excludedFunctions:
|
|
- 'equals'
|
|
excludeLabeled: false
|
|
excludeReturnFromLambda: true
|
|
excludeGuardClauses: false
|
|
SafeCast:
|
|
active: true
|
|
SerialVersionUIDInSerializableClass:
|
|
active: true
|
|
SpacingBetweenPackageAndImports:
|
|
active: false
|
|
StringShouldBeRawString:
|
|
active: false
|
|
ThrowsCount:
|
|
active: true
|
|
max: 2
|
|
excludeGuardClauses: false
|
|
TrailingWhitespace:
|
|
active: false
|
|
TrimMultilineRawString:
|
|
active: false
|
|
UnderscoresInNumericLiterals:
|
|
active: false
|
|
UnnecessaryAbstractClass:
|
|
active: true
|
|
UnnecessaryAnnotationUseSiteTarget:
|
|
active: false
|
|
UnnecessaryApply:
|
|
active: true
|
|
UnnecessaryBackticks:
|
|
active: false
|
|
UnnecessaryBracesAroundTrailingLambda:
|
|
active: false
|
|
UnnecessaryFilter:
|
|
active: true
|
|
UnnecessaryInheritance:
|
|
active: true
|
|
UnnecessaryInnerClass:
|
|
active: false
|
|
UnnecessaryLet:
|
|
active: false
|
|
UnnecessaryParentheses:
|
|
active: false
|
|
UntilInsteadOfRangeTo:
|
|
active: false
|
|
UnusedImports:
|
|
active: false
|
|
UnusedParameter:
|
|
active: true
|
|
allowedNames: 'ignored|expected'
|
|
UnusedPrivateClass:
|
|
active: true
|
|
UnusedPrivateMember:
|
|
active: true
|
|
allowedNames: ''
|
|
UnusedPrivateProperty:
|
|
active: true
|
|
allowedNames: '_|ignored|expected|serialVersionUID'
|
|
UseAnyOrNoneInsteadOfFind:
|
|
active: true
|
|
UseArrayLiteralsInAnnotations:
|
|
active: true
|
|
UseCheckNotNull:
|
|
active: true
|
|
UseCheckOrError:
|
|
active: true
|
|
UseDataClass:
|
|
active: false
|
|
UseEmptyCounterpart:
|
|
active: false
|
|
UseIfEmptyOrIfBlank:
|
|
active: false
|
|
UseIfInsteadOfWhen:
|
|
active: false
|
|
UseIsNullOrEmpty:
|
|
active: true
|
|
UseOrEmpty:
|
|
active: true
|
|
UseRequire:
|
|
active: true
|
|
UseRequireNotNull:
|
|
active: true
|
|
UseSumOfInsteadOfFlatMapSize:
|
|
active: false
|
|
UselessCallOnNotNull:
|
|
active: true
|
|
UtilityClassWithPublicConstructor:
|
|
active: true
|
|
VarCouldBeVal:
|
|
active: true
|
|
WildcardImport:
|
|
active: true
|
|
excludeImports:
|
|
- 'java.util.*'
|