-
Notifications
You must be signed in to change notification settings - Fork 10
/
reek.reek
111 lines (109 loc) · 2.41 KB
/
reek.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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
---
IrresponsibleModule:
enabled: false
"app/controllers":
NestedIterators:
max_allowed_nesting: 2
UnusedPrivateMethod:
enabled: false
InstanceVariableAssumption:
enabled: false
"app/helpers":
UtilityFunction:
enabled: false
"db/migrate":
FeatureEnvy:
enabled: false
TooManyStatements:
enabled: false
UncommunicativeVariableName:
accept: t # for generated migrations
"app/models":
UncommunicativeVariableName:
accept:
- x
- y
### TODO
InstanceVariableAssumption:
exclude:
- Api::V1::RadarsController
- BulkTopicsController
- Radars::BlipsController
- StarterTopicsController
- Rasem::SVGImage
UncommunicativeModuleName:
exclude:
- Api::V1
DuplicateMethodCall:
max_calls: 2
exclude:
- RadarDiagram
UtilityFunction:
exclude:
- Radars::BlipsController#quadrants
- Radars::BlipsController#rings
- Starter#user_created
TooManyStatements:
exclude:
- initialize
- RadarsController#show
- ApplicationHelper#can?
- ApplicationHelper#display_base_errors
- RadarDiagram#draw
- RadarDiagram#draw_labels
- RadarDiagram#draw_point
- DeviseCreateUsers#change
- CreateFriendlyIdSlugs#change
- register_account
- sign_in
FeatureEnvy:
exclude:
- Ability#can?
- ApplicationHelper#display_base_errors
- RadarDiagram#draw_labels
- RadarDiagram#draw_point
- DeviseCreateUsers#change
- CreateRadars#change
- CreateBlips#change
- CreateTopics#change
- QuadrantList#names_with_values
- RingList#names_with_values
Attribute:
exclude:
- BulkTopic#creator
- BulkTopic#topics
- Radar#topics
- User#login
LongParameterList:
exclude:
- RadarDiagram#draw_arc
- SVGPath::Absolute#self.circular_arc
- SVGPath::Absolute#self.elliptical_arc
- Rasem::SVGImage#circle
NestedIterators:
exclude:
- RadarDiagram#draw
NilCheck:
exclude:
- ApplicationController#authenticate_admin
UncommunicativeParameterName:
exclude:
- RadarDiagram#draw_arc
- SVGPath::Absolute#self.circular_arc
- SVGPath::Absolute#self.elliptical_arc
- SVGPath::Absolute#self.move_to
- Rasem::SVGImage#circle
- Rasem::SVGImage#path
UncommunicativeVariableName:
exclude:
- RadarDiagram#draw_labels
- RadarDiagram#draw_point
- StarterTopics
- Rasem::SVGImage#path
- DeviseCreateUsers#change
- CreateRadars#change
- CreateBlips#change
- CreateFriendlyIdSlugs#change
- CreateTopics#change
UnusedParameters:
enabled: false # covered by RuboCop