forked from solidusio-contrib/solidus_virtual_gift_card
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop_todo.yml
202 lines (176 loc) · 6.45 KB
/
.rubocop_todo.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2020-01-21 11:29:49 +0100 using RuboCop version 0.76.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: with_first_argument, with_fixed_indentation
Layout/AlignArguments:
Exclude:
- 'config/initializers/ransack.rb'
- 'spec/features/admin/gift_cards_spec.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity.
# SupportedStylesAlignWith: start_of_line, def
Layout/DefEndAlignment:
Exclude:
- 'app/controllers/spree/api/gift_cards_controller.rb'
# Offense count: 4
Lint/AmbiguousBlockAssociation:
Exclude:
- 'spec/models/spree/order_contents_spec.rb'
- 'spec/models/spree/virtual_gift_card_spec.rb'
# Offense count: 1
Lint/AmbiguousOperator:
Exclude:
- 'lib/solidus_virtual_gift_card/engine.rb'
# Offense count: 1
Lint/UselessAssignment:
Exclude:
- 'spec/models/spree/order_contents_spec.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect.
Performance/TimesMap:
Exclude:
- 'app/models/spree/redemption_code_generator.rb'
# Offense count: 4
RSpec/AnyInstance:
Exclude:
- 'spec/controllers/spree/admin/gift_cards_controller_spec.rb'
- 'spec/features/admin/gift_cards_spec.rb'
- 'spec/features/admin/products_card_spec.rb'
# Offense count: 45
# Configuration parameters: Prefixes.
# Prefixes: when, with, without
RSpec/ContextWording:
Exclude:
- 'spec/controllers/spree/api/gift_cards_controller_spec.rb'
- 'spec/mailers/spree/gift_card_mailer_spec.rb'
- 'spec/models/concerns/spree/redemption_code_generator_spec.rb'
- 'spec/models/spree/order_contents_spec.rb'
- 'spec/models/spree/order_spec.rb'
- 'spec/models/spree/store_credit_category_spec.rb'
- 'spec/models/spree/virtual_gift_card_spec.rb'
# Offense count: 1
RSpec/DescribeClass:
Exclude:
- 'spec/lib/tasks/send_gift_card_emails_spec.rb'
# Offense count: 3
RSpec/ExpectInHook:
Exclude:
- 'spec/controllers/spree/admin/gift_cards_controller_spec.rb'
- 'spec/models/spree/virtual_gift_card_spec.rb'
# Offense count: 5
# Configuration parameters: AssignmentOnly.
RSpec/InstanceVariable:
Exclude:
- 'spec/models/spree/order_contents_spec.rb'
# Offense count: 10
RSpec/LetSetup:
Exclude:
- 'spec/controllers/spree/admin/gift_cards_controller_spec.rb'
- 'spec/controllers/spree/api/gift_cards_controller_spec.rb'
- 'spec/models/spree/line_item_spec.rb'
- 'spec/models/spree/virtual_gift_card_spec.rb'
# Offense count: 18
# Configuration parameters: .
# SupportedStyles: have_received, receive
RSpec/MessageSpies:
EnforcedStyle: receive
# Offense count: 17
# Configuration parameters: AggregateFailuresByDefault.
RSpec/MultipleExpectations:
Max: 6
# Offense count: 100
# Configuration parameters: IgnoreSharedExamples.
RSpec/NamedSubject:
Exclude:
- 'spec/controllers/spree/admin/gift_cards_controller_spec.rb'
- 'spec/controllers/spree/api/gift_cards_controller_spec.rb'
- 'spec/lib/tasks/send_gift_card_emails_spec.rb'
- 'spec/mailers/spree/gift_card_mailer_spec.rb'
- 'spec/models/concerns/spree/redemption_code_generator_spec.rb'
- 'spec/models/spree/line_item_spec.rb'
- 'spec/models/spree/order_contents_spec.rb'
- 'spec/models/spree/order_spec.rb'
- 'spec/models/spree/store_credit_category_spec.rb'
- 'spec/models/spree/virtual_gift_card_spec.rb'
# Offense count: 31
RSpec/NestedGroups:
Max: 6
# Offense count: 1
RSpec/ScatteredLet:
Exclude:
- 'spec/controllers/spree/api/gift_cards_controller_spec.rb'
# Offense count: 6
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
RSpec/VerifiedDoubles:
Exclude:
- 'spec/lib/tasks/send_gift_card_emails_spec.rb'
- 'spec/models/spree/order_spec.rb'
- 'spec/models/spree/virtual_gift_card_spec.rb'
# Offense count: 1
# Configuration parameters: Include.
# Include: db/migrate/*.rb
Rails/CreateTableWithTimestamps:
Exclude:
- 'db/migrate/20140623152903_create_virtual_gift_card.rb'
# Offense count: 6
# Configuration parameters: EnforcedStyle.
# SupportedStyles: strict, flexible
Rails/Date:
Exclude:
- 'app/decorators/models/solidus_virtual_gift_card/spree/order_contents_decorator.rb'
- 'lib/tasks/send_gift_card_emails.rake'
- 'spec/lib/tasks/send_gift_card_emails_spec.rb'
- 'spec/models/spree/order_contents_spec.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/FindBy:
Exclude:
- 'app/models/spree/virtual_gift_card.rb'
# Offense count: 1
# Configuration parameters: Include.
# Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
Rails/Output:
Exclude:
- 'lib/generators/solidus_virtual_gift_card/install/install_generator.rb'
# Offense count: 3
# Configuration parameters: Blacklist, Whitelist.
# Blacklist: decrement!, decrement_counter, increment!, increment_counter, toggle!, touch, update_all, update_attribute, update_column, update_columns, update_counters
Rails/SkipsModelValidations:
Exclude:
- 'db/migrate/20151111211220_backfill_inventory_units_on_gift_card.rb'
- 'spec/controllers/spree/admin/gift_cards_controller_spec.rb'
- 'spec/features/admin/gift_cards_spec.rb'
# Offense count: 5
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, EnforcedStyle.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
Exclude:
- 'app/controllers/spree/admin/gift_cards_controller.rb'
- 'app/controllers/spree/api/gift_cards_controller.rb'
- 'app/mailers/spree/gift_card_mailer.rb'
- 'app/models/spree/redemption_code_generator.rb'
- 'app/models/spree/virtual_gift_card.rb'
# Offense count: 4
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Exclude:
- 'app/controllers/spree/admin/gift_cards_controller.rb'
- 'app/decorators/models/solidus_virtual_gift_card/spree/order_contents_decorator.rb'
# Offense count: 41
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Metrics/LineLength:
Max: 170