habitica-android/detekt.yml

799 lines
20 KiB
YAML
Raw Permalink Normal View History

2017-10-03 13:19:05 +00:00
build:
2021-09-14 12:53:55 +00:00
maxIssues: 0
excludeCorrectable: false
2017-10-03 13:19:05 +00:00
weights:
2021-09-14 12:53:55 +00:00
# complexity: 2
# LongParameterList: 1
# style: 1
# comments: 1
config:
validation: true
warningsAsErrors: false
# when writing own rules with new properties, exclude the property path e.g.: 'my_rule_set,.*>.*>[my_property]'
excludes: ''
2017-10-03 13:19:05 +00:00
processors:
active: true
exclude:
2021-09-14 12:53:55 +00:00
- 'DetektProgressListener'
# - 'KtFileCountProcessor'
# - 'PackageCountProcessor'
# - 'ClassCountProcessor'
2017-10-03 13:19:05 +00:00
# - 'FunctionCountProcessor'
# - 'PropertyCountProcessor'
2021-09-14 12:53:55 +00:00
# - 'ProjectComplexityProcessor'
# - 'ProjectCognitiveComplexityProcessor'
# - 'ProjectLLOCProcessor'
# - 'ProjectCLOCProcessor'
# - 'ProjectLOCProcessor'
# - 'ProjectSLOCProcessor'
# - 'LicenseHeaderLoaderExtension'
2017-10-03 13:19:05 +00:00
console-reports:
active: true
exclude:
2021-09-14 12:53:55 +00:00
# - 'ProjectStatisticsReport'
# - 'ComplexityReport'
# - 'NotificationReport'
2017-10-03 13:19:05 +00:00
# - 'FindingsReport'
2021-09-14 12:53:55 +00:00
- 'FileBasedFindingsReport'
2017-10-03 13:19:05 +00:00
output-reports:
active: true
exclude:
2021-09-14 12:53:55 +00:00
# - 'TxtOutputReport'
# - 'XmlOutputReport'
# - 'HtmlOutputReport'
2017-10-03 13:19:05 +00:00
2021-09-14 12:53:55 +00:00
comments:
2017-10-03 13:19:05 +00:00
active: true
2021-09-14 12:53:55 +00:00
AbsentOrWrongFileLicense:
2017-10-03 13:19:05 +00:00
active: false
2021-09-14 12:53:55 +00:00
licenseTemplateFile: 'license.template'
licenseTemplateIsRegex: false
CommentOverPrivateFunction:
2017-10-03 13:19:05 +00:00
active: false
2021-09-14 12:53:55 +00:00
CommentOverPrivateProperty:
2017-10-03 13:19:05 +00:00
active: false
2021-09-14 12:53:55 +00:00
DeprecatedBlockTag:
active: false
EndOfSentenceFormat:
active: false
endOfSentenceFormat: '([.?!][ \t\n\r\f<])|([.?!:]$)'
UndocumentedPublicClass:
2017-10-03 13:19:05 +00:00
active: false
2021-09-14 12:53:55 +00:00
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
searchInNestedClass: true
searchInInnerClass: true
searchInInnerObject: true
searchInInnerInterface: true
UndocumentedPublicFunction:
active: false
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
UndocumentedPublicProperty:
active: false
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
2017-10-03 13:19:05 +00:00
2021-09-14 12:53:55 +00:00
complexity:
2017-10-03 13:19:05 +00:00
active: true
2021-09-14 12:53:55 +00:00
ComplexCondition:
2017-10-03 13:19:05 +00:00
active: true
2021-09-14 12:53:55 +00:00
threshold: 4
excludes: ['**helpers/DeviceName.kt', '**/utils/**.kt']
ComplexInterface:
2017-10-03 13:19:05 +00:00
active: false
2021-09-14 12:53:55 +00:00
threshold: 10
includeStaticDeclarations: false
includePrivateDeclarations: false
ComplexMethod:
active: true
threshold: 20
ignoreSingleWhenExpression: false
ignoreSimpleWhenEntries: false
ignoreNestingFunctions: false
nestingFunctions:
- 'also'
- 'apply'
- 'forEach'
- 'isNotNull'
- 'ifNull'
- 'let'
- 'run'
- 'use'
- 'with'
LabeledExpression:
2017-10-03 13:19:05 +00:00
active: false
2021-09-14 12:53:55 +00:00
ignoredLabels: []
LargeClass:
2017-10-03 13:19:05 +00:00
active: true
2021-09-14 12:53:55 +00:00
threshold: 600
LongMethod:
2017-10-03 13:19:05 +00:00
active: true
2021-09-14 12:53:55 +00:00
threshold: 80
ignoreAnnotated: []
LongParameterList:
active: true
functionThreshold: 6
constructorThreshold: 7
2023-02-13 13:24:37 +00:00
ignoreDefaultParameters: true
2021-09-14 12:53:55 +00:00
ignoreDataClasses: true
ignoreAnnotated: []
MethodOverloading:
2017-10-03 13:19:05 +00:00
active: false
2021-09-14 12:53:55 +00:00
threshold: 6
NamedArguments:
2017-10-03 13:19:05 +00:00
active: false
2021-09-14 12:53:55 +00:00
threshold: 3
NestedBlockDepth:
active: true
threshold: 4
ReplaceSafeCallChainWithRun:
2017-10-03 13:19:05 +00:00
active: false
2021-09-14 12:53:55 +00:00
StringLiteralDuplication:
2017-10-03 13:19:05 +00:00
active: false
2021-09-14 12:53:55 +00:00
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
threshold: 6
ignoreAnnotation: true
excludeStringsWithLessThan5Characters: true
ignoreStringsRegex: '$^'
TooManyFunctions:
active: true
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
thresholdInFiles: 40
thresholdInClasses: 40
thresholdInInterfaces: 40
thresholdInObjects: 40
thresholdInEnums: 40
ignoreDeprecated: false
ignorePrivate: false
ignoreOverridden: false
coroutines:
active: true
GlobalCoroutineUsage:
2017-10-03 13:19:05 +00:00
active: false
2021-09-14 12:53:55 +00:00
RedundantSuspendModifier:
2017-10-03 13:19:05 +00:00
active: false
2021-09-14 12:53:55 +00:00
SleepInsteadOfDelay:
2017-10-03 13:19:05 +00:00
active: false
2021-09-14 12:53:55 +00:00
SuspendFunWithFlowReturnType:
2017-10-03 13:19:05 +00:00
active: false
empty-blocks:
active: true
EmptyCatchBlock:
active: true
2021-09-14 12:53:55 +00:00
allowedExceptionNameRegex: '_|(ignore|expected).*'
2017-10-03 13:19:05 +00:00
EmptyClassBlock:
active: true
EmptyDefaultConstructor:
active: true
EmptyDoWhileBlock:
active: true
EmptyElseBlock:
active: true
EmptyFinallyBlock:
active: true
EmptyForBlock:
active: true
EmptyFunctionBlock:
active: true
2021-09-14 12:53:55 +00:00
ignoreOverridden: false
2017-10-03 13:19:05 +00:00
EmptyIfBlock:
active: true
EmptyInitBlock:
active: true
2021-09-14 12:53:55 +00:00
EmptyKtFile:
active: true
2017-10-03 13:19:05 +00:00
EmptySecondaryConstructor:
active: true
2021-09-14 12:53:55 +00:00
EmptyTryBlock:
active: true
2017-10-03 13:19:05 +00:00
EmptyWhenBlock:
active: true
EmptyWhileBlock:
active: true
2021-09-14 12:53:55 +00:00
exceptions:
2017-10-03 13:19:05 +00:00
active: true
2021-09-14 12:53:55 +00:00
ExceptionRaisedInUnexpectedLocation:
active: true
methodNames:
- 'equals'
- 'finalize'
- 'hashCode'
- 'toString'
InstanceOfCheckForException:
2017-10-03 13:19:05 +00:00
active: false
2021-09-14 12:53:55 +00:00
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
NotImplementedDeclaration:
active: false
ObjectExtendsThrowable:
active: false
PrintStackTrace:
2017-10-03 13:19:05 +00:00
active: true
2021-09-14 12:53:55 +00:00
RethrowCaughtException:
active: true
ReturnFromFinally:
active: true
ignoreLabeled: false
SwallowedException:
active: false
ignoredExceptionTypes:
- 'InterruptedException'
- 'MalformedURLException'
- 'NumberFormatException'
- 'ParseException'
allowedExceptionNameRegex: '_|(ignore|expected).*'
ThrowingExceptionFromFinally:
active: true
ThrowingExceptionInMain:
active: false
ThrowingExceptionsWithoutMessageOrCause:
active: true
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
exceptions:
- 'ArrayIndexOutOfBoundsException'
- 'Exception'
- 'IllegalArgumentException'
- 'IllegalMonitorStateException'
- 'IllegalStateException'
- 'IndexOutOfBoundsException'
- 'NullPointerException'
- 'RuntimeException'
- 'Throwable'
ThrowingNewInstanceOfSameException:
active: true
TooGenericExceptionCaught:
active: true
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
exceptionNames:
- 'ArrayIndexOutOfBoundsException'
- 'Error'
- 'Exception'
- 'IllegalMonitorStateException'
- 'IndexOutOfBoundsException'
- 'NullPointerException'
- 'RuntimeException'
- 'Throwable'
allowedExceptionNameRegex: '_|(ignore|expected).*'
TooGenericExceptionThrown:
active: true
exceptionNames:
- 'Error'
- 'Exception'
- 'RuntimeException'
- 'Throwable'
2017-10-03 13:19:05 +00:00
formatting:
active: true
2021-09-14 12:53:55 +00:00
android: false
autoCorrect: true
AnnotationOnSeparateLine:
active: false
autoCorrect: true
AnnotationSpacing:
active: false
autoCorrect: true
ArgumentListWrapping:
active: false
autoCorrect: true
indentSize: 4
maxLineLength: 120
ChainWrapping:
active: true
autoCorrect: true
CommentSpacing:
active: true
autoCorrect: true
EnumEntryNameCase:
active: false
autoCorrect: true
Filename:
active: true
FinalNewline:
active: true
autoCorrect: true
insertFinalNewLine: true
ImportOrdering:
active: false
autoCorrect: true
layout: '*,java.**,javax.**,kotlin.**,^'
2017-10-03 13:19:05 +00:00
Indentation:
active: false
2021-09-14 12:53:55 +00:00
autoCorrect: true
2017-10-03 13:19:05 +00:00
indentSize: 4
2021-09-14 12:53:55 +00:00
continuationIndentSize: 4
MaximumLineLength:
active: false
maxLineLength: 120
ignoreBackTickedIdentifier: false
ModifierOrdering:
active: true
autoCorrect: true
MultiLineIfElse:
2017-10-03 13:19:05 +00:00
active: true
autoCorrect: true
2021-09-14 12:53:55 +00:00
NoBlankLineBeforeRbrace:
2017-10-03 13:19:05 +00:00
active: true
autoCorrect: true
2021-09-14 12:53:55 +00:00
NoConsecutiveBlankLines:
2017-10-03 13:19:05 +00:00
active: true
autoCorrect: true
2021-09-14 12:53:55 +00:00
NoEmptyClassBody:
2017-10-03 13:19:05 +00:00
active: true
autoCorrect: true
2021-09-14 12:53:55 +00:00
NoEmptyFirstLineInMethodBlock:
active: false
autoCorrect: true
NoLineBreakAfterElse:
active: true
autoCorrect: true
NoLineBreakBeforeAssignment:
active: true
autoCorrect: true
NoMultipleSpaces:
active: true
autoCorrect: true
NoSemicolons:
active: true
autoCorrect: true
NoTrailingSpaces:
active: true
autoCorrect: true
NoUnitReturn:
active: true
autoCorrect: true
NoUnusedImports:
active: true
autoCorrect: true
NoWildcardImports:
active: true
PackageName:
active: true
autoCorrect: true
ParameterListWrapping:
active: true
autoCorrect: true
indentSize: 4
maxLineLength: 120
SpacingAroundAngleBrackets:
active: false
autoCorrect: true
2017-10-03 13:19:05 +00:00
SpacingAroundColon:
active: true
autoCorrect: true
2021-09-14 12:53:55 +00:00
SpacingAroundComma:
2017-10-03 13:19:05 +00:00
active: true
autoCorrect: true
2021-09-14 12:53:55 +00:00
SpacingAroundCurly:
2017-10-03 13:19:05 +00:00
active: true
autoCorrect: true
2021-09-14 12:53:55 +00:00
SpacingAroundDot:
2017-10-03 13:19:05 +00:00
active: true
autoCorrect: true
2021-09-14 12:53:55 +00:00
SpacingAroundDoubleColon:
active: false
autoCorrect: true
SpacingAroundKeyword:
2017-10-03 13:19:05 +00:00
active: true
autoCorrect: true
2021-09-14 12:53:55 +00:00
SpacingAroundOperators:
2017-10-03 13:19:05 +00:00
active: true
autoCorrect: true
2021-09-14 12:53:55 +00:00
SpacingAroundParens:
2017-10-03 13:19:05 +00:00
active: true
autoCorrect: true
2021-09-14 12:53:55 +00:00
SpacingAroundRangeOperator:
active: true
autoCorrect: true
SpacingAroundUnaryOperator:
2017-10-03 13:19:05 +00:00
active: false
2018-07-25 13:19:14 +00:00
autoCorrect: true
2021-09-14 12:53:55 +00:00
SpacingBetweenDeclarationsWithAnnotations:
2017-10-03 13:19:05 +00:00
active: false
2018-07-25 13:19:14 +00:00
autoCorrect: true
2021-09-14 12:53:55 +00:00
SpacingBetweenDeclarationsWithComments:
active: false
autoCorrect: true
StringTemplate:
2017-10-03 13:19:05 +00:00
active: true
2018-07-25 13:19:14 +00:00
autoCorrect: true
2017-10-03 13:19:05 +00:00
2021-09-14 12:53:55 +00:00
naming:
2017-10-03 13:19:05 +00:00
active: true
2021-09-14 12:53:55 +00:00
BooleanPropertyNaming:
active: false
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
allowedPattern: '^(is|has|are)'
ClassNaming:
2017-10-03 13:19:05 +00:00
active: true
2021-09-14 12:53:55 +00:00
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
classPattern: '[A-Z][a-zA-Z0-9]*'
ConstructorParameterNaming:
active: true
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
parameterPattern: '[a-z][A-Za-z0-9]*'
privateParameterPattern: '[a-z][A-Za-z0-9]*'
excludeClassPattern: '$^'
ignoreOverridden: true
EnumNaming:
active: true
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
enumEntryPattern: '[A-Z][_a-zA-Z0-9]*'
ForbiddenClassName:
2017-10-03 13:19:05 +00:00
active: false
2021-09-14 12:53:55 +00:00
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
forbiddenName: []
FunctionMaxLength:
active: false
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
maximumFunctionNameLength: 30
FunctionMinLength:
active: false
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
minimumFunctionNameLength: 3
FunctionNaming:
2017-10-03 13:19:05 +00:00
active: true
2021-09-14 12:53:55 +00:00
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
functionPattern: '([a-z][a-zA-Z0-9]*)|(`.*`)'
excludeClassPattern: '$^'
ignoreOverridden: true
ignoreAnnotated:
- 'Composable'
FunctionParameterNaming:
active: true
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
parameterPattern: '[a-z][A-Za-z0-9]*'
excludeClassPattern: '$^'
ignoreOverridden: true
InvalidPackageDeclaration:
active: false
excludes: ['**/*.kts']
rootPackage: ''
MatchingDeclarationName:
active: true
mustBeFirst: true
MemberNameEqualsClassName:
active: true
ignoreOverridden: true
NoNameShadowing:
active: false
NonBooleanPropertyPrefixedWithIs:
active: false
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
ObjectPropertyNaming:
active: true
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
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
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
packagePattern: '[a-z]+(\.[a-z][A-Za-z0-9]*)*'
TopLevelPropertyNaming:
active: true
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
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
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
maximumVariableNameLength: 64
VariableMinLength:
active: false
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
minimumVariableNameLength: 1
VariableNaming:
active: true
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
variablePattern: '[a-z][A-Za-z0-9]*'
privateVariablePattern: '(_)?[a-z][A-Za-z0-9]*'
excludeClassPattern: '$^'
ignoreOverridden: true
performance:
active: true
ArrayPrimitive:
active: true
ForEachOnRange:
active: true
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
SpreadOperator:
active: true
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
UnnecessaryTemporaryInstantiation:
active: true
potential-bugs:
active: true
AvoidReferentialEquality:
active: false
forbiddenTypePatterns:
- 'kotlin.String'
CastToNullableType:
active: false
Deprecation:
active: false
DontDowncastCollectionTypes:
active: false
DoubleMutabilityForCollection:
active: false
DuplicateCaseInWhenExpression:
active: true
EqualsAlwaysReturnsTrueOrFalse:
active: true
EqualsWithHashCodeExist:
active: true
ExitOutsideMain:
active: false
ExplicitGarbageCollectionCall:
active: true
HasPlatformType:
active: false
IgnoredReturnValue:
active: false
restrictToAnnotatedMethods: true
returnValueAnnotations:
- '*.CheckResult'
- '*.CheckReturnValue'
ignoreReturnValueAnnotations:
- '*.CanIgnoreReturnValue'
ImplicitDefaultLocale:
active: true
ImplicitUnitReturnType:
active: false
allowExplicitReturnType: true
InvalidRange:
active: true
IteratorHasNextCallsNextMethod:
active: true
IteratorNotThrowingNoSuchElementException:
active: true
LateinitUsage:
active: false
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
ignoreOnClassesPattern: ''
MapGetWithNotNullAssertionOperator:
active: false
MissingWhenCase:
active: true
allowElseExpression: true
NullableToStringCall:
active: false
RedundantElseInWhen:
active: true
UnconditionalJumpStatementInLoop:
2017-10-03 13:19:05 +00:00
active: false
2021-09-14 12:53:55 +00:00
UnnecessaryNotNullOperator:
active: true
UnnecessarySafeCall:
active: true
UnreachableCatchBlock:
active: false
UnreachableCode:
active: true
UnsafeCallOnNullableType:
active: true
UnsafeCast:
active: true
UnusedUnaryOperator:
active: false
UselessPostfixExpression:
active: false
WrongEqualsTypeParameter:
active: true
style:
active: true
ClassOrdering:
active: false
CollapsibleIfStatements:
active: false
DataClassContainsFunctions:
active: false
conversionFunctionPrefix: 'to'
DataClassShouldBeImmutable:
active: false
DestructuringDeclarationWithTooManyEntries:
active: false
maxDestructuringEntries: 3
2017-10-03 13:19:05 +00:00
EqualsNullCall:
active: true
2021-09-14 12:53:55 +00:00
EqualsOnSignatureLine:
active: false
ExplicitCollectionElementAccessMethod:
active: false
ExplicitItLambdaParameter:
active: false
ExpressionBodySyntax:
active: false
includeLineWrapping: false
2017-10-03 13:19:05 +00:00
ForbiddenComment:
active: true
2021-09-14 12:53:55 +00:00
values:
- 'FIXME:'
- 'STOPSHIP:'
- 'TODO:'
allowedPatterns: ''
2017-10-03 13:19:05 +00:00
ForbiddenImport:
active: false
2021-09-14 12:53:55 +00:00
imports: []
forbiddenPatterns: ''
ForbiddenMethodCall:
2017-10-03 13:19:05 +00:00
active: false
2021-09-14 12:53:55 +00:00
methods:
- 'kotlin.io.print'
- 'kotlin.io.println'
ForbiddenPublicDataClass:
2017-10-03 13:19:05 +00:00
active: true
2021-09-14 12:53:55 +00:00
excludes: ['**']
ignorePackages:
- '*.internal'
- '*.internal.*'
ForbiddenVoid:
active: false
ignoreOverridden: false
ignoreUsageInGenerics: false
FunctionOnlyReturningConstant:
active: true
ignoreOverridableFunction: true
ignoreActualFunction: true
excludedFunctions: ''
2023-02-13 13:24:37 +00:00
ignoreAnnotated:
2021-09-14 12:53:55 +00:00
- 'dagger.Provides'
LibraryCodeMustSpecifyReturnType:
active: true
excludes: ['**']
LibraryEntitiesShouldNotBePublic:
active: true
excludes: ['**']
LoopWithTooManyJumpStatements:
active: true
maxJumpCount: 1
2017-10-03 13:19:05 +00:00
MagicNumber:
2018-07-25 13:19:14 +00:00
active: false
2021-09-14 12:53:55 +00:00
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
ignoreNumbers:
- '-1'
- '0'
- '1'
- '2'
ignoreHashCodeFunction: true
ignorePropertyDeclaration: false
ignoreLocalVariableDeclaration: false
ignoreConstantDeclaration: true
ignoreCompanionObjectPropertyDeclaration: true
2017-10-03 13:19:05 +00:00
ignoreAnnotation: false
2021-09-14 12:53:55 +00:00
ignoreNamedArgument: true
ignoreEnums: false
ignoreRanges: false
ignoreExtensionFunctions: true
MandatoryBracesIfStatements:
active: false
MandatoryBracesLoops:
2018-07-25 13:19:14 +00:00
active: false
2017-10-03 13:19:05 +00:00
MaxLineLength:
2018-07-25 13:19:14 +00:00
active: false
2017-10-03 13:19:05 +00:00
maxLineLength: 120
2021-09-14 12:53:55 +00:00
excludePackageStatements: true
excludeImportStatements: true
excludeCommentStatements: false
MayBeConst:
2017-10-03 13:19:05 +00:00
active: true
2021-09-14 12:53:55 +00:00
ModifierOrder:
2017-10-03 13:19:05 +00:00
active: true
2021-09-14 12:53:55 +00:00
MultilineLambdaItParameter:
active: false
NestedClassesVisibility:
2017-10-03 13:19:05 +00:00
active: true
2021-09-14 12:53:55 +00:00
NewLineAtEndOfFile:
2021-09-14 13:22:16 +00:00
active: false
2021-09-14 12:53:55 +00:00
NoTabs:
active: false
ObjectLiteralToLambda:
active: false
OptionalAbstractKeyword:
2017-10-03 13:19:05 +00:00
active: true
2021-09-14 12:53:55 +00:00
OptionalUnit:
active: false
OptionalWhenBraces:
active: false
PreferToOverPairSyntax:
active: false
ProtectedMemberInFinalClass:
2017-10-03 13:19:05 +00:00
active: true
2021-09-14 12:53:55 +00:00
RedundantExplicitType:
active: false
RedundantHigherOrderMapUsage:
active: false
RedundantVisibilityModifierRule:
active: false
ReturnCount:
2017-10-03 13:19:05 +00:00
active: true
2023-02-13 13:24:37 +00:00
max: 3
2021-09-14 12:53:55 +00:00
excludedFunctions: 'equals'
excludeLabeled: false
excludeReturnFromLambda: true
excludeGuardClauses: false
SafeCast:
2017-10-03 13:19:05 +00:00
active: true
2021-09-14 12:53:55 +00:00
SerialVersionUIDInSerializableClass:
2017-10-03 13:19:05 +00:00
active: true
2021-09-14 12:53:55 +00:00
SpacingBetweenPackageAndImports:
active: false
ThrowsCount:
2017-10-03 13:19:05 +00:00
active: true
2021-09-14 12:53:55 +00:00
max: 2
excludeGuardClauses: false
TrailingWhitespace:
2017-10-03 13:19:05 +00:00
active: false
2021-09-14 12:53:55 +00:00
UnderscoresInNumericLiterals:
active: false
2023-02-13 13:24:37 +00:00
acceptableLength: 5
2021-09-14 12:53:55 +00:00
UnnecessaryAbstractClass:
active: true
2023-02-13 13:24:37 +00:00
ignoreAnnotated:
2021-09-14 12:53:55 +00:00
- 'dagger.Module'
UnnecessaryAnnotationUseSiteTarget:
active: false
UnnecessaryApply:
active: true
UnnecessaryFilter:
active: false
UnnecessaryInheritance:
active: true
UnnecessaryLet:
2017-10-03 13:19:05 +00:00
active: false
UnnecessaryParentheses:
active: false
2021-09-14 12:53:55 +00:00
UntilInsteadOfRangeTo:
active: false
UnusedImports:
active: false
UnusedPrivateClass:
active: true
UnusedPrivateMember:
active: true
allowedNames: '(_|ignored|expected|serialVersionUID)'
2023-02-13 13:24:37 +00:00
ignoreAnnotated:
- 'Preview'
2021-09-14 12:53:55 +00:00
UseArrayLiteralsInAnnotations:
active: false
UseCheckNotNull:
active: false
UseCheckOrError:
2017-10-03 13:19:05 +00:00
active: false
UseDataClass:
active: false
2021-09-14 12:53:55 +00:00
allowVars: false
UseEmptyCounterpart:
2017-10-03 13:19:05 +00:00
active: false
2021-09-14 12:53:55 +00:00
UseIfEmptyOrIfBlank:
active: false
UseIfInsteadOfWhen:
active: false
UseIsNullOrEmpty:
active: false
UseOrEmpty:
active: false
UseRequire:
active: false
UseRequireNotNull:
active: false
UselessCallOnNotNull:
2017-10-03 13:19:05 +00:00
active: true
2021-09-14 12:53:55 +00:00
UtilityClassWithPublicConstructor:
2017-10-03 13:19:05 +00:00
active: true
2021-09-14 12:53:55 +00:00
VarCouldBeVal:
active: true
WildcardImport:
2017-10-03 13:19:05 +00:00
active: false
2021-09-14 12:53:55 +00:00
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
excludeImports:
- 'java.util.*'
- 'kotlinx.android.synthetic.*'