This repository has been archived by the owner on Feb 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetekt.yml
54 lines (50 loc) · 1.56 KB
/
detekt.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
complexity:
CyclomaticComplexMethod:
threshold: 30
ignoreSingleWhenExpression: true
LongMethod:
threshold: 200
LongParameterList:
ignoreDefaultParameters: true
ignoreAnnotated: ['Composable']
empty-blocks:
EmptyFunctionBlock:
ignoreOverridden: true
naming:
FunctionNaming:
ignoreAnnotated: ['Composable']
formatting:
ArgumentListWrapping:
maxLineLength: 140 # Must also be changed in .editorconfig
FunctionSignature:
maxLineLength: 140 # Must also be changed in .editorconfig
MaximumLineLength:
maxLineLength: 140 # Must also be changed in .editorconfig
ParameterListWrapping:
maxLineLength: 140 # Must also be changed in .editorconfig
ImportOrdering:
# Must also be changed in .editorconfig
layout: "*,java.**,javax.**,kotlin.**,kotlinx.**,^"
NoWildcardImports:
# Must also be changed in .editorconfig
packagesToUseImportOnDemandProperty: "androidx.compose.**"
TrailingCommaOnCallSite:
active: true
TrailingCommaOnDeclarationSite:
active: true
UnnecessaryParenthesesBeforeTrailingLambda:
active: true
style:
# UI has too many one-use numbers
MagicNumber:
active: false
MaxLineLength: # Duplicate of ktlint MaximumLineLength
active: false
ForbiddenComment:
active: false # TODO (how ironic): re-enable once we're production ready
ReturnCount:
# There are quite a bit of legitimate cases where the default (2) is too restrictive
# Let's block only on a very high amount of returns
max: 7
WildcardImport: # Duplicate of ktlint NoWildcardImports
active: false