-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdetekt.yml
More file actions
33 lines (32 loc) · 873 Bytes
/
Copy pathdetekt.yml
File metadata and controls
33 lines (32 loc) · 873 Bytes
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
complexity:
CyclomaticComplexMethod: # Add this rule configuration
active: false # Set to false to disable
# threshold: 15
LongMethod:
active: true
threshold: 60
ignoreAnnotated: ['Composable']
LongParameterList:
active: true
functionThreshold: 12 # Increase the threshold if needed
excludes: ['**/presentation/resources/**']
ignoreAnnotated: ['@Composable'] # You might already have this
ignoreDefaultParameters: true
naming:
FunctionNaming:
active: true
ignoreAnnotated: ['Composable']
ConstructorParameterNaming:
active: true
excludes: ['**/presentation/resources/**']
style:
MagicNumber:
active: false
excludes: ['**/presentation/theme/**']
MaxLineLength:
active: true
excludes: [ '**/kotlin/secrets/**' ]
# In your detekt.yml
ReturnCount:
active: true
max: 6