-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.reek
56 lines (45 loc) · 1.46 KB
/
.reek
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
# Allow a small number of duplicate method calls.
DuplicateMethodCall:
max_calls: 5
# Don't force comments on classes / modules. In most cases the class name
# provides adequate info.
IrresponsibleModule:
enabled: false
# Disable unused parameter checks. These can occur a bit (e.g. in receive
# handlers) where it's nicer to keep standardisation of method signatures across
# modules.
UnusedParameters:
enabled: false
# Allow slightly longer methods than the default to accomodate sane levels of
# sequential actions.
TooManyStatements:
max_statements: 30
# Increase max method threshold to accomandate devices with a larger number of
# interaction points.
TooManyMethods:
max_methods: 30
# Nil checks / safe navigation operator are useful for parsing of module
# settings of unknown validity.
NilCheck:
enabled: false
# Boolean switches on state based methods (such as power and mute) are useful.
BooleanParameter:
enabled: false
ControlParameter:
enabled: false
# Allow for a larger number of constants for protocol definitions.
TooManyConstants:
max_constants: 20
# Suppress warning about parameter length within reason.
LongParameterList:
max_params: 4
# Prevent from flagging multiple calls to utility methods
# (e.g. is_affirmative?).
RepeatedConditional:
enabled: false
# Allow for device model numbers to be used as module names.
UncommunicativeModuleName:
enabled: false
# Support private, pure functions
UtilityFunction:
public_methods_only: true