-
Notifications
You must be signed in to change notification settings - Fork 1
/
reek.yml
96 lines (93 loc) · 1.69 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
84
85
86
87
88
89
90
91
92
93
94
95
96
#
# This file is part of the metrics repository. Copyright (C) 2013 and above Shogun <[email protected]>.
# Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
#
---
### Enabled ###
ClassVariable:
enabled: true
exclude: []
DuplicateMethodCall:
enabled: true
exclude: []
max_calls: 2
allow_calls: []
LongParameterList:
enabled: true
exclude: []
max_params: 5
overrides:
initialize:
max_params: 10
LongYieldList:
enabled: true
exclude: []
max_params: 5
NestedIterators:
enabled: true
exclude: []
max_allowed_nesting: 3
ignore_iterators: []
NilCheck:
enabled: true
exclude: []
RepeatedConditional:
enabled: true
exclude: []
max_ifs: 2
TooManyInstanceVariables:
enabled: true
exclude: []
max_instance_variables: 15
TooManyMethods:
enabled: true
exclude: []
max_methods: 25
TooManyStatements:
enabled: true
exclude:
- initialize
max_statements: 15
UncommunicativeMethodName:
enabled: true
exclude: []
reject:
- !ruby/regexp /^[a-z]$/
- !ruby/regexp /[0-9]$/
- !ruby/regexp /[A-Z]/
accept: []
UncommunicativeModuleName:
enabled: true
exclude: []
reject:
- !ruby/regexp /^.$/
- !ruby/regexp /[0-9]$/
accept:
- Inline::C
UnusedParameters:
enabled: true
exclude: []
### Enablable ###
FeatureEnvy:
enabled: false
exclude: []
IrresponsibleModule:
enabled: false
exclude: []
### Disabled ###
Attribute:
enabled: false
exclude: []
BooleanParameter:
enabled: false
ControlParameter:
enabled: false
exclude: []
DataClump:
enabled: false
UncommunicativeParameterName:
enabled: false
UncommunicativeVariableName:
enabled: false
UtilityFunction:
enabled: false