-
Notifications
You must be signed in to change notification settings - Fork 14
/
.reek.yml
83 lines (83 loc) · 1.45 KB
/
.reek.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
---
directories: {}
detectors:
IrresponsibleModule:
enabled: false
UtilityFunction:
public_methods_only: true
Attribute:
enabled: true
DuplicateMethodCall:
max_calls: 1
NilCheck:
enabled: true
TooManyStatements:
max_statements: 5
UncommunicativeVariableName:
reject:
- "/^.$/"
- "/[0-9]$/"
- "/[A-Z]/"
accept:
- "/^_$/"
- "/^e$/"
- "/^k$/"
- "/^v$/"
LongYieldList:
max_params: 3
LongParameterList:
max_params: 4
overrides:
initialize:
max_params: 5
FeatureEnvy:
enabled: true
InstanceVariableAssumption:
enabled: false
NestedIterators:
max_allowed_nesting: 2
TooManyInstanceVariables:
max_instance_variables: 4
MissingSafeMethod:
enabled: true
exclude:
- validate!
ControlParameter:
enabled: true
UncommunicativeParameterName:
reject:
- "/^.$/"
- "/[0-9]$/"
- "/[A-Z]/"
- "/^_/"
accept:
- s3
TooManyConstants:
max_constants: 5
ManualDispatch:
enabled: true
BooleanParameter:
enabled: true
UncommunicativeModuleName:
reject:
- "/^.$/"
- "/[0-9]$/"
accept:
- S3
TooManyMethods:
max_methods: 15
UncommunicativeMethodName:
reject:
- "/^[a-z]$/"
- "/[0-9]$/"
- "/[A-Z]/"
DataClump:
max_copies: 2
min_clump_size: 2
RepeatedConditional:
enabled: true
ClassVariable:
enabled: true
exclude_paths:
- vendor
- sql_control_client