-
-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy path.reek.yml
51 lines (41 loc) · 998 Bytes
/
.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
---
exclude_paths:
- bin
detectors:
UtilityFunction:
public_methods_only: true
TooManyStatements:
exclude:
- initialize
max_statements: 8
RepeatedConditional:
max_ifs: 4
LongParameterList:
exclude:
- initialize
# This one just makes sure the Class/Module has a comment. Dumb.
IrresponsibleModule:
enabled: false
# Transaction result blocks are 3-deep
NestedIterators:
max_allowed_nesting: 3
UncommunicativeVariableName:
accept:
- i # array index
- c # config
- k # key
- v # value
- h # hash initializer (Hash.new { |h,k| h[k] = Hash.new })
- "_"
UncommunicativeModuleName:
accept:
- Auth0
# AS::Subscriber objects tend to rely heavily on `event` and `payload`, so its
# hard to avoid "Feature Envy", but is perfectly readable.
FeatureEnvy:
enabled: false
directories:
"spec/support":
UtilityFunction:
enabled: false
# vi:syntax=yaml