-
Notifications
You must be signed in to change notification settings - Fork 26
/
.reek.yml
91 lines (77 loc) · 1.7 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
detectors:
IrresponsibleModule:
enabled: false
TooManyStatements:
max_statements: 10
TooManyInstanceVariables:
max_instance_variables: 7
# Kinda broken reek right now
ControlParameter:
enabled: false
# Pretty dumb if a parameter is optional
BooleanParameter:
enabled: false
# Migration helpers are like db code, but cleaner
FeatureEnvy:
exclude:
- "MigrationHelper"
UncommunicativeVariableName:
exclude:
- "MigrationHelper"
# Allow simple ones, usually used for #sort or alike
accept: [x, y, a, b]
# API versions
UncommunicativeModuleName:
accept:
- "/V[0-9]+/"
#TODO
DataClump:
exclude:
- "Auth::Model"
- "MigrationHelper"
UtilityFunction:
exclude:
- "Auth::Model"
- "TournamentDriver" # Tournament driver is special
- "ReduceErrorsValidator"
TooManyMethods:
exclude:
- "Leagues::MatchesController"
directories:
# PremaDonna methods show intent when it comes to db operations
# "models":
# PrimaDonnaMethod:
# enabled: false
# helpers are always utility functions
"helpers":
UtilityFunction:
enabled: false
FeatureEnvy:
enabled: false
# as are concerns
"concerns":
UtilityFunction:
enabled: false
FeatureEnvy:
enabled: false
# as are match seeders
"match_seeder":
UtilityFunction:
enabled: false
FeatureEnvy:
enabled: false
# as are custom validators
"validators":
UtilityFunction:
enabled: false
FeatureEnvy:
enabled: false
# as are services
"services":
UtilityFunction:
enabled: false
FeatureEnvy:
enabled: false
# db code is messy
exclude_paths:
- db