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
|
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2020-09-24 12:23:52 UTC using RuboCop version 0.91.1.
# 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
Lint/AmbiguousBlockAssociation:
Exclude:
- 'spec/controllers/spree/admin/subscriptions_controller_spec.rb'
- 'spec/services/solidus_subscriptions/checkout_spec.rb'
# Offense count: 1
Lint/MissingSuper:
Exclude:
- 'app/services/solidus_subscriptions/user_mismatch_error.rb'
# Offense count: 1
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Naming/MemoizedInstanceVariableName:
Exclude:
- 'lib/solidus_subscriptions/processor.rb'
# Offense count: 1
RSpec/AnyInstance:
Exclude:
- 'spec/jobs/solidus_subscriptions/process_installments_job_spec.rb'
# Offense count: 46
# Configuration parameters: Prefixes.
# Prefixes: when, with, without
RSpec/ContextWording:
Exclude:
- 'spec/controllers/solidus_subscriptions/api/v1/line_items_controller_spec.rb'
- 'spec/controllers/spree/admin/subscriptions_controller_spec.rb'
- 'spec/lib/solidus_subscriptions/ability_spec.rb'
- 'spec/lib/solidus_subscriptions/processor_spec.rb'
- 'spec/models/solidus_subscriptions/installment_detail_spec.rb'
- 'spec/models/solidus_subscriptions/installment_spec.rb'
- 'spec/models/solidus_subscriptions/line_item_spec.rb'
- 'spec/models/solidus_subscriptions/subscription_spec.rb'
- 'spec/services/solidus_subscriptions/checkout_spec.rb'
- 'spec/services/solidus_subscriptions/line_item_builder_spec.rb'
- 'spec/services/solidus_subscriptions/order_builder_spec.rb'
# Offense count: 2
# Configuration parameters: CustomTransform, IgnoreMethods, SpecSuffixOnly.
RSpec/FilePath:
Exclude:
- 'spec/decorators/models/solidus_subscriptions/spree/order/finalize_creates_subscrptions_spec.rb'
- 'spec/decorators/models/solidus_subscriptions/spree/user/have_many_subscriptions.rb'
# Offense count: 1
# Configuration parameters: AssignmentOnly.
RSpec/InstanceVariable:
Exclude:
- 'spec/services/solidus_subscriptions/checkout_spec.rb'
# Offense count: 18
RSpec/LetSetup:
Exclude:
- 'spec/controllers/solidus_subscriptions/api/v1/subscriptions_controller_spec.rb'
- 'spec/decorators/controllers/solidus_subscriptions/spree/orders_controller/create_subscription_line_items_spec.rb'
- 'spec/lib/solidus_subscriptions/processor_spec.rb'
- 'spec/services/solidus_subscriptions/checkout_spec.rb'
- 'spec/services/solidus_subscriptions/line_item_builder_spec.rb'
# Offense count: 8
# Configuration parameters: EnforcedStyle.
# SupportedStyles: have_received, receive
RSpec/MessageSpies:
Exclude:
- 'spec/services/solidus_subscriptions/failure_dispatcher_spec.rb'
- 'spec/services/solidus_subscriptions/out_of_stock_dispatcher_spec.rb'
- 'spec/services/solidus_subscriptions/payment_failed_dispatcher_spec.rb'
- 'spec/services/solidus_subscriptions/success_dispatcher_spec.rb'
# Offense count: 2
RSpec/MultipleExpectations:
Max: 2
# Offense count: 27
# Configuration parameters: AllowSubject.
RSpec/MultipleMemoizedHelpers:
Max: 14
# Offense count: 90
# Configuration parameters: IgnoreSharedExamples.
RSpec/NamedSubject:
Enabled: false
# Offense count: 11
RSpec/NestedGroups:
Max: 4
# Offense count: 4
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/HasManyOrHasOneDependent:
Exclude:
- 'app/models/solidus_subscriptions/installment.rb'
- 'app/models/solidus_subscriptions/subscription.rb'
# Offense count: 2
# Configuration parameters: Include.
# Include: db/migrate/*.rb
Rails/ReversibleMigration:
Exclude:
- 'db/migrate/20160922164101_add_interval_length_and_units_to_subscription_line_items.rb'
- 'db/migrate/20170106224713_change_line_item_max_installments_to_end_date.rb'
# Offense count: 5
# Configuration parameters: ForbiddenMethods, AllowedMethods.
# ForbiddenMethods: decrement!, decrement_counter, increment!, increment_counter, insert, insert!, insert_all, insert_all!, toggle!, touch, touch_all, update_all, update_attribute, update_column, update_columns, update_counters, upsert, upsert_all
Rails/SkipsModelValidations:
Exclude:
- 'app/services/solidus_subscriptions/failure_dispatcher.rb'
- 'app/services/solidus_subscriptions/order_builder.rb'
- 'app/services/solidus_subscriptions/payment_failed_dispatcher.rb'
- 'spec/services/solidus_subscriptions/checkout_spec.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
# SupportedStyles: assign_to_condition, assign_inside_condition
Style/ConditionalAssignment:
Exclude:
- 'app/controllers/spree/admin/subscriptions_controller.rb'
# Offense count: 4
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Exclude:
- 'app/models/solidus_subscriptions/subscription.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: compact, exploded
Style/RaiseArgs:
Exclude:
- 'app/services/solidus_subscriptions/checkout.rb'
# Offense count: 11
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Layout/LineLength:
Max: 290
|