2019-01-30 16:36:14 +00:00
|
|
|
build:
|
|
|
|
maxIssues: 0
|
2022-01-08 19:23:08 +00:00
|
|
|
excludeCorrectable: false
|
2019-01-30 16:36:14 +00:00
|
|
|
weights:
|
|
|
|
# complexity: 2
|
|
|
|
# LongParameterList: 1
|
|
|
|
# style: 1
|
|
|
|
# comments: 1
|
|
|
|
|
|
|
|
processors:
|
|
|
|
active: true
|
|
|
|
exclude:
|
2022-01-08 19:23:08 +00:00
|
|
|
# - 'DetektProgressListener'
|
|
|
|
# - 'KtFileCountProcessor'
|
|
|
|
# - 'PackageCountProcessor'
|
|
|
|
# - 'ClassCountProcessor'
|
2019-01-30 16:36:14 +00:00
|
|
|
# - 'FunctionCountProcessor'
|
|
|
|
# - 'PropertyCountProcessor'
|
2022-01-08 19:23:08 +00:00
|
|
|
# - 'ProjectComplexityProcessor'
|
|
|
|
# - 'ProjectCognitiveComplexityProcessor'
|
|
|
|
# - 'ProjectLLOCProcessor'
|
|
|
|
# - 'ProjectCLOCProcessor'
|
|
|
|
# - 'ProjectLOCProcessor'
|
|
|
|
# - 'ProjectSLOCProcessor'
|
|
|
|
# - 'LicenseHeaderLoaderExtension'
|
2019-01-30 16:36:14 +00:00
|
|
|
|
|
|
|
console-reports:
|
|
|
|
active: true
|
|
|
|
exclude:
|
|
|
|
# - 'ProjectStatisticsReport'
|
|
|
|
# - 'ComplexityReport'
|
|
|
|
# - 'NotificationReport'
|
|
|
|
# - 'FindingsReport'
|
2022-01-08 19:23:08 +00:00
|
|
|
# - 'FileBasedFindingsReport'
|
|
|
|
- 'LiteFindingsReport'
|
2019-01-30 16:36:14 +00:00
|
|
|
|
|
|
|
comments:
|
|
|
|
active: true
|
2020-07-20 22:09:58 +00:00
|
|
|
AbsentOrWrongFileLicense:
|
2022-01-08 19:23:08 +00:00
|
|
|
active: false
|
|
|
|
licenseTemplateFile: 'license.template'
|
|
|
|
licenseTemplateIsRegex: false
|
2019-01-30 16:36:14 +00:00
|
|
|
CommentOverPrivateFunction:
|
|
|
|
active: false
|
|
|
|
CommentOverPrivateProperty:
|
|
|
|
active: false
|
2022-01-08 19:23:08 +00:00
|
|
|
DeprecatedBlockTag:
|
|
|
|
active: false
|
2019-01-30 16:36:14 +00:00
|
|
|
EndOfSentenceFormat:
|
|
|
|
active: false
|
2022-01-08 19:23:08 +00:00
|
|
|
endOfSentenceFormat: '([.?!][ \t\n\r\f<])|([.?!:]$)'
|
|
|
|
OutdatedDocumentation:
|
2019-01-30 16:36:14 +00:00
|
|
|
active: false
|
2022-01-08 19:23:08 +00:00
|
|
|
matchTypeParameters: true
|
|
|
|
matchDeclarationsOrder: true
|
|
|
|
UndocumentedPublicClass:
|
|
|
|
active: true
|
2019-01-30 16:36:14 +00:00
|
|
|
searchInNestedClass: true
|
|
|
|
searchInInnerClass: true
|
|
|
|
searchInInnerObject: true
|
|
|
|
searchInInnerInterface: true
|
|
|
|
UndocumentedPublicFunction:
|
2022-01-08 19:23:08 +00:00
|
|
|
active: true
|
|
|
|
UndocumentedPublicProperty:
|
2019-01-30 16:36:14 +00:00
|
|
|
active: false
|
|
|
|
|
|
|
|
complexity:
|
|
|
|
active: true
|
|
|
|
ComplexCondition:
|
|
|
|
active: true
|
|
|
|
threshold: 4
|
|
|
|
ComplexInterface:
|
|
|
|
active: false
|
|
|
|
threshold: 10
|
|
|
|
includeStaticDeclarations: false
|
2022-01-08 19:23:08 +00:00
|
|
|
includePrivateDeclarations: false
|
2019-01-30 16:36:14 +00:00
|
|
|
ComplexMethod:
|
|
|
|
active: true
|
2022-01-08 19:23:08 +00:00
|
|
|
threshold: 18
|
2019-06-26 22:52:24 +00:00
|
|
|
ignoreSingleWhenExpression: true
|
2022-01-08 19:23:08 +00:00
|
|
|
ignoreSimpleWhenEntries: false
|
|
|
|
ignoreNestingFunctions: false
|
|
|
|
nestingFunctions:
|
|
|
|
- 'also'
|
|
|
|
- 'apply'
|
|
|
|
- 'forEach'
|
|
|
|
- 'isNotNull'
|
|
|
|
- 'ifNull'
|
|
|
|
- 'let'
|
|
|
|
- 'run'
|
|
|
|
- 'use'
|
|
|
|
- 'with'
|
2019-01-30 16:36:14 +00:00
|
|
|
LabeledExpression:
|
|
|
|
active: false
|
2022-01-08 19:23:08 +00:00
|
|
|
ignoredLabels: []
|
2019-01-30 16:36:14 +00:00
|
|
|
LargeClass:
|
|
|
|
active: true
|
2022-01-08 19:23:08 +00:00
|
|
|
threshold: 600
|
2019-01-30 16:36:14 +00:00
|
|
|
LongMethod:
|
|
|
|
active: true
|
2019-08-21 17:52:09 +00:00
|
|
|
threshold: 75
|
2019-01-30 16:36:14 +00:00
|
|
|
LongParameterList:
|
2020-08-11 21:24:38 +00:00
|
|
|
active: true
|
2020-07-27 16:48:41 +00:00
|
|
|
functionThreshold: 6
|
|
|
|
constructorThreshold: 7
|
2022-01-08 19:23:08 +00:00
|
|
|
ignoreDefaultParameters: true
|
2020-07-27 16:48:41 +00:00
|
|
|
ignoreDataClasses: true
|
2022-01-08 19:23:08 +00:00
|
|
|
ignoreAnnotatedParameter: []
|
2019-01-30 16:36:14 +00:00
|
|
|
MethodOverloading:
|
|
|
|
active: false
|
|
|
|
threshold: 6
|
2022-01-08 19:23:08 +00:00
|
|
|
NamedArguments:
|
|
|
|
active: false
|
|
|
|
threshold: 3
|
2019-01-30 16:36:14 +00:00
|
|
|
NestedBlockDepth:
|
|
|
|
active: true
|
|
|
|
threshold: 4
|
2022-01-08 19:23:08 +00:00
|
|
|
ReplaceSafeCallChainWithRun:
|
|
|
|
active: false
|
2019-01-30 16:36:14 +00:00
|
|
|
StringLiteralDuplication:
|
|
|
|
active: false
|
|
|
|
threshold: 3
|
|
|
|
ignoreAnnotation: true
|
|
|
|
excludeStringsWithLessThan5Characters: true
|
|
|
|
ignoreStringsRegex: '$^'
|
|
|
|
TooManyFunctions:
|
|
|
|
active: true
|
2022-01-08 19:23:08 +00:00
|
|
|
thresholdInFiles: 26
|
|
|
|
thresholdInClasses: 26
|
|
|
|
thresholdInInterfaces: 26
|
|
|
|
thresholdInObjects: 26
|
2019-01-30 16:36:14 +00:00
|
|
|
thresholdInEnums: 11
|
2022-01-08 19:23:08 +00:00
|
|
|
ignoreDeprecated: false
|
|
|
|
ignorePrivate: false
|
|
|
|
ignoreOverridden: false
|
|
|
|
|
|
|
|
coroutines:
|
|
|
|
active: true
|
|
|
|
GlobalCoroutineUsage:
|
|
|
|
active: false
|
|
|
|
InjectDispatcher:
|
|
|
|
active: false
|
|
|
|
dispatcherNames:
|
|
|
|
- 'IO'
|
|
|
|
- 'Default'
|
|
|
|
- 'Unconfined'
|
|
|
|
RedundantSuspendModifier:
|
|
|
|
active: false
|
|
|
|
SleepInsteadOfDelay:
|
|
|
|
active: false
|
|
|
|
SuspendFunWithFlowReturnType:
|
|
|
|
active: false
|
2019-01-30 16:36:14 +00:00
|
|
|
|
2019-12-31 16:46:22 +00:00
|
|
|
mozilla-detekt-rules:
|
|
|
|
active: true
|
|
|
|
MozillaBannedPropertyAccess:
|
|
|
|
active: true
|
|
|
|
# BuildConfig.Debug: This property tests whether the application was built
|
|
|
|
# with the debuggable flag or not. Use a check for different build variants,
|
|
|
|
# instead.
|
2022-01-08 19:23:08 +00:00
|
|
|
bannedProperties: 'BuildConfig.DEBUG'
|
2020-09-21 21:41:37 +00:00
|
|
|
MozillaStrictModeSuppression:
|
|
|
|
active: true
|
2020-10-01 21:40:50 +00:00
|
|
|
MozillaCorrectUnitTestRunner:
|
|
|
|
active: true
|
2020-11-02 17:49:17 +00:00
|
|
|
MozillaRunBlockingCheck:
|
|
|
|
active: true
|
2020-10-30 23:13:18 +00:00
|
|
|
MozillaUseLazyMonitored:
|
|
|
|
active: true
|
2019-12-31 16:46:22 +00:00
|
|
|
|
2019-01-30 16:36:14 +00:00
|
|
|
empty-blocks:
|
|
|
|
active: true
|
|
|
|
EmptyCatchBlock:
|
|
|
|
active: true
|
2022-01-08 19:23:08 +00:00
|
|
|
allowedExceptionNameRegex: '_|(ignore|expected).*'
|
2019-01-30 16:36:14 +00:00
|
|
|
EmptyClassBlock:
|
|
|
|
active: true
|
|
|
|
EmptyDefaultConstructor:
|
|
|
|
active: true
|
|
|
|
EmptyDoWhileBlock:
|
|
|
|
active: true
|
|
|
|
EmptyElseBlock:
|
|
|
|
active: true
|
|
|
|
EmptyFinallyBlock:
|
|
|
|
active: true
|
|
|
|
EmptyForBlock:
|
|
|
|
active: true
|
|
|
|
EmptyFunctionBlock:
|
|
|
|
active: true
|
2022-01-08 19:23:08 +00:00
|
|
|
ignoreOverridden: false
|
2019-01-30 16:36:14 +00:00
|
|
|
EmptyIfBlock:
|
|
|
|
active: true
|
|
|
|
EmptyInitBlock:
|
|
|
|
active: true
|
|
|
|
EmptyKtFile:
|
|
|
|
active: true
|
|
|
|
EmptySecondaryConstructor:
|
|
|
|
active: true
|
2022-01-08 19:23:08 +00:00
|
|
|
EmptyTryBlock:
|
|
|
|
active: true
|
2019-01-30 16:36:14 +00:00
|
|
|
EmptyWhenBlock:
|
|
|
|
active: true
|
|
|
|
EmptyWhileBlock:
|
|
|
|
active: true
|
|
|
|
|
|
|
|
exceptions:
|
|
|
|
active: true
|
|
|
|
ExceptionRaisedInUnexpectedLocation:
|
|
|
|
active: false
|
2022-01-08 19:23:08 +00:00
|
|
|
methodNames:
|
|
|
|
- 'equals'
|
|
|
|
- 'finalize'
|
|
|
|
- 'hashCode'
|
|
|
|
- 'toString'
|
2019-01-30 16:36:14 +00:00
|
|
|
InstanceOfCheckForException:
|
|
|
|
active: false
|
|
|
|
NotImplementedDeclaration:
|
|
|
|
active: false
|
2022-01-08 19:23:08 +00:00
|
|
|
ObjectExtendsThrowable:
|
2019-01-30 16:36:14 +00:00
|
|
|
active: false
|
2022-01-08 19:23:08 +00:00
|
|
|
PrintStackTrace:
|
|
|
|
active: true
|
2019-01-30 16:36:14 +00:00
|
|
|
RethrowCaughtException:
|
|
|
|
active: false
|
|
|
|
ReturnFromFinally:
|
2022-01-08 19:23:08 +00:00
|
|
|
active: true
|
|
|
|
ignoreLabeled: false
|
2019-01-30 16:36:14 +00:00
|
|
|
SwallowedException:
|
|
|
|
active: false
|
2022-01-08 19:23:08 +00:00
|
|
|
ignoredExceptionTypes:
|
|
|
|
- 'InterruptedException'
|
|
|
|
- 'MalformedURLException'
|
|
|
|
- 'NumberFormatException'
|
|
|
|
- 'ParseException'
|
|
|
|
allowedExceptionNameRegex: '_|(ignore|expected).*'
|
2019-01-30 16:36:14 +00:00
|
|
|
ThrowingExceptionFromFinally:
|
2022-01-08 19:23:08 +00:00
|
|
|
active: true
|
2019-01-30 16:36:14 +00:00
|
|
|
ThrowingExceptionInMain:
|
|
|
|
active: false
|
|
|
|
ThrowingExceptionsWithoutMessageOrCause:
|
|
|
|
active: false
|
2022-01-08 19:23:08 +00:00
|
|
|
exceptions:
|
|
|
|
- 'ArrayIndexOutOfBoundsException'
|
|
|
|
- 'Exception'
|
|
|
|
- 'IllegalArgumentException'
|
|
|
|
- 'IllegalMonitorStateException'
|
|
|
|
- 'IllegalStateException'
|
|
|
|
- 'IndexOutOfBoundsException'
|
|
|
|
- 'NullPointerException'
|
|
|
|
- 'RuntimeException'
|
|
|
|
- 'Throwable'
|
2019-01-30 16:36:14 +00:00
|
|
|
ThrowingNewInstanceOfSameException:
|
2022-01-08 19:23:08 +00:00
|
|
|
active: true
|
2019-01-30 16:36:14 +00:00
|
|
|
TooGenericExceptionCaught:
|
|
|
|
active: true
|
|
|
|
exceptionNames:
|
2022-01-08 19:23:08 +00:00
|
|
|
- 'ArrayIndexOutOfBoundsException'
|
|
|
|
- 'Error'
|
|
|
|
- 'Exception'
|
|
|
|
- 'IllegalMonitorStateException'
|
|
|
|
- 'IndexOutOfBoundsException'
|
|
|
|
- 'NullPointerException'
|
|
|
|
- 'RuntimeException'
|
|
|
|
- 'Throwable'
|
|
|
|
allowedExceptionNameRegex: '_|(ignore|expected).*'
|
2019-01-30 16:36:14 +00:00
|
|
|
TooGenericExceptionThrown:
|
|
|
|
active: true
|
|
|
|
exceptionNames:
|
2022-01-08 19:23:08 +00:00
|
|
|
- 'Error'
|
|
|
|
- 'Exception'
|
|
|
|
- 'RuntimeException'
|
|
|
|
- 'Throwable'
|
2020-04-01 22:42:46 +00:00
|
|
|
|
2019-01-30 16:36:14 +00:00
|
|
|
naming:
|
|
|
|
active: true
|
2022-01-08 19:23:08 +00:00
|
|
|
BooleanPropertyNaming:
|
|
|
|
active: false
|
|
|
|
allowedPattern: '^(is|has|are)'
|
2019-01-30 16:36:14 +00:00
|
|
|
ClassNaming:
|
|
|
|
active: true
|
2022-01-08 19:23:08 +00:00
|
|
|
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: '$^'
|
|
|
|
ignoreOverridden: true
|
2019-01-30 16:36:14 +00:00
|
|
|
EnumNaming:
|
|
|
|
active: true
|
2022-01-08 19:23:08 +00:00
|
|
|
enumEntryPattern: '[A-Z][_a-zA-Z0-9]*'
|
2019-01-30 16:36:14 +00:00
|
|
|
ForbiddenClassName:
|
|
|
|
active: false
|
2022-01-08 19:23:08 +00:00
|
|
|
forbiddenName: []
|
2019-01-30 16:36:14 +00:00
|
|
|
FunctionMaxLength:
|
|
|
|
active: false
|
|
|
|
maximumFunctionNameLength: 30
|
|
|
|
FunctionMinLength:
|
|
|
|
active: false
|
|
|
|
minimumFunctionNameLength: 3
|
|
|
|
FunctionNaming:
|
|
|
|
active: true
|
2022-01-08 19:23:08 +00:00
|
|
|
functionPattern: '([a-z][a-zA-Z0-9]*)|(`.*`)'
|
|
|
|
excludeClassPattern: '$^'
|
|
|
|
ignoreOverridden: true
|
|
|
|
ignoreAnnotated: ['Composable']
|
|
|
|
FunctionParameterNaming:
|
|
|
|
active: true
|
|
|
|
parameterPattern: '[a-z][A-Za-z0-9]*'
|
2019-01-30 16:36:14 +00:00
|
|
|
excludeClassPattern: '$^'
|
2022-01-08 19:23:08 +00:00
|
|
|
ignoreOverridden: true
|
|
|
|
InvalidPackageDeclaration:
|
|
|
|
active: false
|
|
|
|
rootPackage: ''
|
|
|
|
LambdaParameterNaming:
|
|
|
|
active: false
|
|
|
|
parameterPattern: '[a-z][A-Za-z0-9]*|_'
|
2019-01-30 16:36:14 +00:00
|
|
|
MatchingDeclarationName:
|
|
|
|
active: true
|
2022-01-08 19:23:08 +00:00
|
|
|
mustBeFirst: true
|
2019-01-30 16:36:14 +00:00
|
|
|
MemberNameEqualsClassName:
|
|
|
|
active: false
|
2020-04-01 22:42:46 +00:00
|
|
|
ignoreOverridden: true
|
2022-01-08 19:23:08 +00:00
|
|
|
NoNameShadowing:
|
|
|
|
active: false
|
|
|
|
NonBooleanPropertyPrefixedWithIs:
|
|
|
|
active: false
|
2019-01-30 16:36:14 +00:00
|
|
|
ObjectPropertyNaming:
|
|
|
|
active: true
|
2022-01-08 19:23:08 +00:00
|
|
|
constantPattern: '[A-Za-z][_A-Za-z0-9]*'
|
2019-01-30 16:36:14 +00:00
|
|
|
propertyPattern: '[A-Za-z][_A-Za-z0-9]*'
|
2022-01-08 19:23:08 +00:00
|
|
|
privatePropertyPattern: '(_)?[A-Za-z][_A-Za-z0-9]*'
|
2019-01-30 16:36:14 +00:00
|
|
|
PackageNaming:
|
|
|
|
active: true
|
2022-01-08 19:23:08 +00:00
|
|
|
packagePattern: '[a-z]+(\.[a-z][A-Za-z0-9]*)*'
|
2019-01-30 16:36:14 +00:00
|
|
|
TopLevelPropertyNaming:
|
|
|
|
active: true
|
|
|
|
constantPattern: '[A-Z][_A-Z0-9]*'
|
2022-01-08 19:23:08 +00:00
|
|
|
propertyPattern: '[A-Za-z][_A-Za-z0-9]*'
|
|
|
|
privatePropertyPattern: '_?[A-Za-z][_A-Za-z0-9]*'
|
2019-01-30 16:36:14 +00:00
|
|
|
VariableMaxLength:
|
|
|
|
active: false
|
|
|
|
maximumVariableNameLength: 64
|
|
|
|
VariableMinLength:
|
|
|
|
active: false
|
|
|
|
minimumVariableNameLength: 1
|
|
|
|
VariableNaming:
|
|
|
|
active: true
|
|
|
|
variablePattern: '[a-z][A-Za-z0-9]*'
|
|
|
|
privateVariablePattern: '(_)?[a-z][A-Za-z0-9]*'
|
|
|
|
excludeClassPattern: '$^'
|
2022-01-08 19:23:08 +00:00
|
|
|
ignoreOverridden: true
|
2019-01-30 16:36:14 +00:00
|
|
|
|
|
|
|
performance:
|
|
|
|
active: true
|
2022-01-08 19:23:08 +00:00
|
|
|
ArrayPrimitive:
|
|
|
|
active: true
|
2019-01-30 16:36:14 +00:00
|
|
|
ForEachOnRange:
|
|
|
|
active: true
|
|
|
|
SpreadOperator:
|
|
|
|
active: true
|
|
|
|
UnnecessaryTemporaryInstantiation:
|
|
|
|
active: true
|
|
|
|
|
|
|
|
potential-bugs:
|
|
|
|
active: true
|
2022-01-08 19:23:08 +00:00
|
|
|
AvoidReferentialEquality:
|
|
|
|
active: false
|
|
|
|
forbiddenTypePatterns:
|
|
|
|
- 'kotlin.String'
|
|
|
|
CastToNullableType:
|
|
|
|
active: false
|
|
|
|
Deprecation:
|
|
|
|
active: false
|
|
|
|
DontDowncastCollectionTypes:
|
|
|
|
active: false
|
|
|
|
DoubleMutabilityForCollection:
|
|
|
|
active: false
|
2019-01-30 16:36:14 +00:00
|
|
|
DuplicateCaseInWhenExpression:
|
|
|
|
active: true
|
|
|
|
EqualsAlwaysReturnsTrueOrFalse:
|
2022-01-08 19:23:08 +00:00
|
|
|
active: true
|
2019-01-30 16:36:14 +00:00
|
|
|
EqualsWithHashCodeExist:
|
|
|
|
active: true
|
2022-01-08 19:23:08 +00:00
|
|
|
ExitOutsideMain:
|
|
|
|
active: false
|
2019-01-30 16:36:14 +00:00
|
|
|
ExplicitGarbageCollectionCall:
|
|
|
|
active: true
|
2022-01-08 19:23:08 +00:00
|
|
|
HasPlatformType:
|
2019-01-30 16:36:14 +00:00
|
|
|
active: false
|
2022-01-08 19:23:08 +00:00
|
|
|
IgnoredReturnValue:
|
2019-01-30 16:36:14 +00:00
|
|
|
active: false
|
2022-01-08 19:23:08 +00:00
|
|
|
restrictToAnnotatedMethods: true
|
|
|
|
returnValueAnnotations:
|
|
|
|
- '*.CheckResult'
|
|
|
|
- '*.CheckReturnValue'
|
|
|
|
ignoreReturnValueAnnotations:
|
|
|
|
- '*.CanIgnoreReturnValue'
|
|
|
|
ImplicitDefaultLocale:
|
2019-01-30 16:36:14 +00:00
|
|
|
active: false
|
2022-01-08 19:23:08 +00:00
|
|
|
ImplicitUnitReturnType:
|
|
|
|
active: false
|
|
|
|
allowExplicitReturnType: true
|
|
|
|
InvalidRange:
|
|
|
|
active: true
|
|
|
|
IteratorHasNextCallsNextMethod:
|
|
|
|
active: true
|
|
|
|
IteratorNotThrowingNoSuchElementException:
|
|
|
|
active: true
|
2019-01-30 16:36:14 +00:00
|
|
|
LateinitUsage:
|
|
|
|
active: false
|
2022-01-08 19:23:08 +00:00
|
|
|
ignoreOnClassesPattern: ''
|
|
|
|
MapGetWithNotNullAssertionOperator:
|
|
|
|
active: false
|
|
|
|
MissingPackageDeclaration:
|
|
|
|
active: false
|
|
|
|
excludes: ['**/*.kts']
|
|
|
|
MissingWhenCase:
|
|
|
|
active: true
|
|
|
|
allowElseExpression: true
|
|
|
|
NullableToStringCall:
|
|
|
|
active: false
|
|
|
|
RedundantElseInWhen:
|
|
|
|
active: true
|
2019-01-30 16:36:14 +00:00
|
|
|
UnconditionalJumpStatementInLoop:
|
|
|
|
active: false
|
2022-01-08 19:23:08 +00:00
|
|
|
UnnecessaryNotNullOperator:
|
|
|
|
active: true
|
|
|
|
UnnecessarySafeCall:
|
|
|
|
active: true
|
|
|
|
UnreachableCatchBlock:
|
|
|
|
active: false
|
2019-01-30 16:36:14 +00:00
|
|
|
UnreachableCode:
|
|
|
|
active: true
|
|
|
|
UnsafeCallOnNullableType:
|
2022-01-08 19:23:08 +00:00
|
|
|
active: true
|
2019-01-30 16:36:14 +00:00
|
|
|
UnsafeCast:
|
2022-01-08 19:23:08 +00:00
|
|
|
active: true
|
|
|
|
UnusedUnaryOperator:
|
2019-01-30 16:36:14 +00:00
|
|
|
active: false
|
|
|
|
UselessPostfixExpression:
|
|
|
|
active: false
|
|
|
|
WrongEqualsTypeParameter:
|
2022-01-08 19:23:08 +00:00
|
|
|
active: true
|
2019-01-30 16:36:14 +00:00
|
|
|
|
|
|
|
style:
|
|
|
|
active: true
|
2022-01-08 19:23:08 +00:00
|
|
|
ClassOrdering:
|
|
|
|
active: false
|
2019-01-30 16:36:14 +00:00
|
|
|
CollapsibleIfStatements:
|
|
|
|
active: true
|
|
|
|
DataClassContainsFunctions:
|
|
|
|
active: false
|
|
|
|
conversionFunctionPrefix: 'to'
|
2022-01-08 19:23:08 +00:00
|
|
|
DataClassShouldBeImmutable:
|
|
|
|
active: false
|
|
|
|
DestructuringDeclarationWithTooManyEntries:
|
|
|
|
active: false
|
|
|
|
maxDestructuringEntries: 3
|
2019-01-30 16:36:14 +00:00
|
|
|
EqualsNullCall:
|
2022-01-08 19:23:08 +00:00
|
|
|
active: true
|
|
|
|
EqualsOnSignatureLine:
|
|
|
|
active: false
|
|
|
|
ExplicitCollectionElementAccessMethod:
|
|
|
|
active: false
|
|
|
|
ExplicitItLambdaParameter:
|
2019-01-30 16:36:14 +00:00
|
|
|
active: false
|
|
|
|
ExpressionBodySyntax:
|
|
|
|
active: false
|
2022-01-08 19:23:08 +00:00
|
|
|
includeLineWrapping: false
|
2019-01-30 16:36:14 +00:00
|
|
|
ForbiddenComment:
|
|
|
|
active: true
|
2022-01-08 19:23:08 +00:00
|
|
|
values:
|
|
|
|
- 'FIXME:'
|
|
|
|
- 'STOPSHIP:'
|
|
|
|
- 'TODO:'
|
|
|
|
allowedPatterns: ''
|
|
|
|
customMessage: ''
|
2019-01-30 16:36:14 +00:00
|
|
|
ForbiddenImport:
|
|
|
|
active: false
|
2022-01-08 19:23:08 +00:00
|
|
|
imports: []
|
|
|
|
forbiddenPatterns: ''
|
|
|
|
ForbiddenMethodCall:
|
2019-01-30 16:36:14 +00:00
|
|
|
active: false
|
2022-01-08 19:23:08 +00:00
|
|
|
methods:
|
|
|
|
- 'kotlin.io.print'
|
|
|
|
- 'kotlin.io.println'
|
|
|
|
ForbiddenPublicDataClass:
|
|
|
|
active: true
|
|
|
|
excludes: ['**']
|
|
|
|
ignorePackages:
|
|
|
|
- '*.internal'
|
|
|
|
- '*.internal.*'
|
|
|
|
ForbiddenVoid:
|
|
|
|
active: false
|
|
|
|
ignoreOverridden: false
|
|
|
|
ignoreUsageInGenerics: false
|
|
|
|
FunctionOnlyReturningConstant:
|
|
|
|
active: true
|
2019-01-30 16:36:14 +00:00
|
|
|
ignoreOverridableFunction: true
|
2022-01-08 19:23:08 +00:00
|
|
|
ignoreActualFunction: true
|
|
|
|
excludedFunctions: ''
|
|
|
|
LibraryCodeMustSpecifyReturnType:
|
|
|
|
active: true
|
|
|
|
excludes: ['**']
|
|
|
|
LibraryEntitiesShouldNotBePublic:
|
|
|
|
active: true
|
|
|
|
excludes: ['**']
|
2019-01-30 16:36:14 +00:00
|
|
|
LoopWithTooManyJumpStatements:
|
|
|
|
active: false
|
|
|
|
maxJumpCount: 1
|
|
|
|
MagicNumber:
|
|
|
|
active: true
|
2022-01-08 19:23:08 +00:00
|
|
|
ignoreNumbers:
|
|
|
|
- '-1'
|
|
|
|
- '0'
|
|
|
|
- '1'
|
|
|
|
- '2'
|
|
|
|
ignoreHashCodeFunction: true
|
|
|
|
ignorePropertyDeclaration: true
|
|
|
|
ignoreLocalVariableDeclaration: false
|
2019-01-30 16:36:14 +00:00
|
|
|
ignoreConstantDeclaration: true
|
|
|
|
ignoreCompanionObjectPropertyDeclaration: true
|
|
|
|
ignoreAnnotation: false
|
|
|
|
ignoreNamedArgument: true
|
|
|
|
ignoreEnums: false
|
2022-01-08 19:23:08 +00:00
|
|
|
ignoreRanges: false
|
|
|
|
ignoreExtensionFunctions: true
|
|
|
|
MandatoryBracesIfStatements:
|
|
|
|
active: true
|
|
|
|
MandatoryBracesLoops:
|
|
|
|
active: false
|
2019-01-30 16:36:14 +00:00
|
|
|
MaxLineLength:
|
|
|
|
active: true
|
|
|
|
maxLineLength: 120
|
2022-01-08 19:23:08 +00:00
|
|
|
excludePackageStatements: true
|
|
|
|
excludeImportStatements: true
|
|
|
|
excludeCommentStatements: false
|
2019-01-30 16:36:14 +00:00
|
|
|
MayBeConst:
|
|
|
|
active: true
|
|
|
|
ModifierOrder:
|
|
|
|
active: true
|
2022-01-08 19:23:08 +00:00
|
|
|
MultilineLambdaItParameter:
|
2019-01-30 16:36:14 +00:00
|
|
|
active: false
|
2022-01-08 19:23:08 +00:00
|
|
|
NestedClassesVisibility:
|
|
|
|
active: true
|
2019-01-30 16:36:14 +00:00
|
|
|
NewLineAtEndOfFile:
|
|
|
|
active: true
|
|
|
|
NoTabs:
|
|
|
|
active: true
|
2022-01-08 19:23:08 +00:00
|
|
|
ObjectLiteralToLambda:
|
|
|
|
active: false
|
2019-01-30 16:36:14 +00:00
|
|
|
OptionalAbstractKeyword:
|
|
|
|
active: true
|
|
|
|
OptionalUnit:
|
|
|
|
active: false
|
|
|
|
OptionalWhenBraces:
|
|
|
|
active: false
|
2022-01-08 19:23:08 +00:00
|
|
|
PreferToOverPairSyntax:
|
|
|
|
active: false
|
2019-01-30 16:36:14 +00:00
|
|
|
ProtectedMemberInFinalClass:
|
2022-01-08 19:23:08 +00:00
|
|
|
active: true
|
|
|
|
RedundantExplicitType:
|
|
|
|
active: false
|
|
|
|
RedundantHigherOrderMapUsage:
|
2019-01-30 16:36:14 +00:00
|
|
|
active: false
|
|
|
|
RedundantVisibilityModifierRule:
|
|
|
|
active: false
|
|
|
|
ReturnCount:
|
|
|
|
active: true
|
|
|
|
max: 3
|
2022-01-08 19:23:08 +00:00
|
|
|
excludedFunctions: 'equals'
|
|
|
|
excludeLabeled: false
|
|
|
|
excludeReturnFromLambda: true
|
|
|
|
excludeGuardClauses: false
|
2019-01-30 16:36:14 +00:00
|
|
|
SafeCast:
|
|
|
|
active: true
|
|
|
|
SerialVersionUIDInSerializableClass:
|
2022-01-08 19:23:08 +00:00
|
|
|
active: true
|
2019-01-30 16:36:14 +00:00
|
|
|
SpacingBetweenPackageAndImports:
|
|
|
|
active: true
|
|
|
|
ThrowsCount:
|
|
|
|
active: true
|
|
|
|
max: 2
|
2022-01-08 19:23:08 +00:00
|
|
|
excludeGuardClauses: false
|
2019-01-30 16:36:14 +00:00
|
|
|
TrailingWhitespace:
|
|
|
|
active: false
|
2022-01-08 19:23:08 +00:00
|
|
|
UnderscoresInNumericLiterals:
|
|
|
|
active: false
|
|
|
|
acceptableLength: 4
|
2019-01-30 16:36:14 +00:00
|
|
|
UnnecessaryAbstractClass:
|
|
|
|
active: true
|
2022-01-08 19:23:08 +00:00
|
|
|
UnnecessaryAnnotationUseSiteTarget:
|
|
|
|
active: false
|
|
|
|
UnnecessaryApply:
|
|
|
|
active: true
|
|
|
|
UnnecessaryFilter:
|
|
|
|
active: false
|
2019-01-30 16:36:14 +00:00
|
|
|
UnnecessaryInheritance:
|
2022-01-08 19:23:08 +00:00
|
|
|
active: true
|
|
|
|
UnnecessaryLet:
|
2019-01-30 16:36:14 +00:00
|
|
|
active: false
|
|
|
|
UnnecessaryParentheses:
|
|
|
|
active: false
|
|
|
|
UntilInsteadOfRangeTo:
|
|
|
|
active: false
|
|
|
|
UnusedImports:
|
|
|
|
active: false
|
2022-01-08 19:23:08 +00:00
|
|
|
UnusedPrivateClass:
|
|
|
|
active: true
|
2019-01-30 16:36:14 +00:00
|
|
|
UnusedPrivateMember:
|
2022-01-08 19:23:08 +00:00
|
|
|
active: true
|
|
|
|
allowedNames: '(_|ignored|expected|serialVersionUID)'
|
|
|
|
ignoreAnnotated: ['Composable']
|
|
|
|
UseAnyOrNoneInsteadOfFind:
|
|
|
|
active: false
|
|
|
|
UseArrayLiteralsInAnnotations:
|
|
|
|
active: false
|
|
|
|
UseCheckNotNull:
|
|
|
|
active: true
|
|
|
|
UseCheckOrError:
|
2019-01-30 16:36:14 +00:00
|
|
|
active: false
|
|
|
|
UseDataClass:
|
|
|
|
active: false
|
2022-01-08 19:23:08 +00:00
|
|
|
allowVars: false
|
|
|
|
UseEmptyCounterpart:
|
|
|
|
active: false
|
|
|
|
UseIfEmptyOrIfBlank:
|
|
|
|
active: false
|
|
|
|
UseIfInsteadOfWhen:
|
|
|
|
active: false
|
|
|
|
UseIsNullOrEmpty:
|
2019-01-30 16:36:14 +00:00
|
|
|
active: false
|
2022-01-08 19:23:08 +00:00
|
|
|
UseOrEmpty:
|
|
|
|
active: true
|
|
|
|
UseRequire:
|
|
|
|
active: true
|
|
|
|
UseRequireNotNull:
|
|
|
|
active: true
|
|
|
|
UselessCallOnNotNull:
|
|
|
|
active: true
|
|
|
|
UtilityClassWithPublicConstructor:
|
|
|
|
active: true
|
|
|
|
VarCouldBeVal:
|
|
|
|
active: true
|
2019-01-30 16:36:14 +00:00
|
|
|
WildcardImport:
|
|
|
|
active: true
|
2022-01-08 19:23:08 +00:00
|
|
|
excludeImports:
|
|
|
|
- 'java.util.*'
|