Skip to content

Commit 99a69ac

Browse files
committed
Fix detekt setup
1 parent 7aee1ca commit 99a69ac

File tree

2 files changed

+3
-53
lines changed

2 files changed

+3
-53
lines changed

build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,9 @@ kapt {
203203

204204
detekt {
205205
version = detektPluginVersion
206-
parallel = true
207-
failFast = true
206+
buildUponDefaultConfig = true
208207

209208
config = files("$projectDir/config/detekt/detekt.yml")
210-
input = files("$projectDir/src/main/kotlin")
211209

212210
reports {
213211
xml.destination = file("$buildDir/reports/detekt/detekt.xml")

config/detekt/detekt.yml

Lines changed: 2 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,16 @@
1-
comments:
2-
UndocumentedPublicClass:
3-
searchInInnerClass: false
4-
searchInInnerInterface: false
5-
searchInInnerObject: false
6-
searchInNestedClass: false
7-
UndocumentedPublicFunction:
8-
active: false
9-
UndocumentedPublicProperty:
10-
active: false
11-
121
complexity:
13-
ComplexCondition:
14-
active: false
15-
ComplexMethod:
16-
active: false
17-
LabeledExpression:
18-
active: false
19-
LargeClass:
20-
active: false
21-
LongMethod:
22-
active: false
23-
LongParameterList:
24-
active: false
25-
NestedBlockDepth:
26-
active: false
27-
StringLiteralDuplication:
28-
active: false
29-
TooManyFunctions:
30-
active: false
2+
active: false
313

324
exceptions:
33-
SwallowedException:
34-
ignoredExceptionTypes: 'ActivityNotFoundException,NoSuchAlgorithmException,NumberFormatException,
35-
PackageManager.NameNotFoundException,UnsupportedEncodingException'
365
TooGenericExceptionCaught:
376
active: false
387

39-
naming:
40-
FunctionMaxLength:
41-
maximumFunctionNameLength: 40
42-
438
performance:
449
SpreadOperator:
4510
active: false
4611

47-
potential-bugs:
48-
UnsafeCast:
49-
active: false
50-
5112
style:
52-
DataClassContainsFunctions:
53-
active: false
54-
ExpressionBodySyntax:
55-
active: false
56-
ForbiddenComment:
57-
active: true
58-
values: 'FIXME:,STOPSHIP:'
5913
MagicNumber:
6014
active: false
61-
OptionalUnit:
62-
active: false
63-
UseIfInsteadOfWhen:
15+
ForbiddenComment:
6416
active: false

0 commit comments

Comments
 (0)