2022-05-12 22:56:49 +08:00
|
|
|
# Default rules: https://github.com/detekt/detekt/blob/main/detekt-core/src/main/resources/default-detekt-config.yml
|
|
|
|
|
|
|
|
style:
|
|
|
|
MaxLineLength:
|
|
|
|
# Default is 120
|
|
|
|
maxLineLength: 160
|
|
|
|
MagicNumber:
|
|
|
|
active: false
|
|
|
|
ReturnCount:
|
|
|
|
active: false
|
|
|
|
UnnecessaryAbstractClass:
|
2022-05-12 23:16:18 +08:00
|
|
|
active: false
|
|
|
|
FunctionOnlyReturningConstant:
|
|
|
|
active: false
|
|
|
|
UnusedPrivateMember:
|
|
|
|
# TODO Enable it
|
|
|
|
active: false
|
|
|
|
ThrowsCount:
|
|
|
|
active: false
|
|
|
|
LoopWithTooManyJumpStatements:
|
|
|
|
active: false
|
2022-05-12 23:54:30 +08:00
|
|
|
SerialVersionUIDInSerializableClass:
|
|
|
|
active: false
|
|
|
|
ProtectedMemberInFinalClass:
|
|
|
|
active: false
|
2022-05-12 23:16:18 +08:00
|
|
|
|
|
|
|
empty-blocks:
|
|
|
|
EmptyFunctionBlock:
|
|
|
|
active: false
|
|
|
|
EmptySecondaryConstructor:
|
|
|
|
active: false
|
|
|
|
|
|
|
|
potential-bugs:
|
|
|
|
ImplicitDefaultLocale:
|
2022-05-12 22:56:49 +08:00
|
|
|
active: false
|
2022-05-12 23:05:19 +08:00
|
|
|
|
|
|
|
exceptions:
|
|
|
|
TooGenericExceptionCaught:
|
2022-05-12 23:16:18 +08:00
|
|
|
active: false
|
|
|
|
SwallowedException:
|
|
|
|
active: false
|
|
|
|
ThrowingExceptionsWithoutMessageOrCause:
|
|
|
|
active: false
|
|
|
|
TooGenericExceptionThrown:
|
|
|
|
active: false
|
|
|
|
|
|
|
|
complexity:
|
|
|
|
TooManyFunctions:
|
|
|
|
active: false
|
|
|
|
LongMethod:
|
|
|
|
active: false
|
|
|
|
LongParameterList:
|
|
|
|
active: false
|
|
|
|
ComplexMethod:
|
|
|
|
active: false
|
|
|
|
NestedBlockDepth:
|
|
|
|
active: false
|
|
|
|
ComplexCondition:
|
|
|
|
active: false
|
|
|
|
LargeClass:
|
|
|
|
active: false
|
|
|
|
|
|
|
|
naming:
|
|
|
|
VariableNaming:
|
|
|
|
# TODO Enable it
|
|
|
|
active: false
|
|
|
|
TopLevelPropertyNaming:
|
|
|
|
# TODO Enable it
|
2022-05-12 23:05:19 +08:00
|
|
|
active: false
|
2022-05-12 23:54:30 +08:00
|
|
|
|
|
|
|
performance:
|
|
|
|
SpreadOperator:
|
|
|
|
active: false
|
2022-05-13 15:51:14 +08:00
|
|
|
|
|
|
|
# Note: all rules for `comments` are disabled by default, but I put them here to be aware of their existence
|
|
|
|
comments:
|
|
|
|
AbsentOrWrongFileLicense:
|
|
|
|
active: false
|
|
|
|
licenseTemplateFile: 'license.template'
|
|
|
|
licenseTemplateIsRegex: false
|
|
|
|
CommentOverPrivateFunction:
|
|
|
|
active: false
|
|
|
|
CommentOverPrivateProperty:
|
|
|
|
active: false
|
|
|
|
DeprecatedBlockTag:
|
|
|
|
active: true
|
|
|
|
EndOfSentenceFormat:
|
2022-05-16 14:52:29 +08:00
|
|
|
active: true
|
2022-05-13 15:51:14 +08:00
|
|
|
OutdatedDocumentation:
|
2022-05-18 14:47:18 +08:00
|
|
|
active: true
|
2022-05-13 15:51:14 +08:00
|
|
|
UndocumentedPublicClass:
|
|
|
|
active: false
|
|
|
|
UndocumentedPublicFunction:
|
|
|
|
active: false
|
|
|
|
UndocumentedPublicProperty:
|
|
|
|
active: false
|