This repository has been archived by the owner on Mar 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
.rubocop_todo.yml
248 lines (222 loc) · 7.34 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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
Style/BlockDelimiters:
Exclude:
- 'spec/**/*'
Lint/UnusedMethodArgument:
Exclude:
- 'lib/payment_processor/braintree/error_processing.rb'
# Offense count: 6
Lint/AmbiguousOperator:
Exclude:
- 'spec/liquid/page_plugin_switcher_spec.rb'
- 'spec/models/page_spec.rb'
- 'spec/models/plugins/shared_examples.rb'
- 'spec/models/tag_spec.rb'
# Offense count: 3
Lint/HandleExceptions:
Exclude:
- 'app/controllers/application_controller.rb'
- 'app/liquid/liquid_renderer.rb'
# Offense count: 2
Lint/ParenthesesAsGroupedExpression:
Exclude:
- 'spec/requests/api/go_cardless/go_cardless_spec.rb'
- 'spec/requests/api/members_spec.rb'
# Offense count: 47
Lint/UselessAssignment:
Exclude:
- 'app/liquid/page_plugin_switcher.rb'
- 'app/models/page.rb'
- 'app/models/share/variant.rb'
- 'spec/helpers/pages_helper_spec.rb'
- 'spec/liquid/liquid_renderer_spec.rb'
- 'spec/models/action_user_spec.rb'
- 'spec/models/liquid_layout_spec.rb'
- 'spec/models/liquid_partial_spec.rb'
- 'spec/models/page_spec.rb'
- 'spec/models/payment/braintree_spec.rb'
- 'spec/requests/api/braintree/braintree_spec.rb'
- 'spec/requests/uris_spec.rb'
- 'spec/services/action_builder_spec.rb'
- 'spec/services/page_updater_spec.rb'
# Offense count: 2
Lint/Void:
Exclude:
- 'lib/payment_processor/go_cardless/error_processing.rb'
- 'spec/models/page_spec.rb'
# Offense count: 34
Metrics/AbcSize:
Max: 48
# Offense count: 3
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 125
# Offense count: 3
Metrics/CyclomaticComplexity:
Max: 10
Exclude:
- 'app/services/search/page_searcher.rb'
# Offense count: 51
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 52
# Offense count: 7
# Configuration parameters: CountComments.
Metrics/ModuleLength:
Max: 394
# Offense count: 4
# Configuration parameters: CountKeywordArgs.
Metrics/ParameterLists:
Max: 8
# Offense count: 2
Metrics/PerceivedComplexity:
Max: 9
# Offense count: 9
Naming/AccessorMethodName:
Exclude:
- 'app/controllers/api/pages_controller.rb'
- 'app/controllers/application_controller.rb'
- 'app/controllers/pages_controller.rb'
- 'app/services/action_queue.rb'
- 'lib/liquid_markup_seeder.rb'
# Offense count: 2
Style/AsciiComments:
Exclude:
- 'Gemfile'
- 'lib/payment_processor/currency.rb'
# Offense count: 43
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
Enabled: false
# Offense count: 296
Style/Documentation:
Enabled: false
# Offense count: 9
Style/EachWithObject:
Exclude:
- 'app/helpers/api/analytics_helper.rb'
- 'app/liquid/shares.rb'
- 'app/models/plugins.rb'
- 'lib/analytics/page.rb'
- 'spec/liquid/liquid_renderer_spec.rb'
- 'spec/requests/api/shared_language_pages.rb'
# Offense count: 1
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: format, sprintf, percent
Style/FormatString:
Exclude:
- 'app/models/plugins/thermometer.rb'
- 'app/models/plugins/actions_thermometer.rb'
- 'app/models/plugins/donations_thermometer.rb'
# Offense count: 5
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Exclude:
- 'app/models/form.rb'
- 'app/models/link.rb'
- 'app/services/page_builder.rb'
- 'lib/payment_processor/braintree/subscription.rb'
# Offense count: 7
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: module_function, extend_self
Style/ModuleFunction:
Exclude:
- 'app/services/page_service.rb'
- 'lib/action_kit/client.rb'
- 'lib/action_kit/helper.rb'
- 'lib/champaign_queue.rb'
- 'lib/donations/utils.rb'
- 'lib/liquid_markup_seeder.rb'
- 'lib/payment_processor/go_cardless/helper.rb'
# Offense count: 15
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
# NamePrefix: is_, has_, have_
# NamePrefixBlacklist: is_, has_, have_
# NameWhitelist: is_a?
Naming/PredicateName:
Exclude:
- 'spec/**/*'
- 'app/liquid/liquid_tag_finder.rb'
- 'app/models/share/email.rb'
- 'app/models/share/twitter.rb'
- 'app/services/action_builder.rb'
- 'app/services/action_queue.rb'
- 'app/services/form_validator.rb'
- 'app/services/manage_braintree_donation.rb'
- 'app/validators/action_kit_fields.rb'
# Offense count: 1
# Configuration parameters: Methods.
# Methods: {"reduce"=>["a", "e"]}, {"inject"=>["a", "e"]}
Style/SingleLineBlockParams:
Exclude:
- 'spec/support/helper_functions.rb'
Style/EmptyMethod:
Enabled: false
Metrics/BlockLength:
Exclude:
- Guardfile
- app/admin/**
- config/**/*
- lib/**/*
- spec/**/*
- app/controllers/pages_controller.rb
- db/schema.rb
Metrics/LineLength:
Max: 120
Exclude:
- app/controllers/liquid_layouts_controller.rb
- app/controllers/liquid_partials_controller.rb
- app/liquid/liquid_renderer.rb
- app/liquid/page_plugin_switcher.rb
- app/liquid/shares.rb
- app/models/image.rb
- app/models/liquid_partial.rb
- app/models/payment/braintree.rb
- app/models/payment/go_cardless.rb
- app/services/action_queue.rb
- app/services/form_validator.rb
- app/services/name_splitter.rb
- app/services/postal_validator.rb
- app/services/search/page_searcher.rb
- config/initializers/devise.rb
- config/routes.rb
- db/migrate/**
- db/schema.rb
- lib/donations/utils.rb
- lib/payment_processor/braintree/**
- lib/payment_processor/go_cardless/**
- lib/tasks/**
- spec/controllers/api/actions_controller_spec.rb
- spec/controllers/api/go_cardless_controller_spec.rb
- spec/controllers/api/payment/braintree_controller_spec.rb
- spec/controllers/application_controller_spec.rb
- spec/controllers/images_controller_spec.rb
- spec/controllers/pages_controller_spec.rb
- spec/lib/champaign_queue/clients/sqs_spec.rb
- spec/lib/payment_processor/braintree/error_processing_spec.rb
- spec/lib/payment_processor/braintree/subscription_spec.rb
- spec/lib/payment_processor/braintree/webhook_handler_spec.rb
- spec/lib/payment_processor/go_cardless/error_processing_spec.rb
- spec/lib/payment_processor/go_cardless/subscription_spec.rb
- spec/lib/payment_processor/go_cardless/transaction_spec.rb
- spec/lib/payment_processor/go_cardless/webhook_handler_spec.rb
- spec/lib/payment_processor/go_cardless/webhook_signature_spec.rb
- spec/liquid/liquid_i18n_spec.rb
- spec/liquid/liquid_renderer_spec.rb
- spec/liquid/page_plugin_switcher_spec.rb
- spec/models/form_element_spec.rb
- spec/models/liquid_layout_spec.rb
- spec/models/liquid_partial_spec.rb
- spec/models/page_spec.rb
- spec/models/payment/braintree_spec.rb
- spec/models/payment/go_cardless/customer_spec.rb
- spec/requests/omniauth_with_devise_spec.rb
- spec/requests/api/members_spec.rb
- spec/requests/api/actions_spec.rb
- spec/requests/api/go_cardless/go_cardless_spec.rb
- spec/requests/api/go_cardless/webhooks_spec.rb
- spec/requests/api/braintree/braintree_spec.rb
- spec/requests/api/braintree/failure_spec.rb
- spec/requests/api/braintree/webhook_spec.rb
- spec/services/search/page_searcher/single_criterion_search/search_by_language_spec.rb
- spec/services/search/page_searcher/page_searcher_spec.rb