Hideout/detekt.yml

157 lines
2.3 KiB
YAML
Raw Normal View History

build:
maxIssues: 20
2023-04-29 14:57:25 +00:00
style:
ClassOrdering:
active: true
MandatoryBracesIfStatements:
active: true
MandatoryBracesLoops:
active: true
MultilineLambdaItParameter:
2023-04-29 16:25:54 +00:00
active: false
2023-04-29 14:57:25 +00:00
UseEmptyCounterpart:
active: true
2023-04-29 16:25:54 +00:00
ExpressionBodySyntax:
active: true
WildcardImport:
active: false
ReturnCount:
active: false
MagicNumber:
ignorePropertyDeclaration: true
ForbiddenComment:
active: false
2023-05-20 10:11:14 +00:00
ThrowsCount:
active: false
UseCheckOrError:
active: false
UseRequire:
active: false
2023-04-29 14:57:25 +00:00
complexity:
CognitiveComplexMethod:
active: true
ComplexCondition:
active: true
ComplexInterface:
active: true
2023-04-29 16:25:54 +00:00
threshold: 30
2023-04-29 14:57:25 +00:00
LabeledExpression:
2023-04-29 16:25:54 +00:00
active: false
2023-04-29 14:57:25 +00:00
NamedArguments:
active: true
2023-04-29 16:25:54 +00:00
ignoreArgumentsMatchingNames: true
threshold: 5
2023-04-29 14:57:25 +00:00
NestedBlockDepth:
active: true
NestedScopeFunctions:
active: true
ReplaceSafeCallChainWithRun:
active: true
StringLiteralDuplication:
2023-04-29 16:25:54 +00:00
active: false
LongParameterList:
constructorThreshold: 10
TooManyFunctions:
ignoreDeprecated: true
ignoreOverridden: true
ignorePrivate: true
LongMethod:
active: true
excludes:
- "**/test/**"
2023-04-29 14:57:25 +00:00
exceptions:
ExceptionRaisedInUnexpectedLocation:
active: true
NotImplementedDeclaration:
active: true
ObjectExtendsThrowable:
active: true
ThrowingExceptionInMain:
active: true
ThrowingExceptionsWithoutMessageOrCause:
active: true
ThrowingNewInstanceOfSameException:
active: true
TooGenericExceptionCaught:
active: true
TooGenericExceptionThrown:
active: true
formatting:
Indentation:
indentSize: 4
2023-04-29 16:25:54 +00:00
NoWildcardImports:
active: false
2023-04-29 14:57:25 +00:00
naming:
FunctionMaxLength:
active: true
excludes:
- "**/test/**"
2023-04-29 14:57:25 +00:00
FunctionMinLength:
active: true
LambdaParameterNaming:
active: true
2023-04-29 16:25:54 +00:00
ConstructorParameterNaming:
excludes:
- "**/domain/model/ap/*"
ignoreOverridden: true
VariableNaming:
excludes:
- "**/domain/model/ap/*"
2023-04-29 14:57:25 +00:00
performance:
UnnecessaryPartOfBinaryExpression:
active: true
UnnecessaryTemporaryInstantiation:
active: true
potential-bugs:
CastToNullableType:
active: true
DontDowncastCollectionTypes:
active: true
ElseCaseInsteadOfExhaustiveWhen:
active: true