-
Notifications
You must be signed in to change notification settings - Fork 0
/
.reek.yml
67 lines (64 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
---
detectors:
DuplicateMethodCall:
max_calls: 2
IrresponsibleModule:
enabled: false
LongParameterList:
enabled: false # Covered by Rubocop
NilCheck:
enabled: false # We leverage Safe Navigation (a kind of nil check) a lot, but can't allow it specifically
TooManyStatements:
max_statements: 6
TooManyInstanceVariables:
max_instance_variables: 6
UncommunicativeMethodName:
accept:
- "t" # A Rails-esque alias for translate
UncommunicativeVariableName:
accept:
- "_"
- "e"
- "i"
- "x"
UtilityFunction:
public_methods_only: true
directories:
"app/controllers":
InstanceVariableAssumption:
enabled: false
IrresponsibleModule:
enabled: false
NestedIterators:
max_allowed_nesting: 2
TooManyStatements:
max_statements: 7
UnusedPrivateMethod:
enabled: false
"app/helpers":
IrresponsibleModule:
enabled: false
UtilityFunction:
enabled: false
"app/mailers":
InstanceVariableAssumption:
enabled: false
"app/models":
InstanceVariableAssumption:
enabled: false
"app/resources":
InstanceVariableAssumption:
enabled: false
"spec":
DuplicateMethodCall:
enabled: false
TooManyStatements:
enabled: false
UncommunicativeVariableName:
enabled: false
UtilityFunction:
enabled: false
# Directories below will not be scanned at all
exclude_paths:
- db/migrate
- tmp