diff --git a/build.gradle b/build.gradle index 9e151090..c995cd28 100755 --- a/build.gradle +++ b/build.gradle @@ -203,11 +203,9 @@ kapt { detekt { version = detektPluginVersion - parallel = true - failFast = true + buildUponDefaultConfig = true config = files("$projectDir/config/detekt/detekt.yml") - input = files("$projectDir/src/main/kotlin") reports { xml.destination = file("$buildDir/reports/detekt/detekt.xml") diff --git a/config/detekt/detekt.yml b/config/detekt/detekt.yml index d1d9ec42..db52ec86 100644 --- a/config/detekt/detekt.yml +++ b/config/detekt/detekt.yml @@ -1,64 +1,16 @@ -comments: - UndocumentedPublicClass: - searchInInnerClass: false - searchInInnerInterface: false - searchInInnerObject: false - searchInNestedClass: false - UndocumentedPublicFunction: - active: false - UndocumentedPublicProperty: - active: false - complexity: - ComplexCondition: - active: false - ComplexMethod: - active: false - LabeledExpression: - active: false - LargeClass: - active: false - LongMethod: - active: false - LongParameterList: - active: false - NestedBlockDepth: - active: false - StringLiteralDuplication: - active: false - TooManyFunctions: - active: false + active: false exceptions: - SwallowedException: - ignoredExceptionTypes: 'ActivityNotFoundException,NoSuchAlgorithmException,NumberFormatException, - PackageManager.NameNotFoundException,UnsupportedEncodingException' TooGenericExceptionCaught: active: false -naming: - FunctionMaxLength: - maximumFunctionNameLength: 40 - performance: SpreadOperator: active: false -potential-bugs: - UnsafeCast: - active: false - style: - DataClassContainsFunctions: - active: false - ExpressionBodySyntax: - active: false - ForbiddenComment: - active: true - values: 'FIXME:,STOPSHIP:' MagicNumber: active: false - OptionalUnit: - active: false - UseIfInsteadOfWhen: + ForbiddenComment: active: false