Skip to content

Commit

Permalink
Fix detekt setup
Browse files Browse the repository at this point in the history
  • Loading branch information
rubengees committed Feb 11, 2020
1 parent 7aee1ca commit 99a69ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 53 deletions.
4 changes: 1 addition & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
52 changes: 2 additions & 50 deletions config/detekt/detekt.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 99a69ac

Please sign in to comment.