-
Notifications
You must be signed in to change notification settings - Fork 0
/
detekt.yml
97 lines (81 loc) · 2.02 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# Find all defined configuration options in the default configuration
# https://github.com/detekt/detekt/blob/main/detekt-core/src/main/resources/default-detekt-config.yml
# build: https://detekt.dev/docs/introduction/configuration/
build:
maxIssues: 0
# comments: https://detekt.dev/docs/rules/comments/
comments:
active: true
CommentOverPrivateFunction:
active: false
CommentOverPrivateProperty:
active: false
DeprecatedBlockTag:
active: true
EndOfSentenceFormat:
active: false
KDocReferencesNonPublicProperty:
active: true
OutdatedDocumentation:
active: true
# UndocumentedPublicClass:
# active: true
# UndocumentedPublicFunction:
# active: true
# complexity: https://detekt.dev/docs/rules/complexity/
complexity:
active: true
LongParameterList:
active: true
constructorThreshold: 10
functionThreshold: 8
LongMethod:
threshold: 120
NestedScopeFunctions:
active: true
# exceptions: https://detekt.dev/docs/rules/exceptions/
exceptions:
active: true
# formatting: https://detekt.dev/docs/rules/formatting/
formatting:
autoCorrect: true
ArgumentListWrapping:
active: false
ImportOrdering:
active: false
CommentSpacing:
active: false
AnnotationOnSeparateLine:
active: false
Indentation:
active: false
ParameterListWrapping:
active: false
Wrapping:
active: false
# naming: https://detekt.dev/docs/rules/naming/
naming:
BooleanPropertyNaming:
active: true
FunctionNaming:
# adjust pattern to support compose function naming
functionPattern: '([A-Za-z][a-zA-Z0-9]*)|(`.*`)'
TopLevelPropertyNaming:
constantPattern: '[A-Z][_A-Z0-9]*'
# style: https://detekt.dev/docs/rules/style/
style:
active: true
MagicNumber:
active: false
WildcardImport:
active: true
ForbiddenComment:
allowedPatterns: "TODO|FIXME:\\s\\[[a-zA-Z]{2,}-?\\d{2,}\\]\\s"
ReturnCount:
active: false
UnusedParameter:
active: false
UnusedPrivateMember:
active: false
UnusedPrivateProperty:
active: false