-
Notifications
You must be signed in to change notification settings - Fork 14
/
.reek
63 lines (47 loc) · 1.17 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
57
58
59
60
61
62
63
---
Attribute:
enabled: false
# so judgy.. and without context
BooleanParameter:
enabled: false
ControlParameter:
enabled: false
DataClump:
min_clump_size: 4
DuplicateMethodCall:
enabled: false
# this is not a real thing
FeatureEnvy:
enabled: false
# this should have understanding of non-required parameters
LongParameterList:
max_params: 5
NestedIterators:
max_allowed_nesting: 3
# you don't know my life
NilCheck:
enabled: false
# more lacking context judgement - when _would_ you be ok with '!' ?
PrimaDonnaMethod:
enabled: false
# this feels a bit arbitrary.. maybe would make more sense if was an average
TooManyStatements:
max_statements: 30
# see above
TooManyInstanceVariables:
max_instance_variables: 20
# see above
TooManyMethods:
max_methods: 20
# i don't name my exceptions specifically. that doesn't make me a bad person.
UncommunicativeVariableName:
accept: /^[a|b|e|f|g|h|i|j|k|l|m|p|r|s|u|v]$/
# or my comparators in ~sort() functions
## https://github.com/troessner/reek/issues/886
UncommunicativeParameterName:
accept:
- a
- b
# got dinged for using class variables.. how else would you use self.startup?
exclude_paths:
- test/