dispatch-rider 1.8.6 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/build.yml +50 -0
  3. data/.github/workflows/rubocop-challenger.yml +26 -0
  4. data/.gitignore +1 -0
  5. data/.rubocop.yml +31 -20
  6. data/.rubocop_todo.yml +904 -0
  7. data/.travis.yml +4 -4
  8. data/CHANGELOG.md +20 -0
  9. data/README.md +2 -2
  10. data/dispatch-rider.gemspec +16 -10
  11. data/gemfiles/Gemfile-5-2 +8 -0
  12. data/gemfiles/Gemfile-6-0 +8 -0
  13. data/gemfiles/Gemfile-6-1 +8 -0
  14. data/gemfiles/Gemfile-7-0 +8 -0
  15. data/lib/dispatch-rider/callbacks/access.rb +0 -1
  16. data/lib/dispatch-rider/callbacks/storage.rb +0 -2
  17. data/lib/dispatch-rider/callbacks/support.rb +0 -2
  18. data/lib/dispatch-rider/command.rb +0 -2
  19. data/lib/dispatch-rider/demultiplexer.rb +1 -1
  20. data/lib/dispatch-rider/dispatcher.rb +0 -2
  21. data/lib/dispatch-rider/error_handlers.rb +0 -1
  22. data/lib/dispatch-rider/handlers/inheritance_tracking.rb +0 -2
  23. data/lib/dispatch-rider/handlers/named_process.rb +0 -2
  24. data/lib/dispatch-rider/integrations/appsignal.rb +0 -2
  25. data/lib/dispatch-rider/logging/json_formatter.rb +0 -2
  26. data/lib/dispatch-rider/logging/lifecycle_logger.rb +0 -1
  27. data/lib/dispatch-rider/logging/text_formatter.rb +1 -3
  28. data/lib/dispatch-rider/logging/translator/base_translator.rb +0 -2
  29. data/lib/dispatch-rider/logging/translator/complete_translator.rb +0 -2
  30. data/lib/dispatch-rider/logging/translator/error_handler_fail_translator.rb +0 -2
  31. data/lib/dispatch-rider/logging/translator/fail_translator.rb +0 -2
  32. data/lib/dispatch-rider/logging/translator/start_translator.rb +0 -2
  33. data/lib/dispatch-rider/logging/translator/stop_translator.rb +0 -2
  34. data/lib/dispatch-rider/logging/translator/success_translator.rb +0 -2
  35. data/lib/dispatch-rider/logging/translator.rb +0 -2
  36. data/lib/dispatch-rider/logging.rb +0 -1
  37. data/lib/dispatch-rider/notification_services/aws_sns.rb +4 -4
  38. data/lib/dispatch-rider/notification_services/base.rb +1 -1
  39. data/lib/dispatch-rider/notification_services/file_system/channel.rb +1 -2
  40. data/lib/dispatch-rider/notification_services/file_system/notifier.rb +0 -2
  41. data/lib/dispatch-rider/publisher/configuration/destination.rb +0 -2
  42. data/lib/dispatch-rider/publisher/configuration/notification_service.rb +0 -2
  43. data/lib/dispatch-rider/publisher/configuration.rb +0 -2
  44. data/lib/dispatch-rider/publisher/configuration_reader.rb +0 -3
  45. data/lib/dispatch-rider/publisher/configuration_support.rb +0 -2
  46. data/lib/dispatch-rider/queue_services/aws_sqs/sqs_received_message.rb +6 -7
  47. data/lib/dispatch-rider/queue_services/aws_sqs.rb +28 -20
  48. data/lib/dispatch-rider/queue_services/file_system/fs_received_message.rb +0 -1
  49. data/lib/dispatch-rider/queue_services/file_system.rb +2 -2
  50. data/lib/dispatch-rider/queue_services/received_message.rb +0 -2
  51. data/lib/dispatch-rider/registrars/base.rb +2 -2
  52. data/lib/dispatch-rider/registrars/sns_channel.rb +1 -1
  53. data/lib/dispatch-rider/runner.rb +0 -1
  54. data/lib/dispatch-rider/version.rb +1 -1
  55. data/lib/dispatch-rider.rb +2 -0
  56. data/lib/generators/dispatch_rider/install/install_generator.rb +0 -2
  57. data/lib/generators/dispatch_rider/job/dispatch_job_generator.rb +0 -2
  58. data/spec/factories/messages.rb +7 -6
  59. data/spec/lib/dispatch-rider/callbacks/access_spec.rb +2 -2
  60. data/spec/lib/dispatch-rider/callbacks/storage_spec.rb +3 -3
  61. data/spec/lib/dispatch-rider/configuration_spec.rb +1 -1
  62. data/spec/lib/dispatch-rider/default_error_handler_spec.rb +1 -0
  63. data/spec/lib/dispatch-rider/demultiplexer_spec.rb +2 -2
  64. data/spec/lib/dispatch-rider/notification_services/aws_sns_spec.rb +3 -3
  65. data/spec/lib/dispatch-rider/notification_services/base_spec.rb +7 -7
  66. data/spec/lib/dispatch-rider/notification_services/file_system/channel_spec.rb +5 -4
  67. data/spec/lib/dispatch-rider/publisher/base_spec.rb +2 -2
  68. data/spec/lib/dispatch-rider/publisher/configuration/destination_spec.rb +1 -2
  69. data/spec/lib/dispatch-rider/publisher/configuration/notification_service_spec.rb +1 -2
  70. data/spec/lib/dispatch-rider/publisher/configuration_spec.rb +2 -2
  71. data/spec/lib/dispatch-rider/publisher_spec.rb +2 -1
  72. data/spec/lib/dispatch-rider/queue_services/aws_sqs_spec.rb +24 -34
  73. data/spec/lib/dispatch-rider/queue_services/file_system_spec.rb +2 -2
  74. data/spec/lib/dispatch-rider/scheduled_job_spec.rb +12 -12
  75. data/spec/lib/dispatch-rider/subscriber_spec.rb +4 -0
  76. data/spec/spec_helper.rb +32 -4
  77. data/spec/support/integration_support.rb +0 -1
  78. metadata +93 -33
  79. data/.rubocop.hound.yml +0 -261
  80. data/spec/lib/dispatch-rider/queue_services_spec.rb +0 -6
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,904 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2022-09-14 23:37:26 UTC using RuboCop version 1.36.0.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 1
10
+ # This cop supports safe autocorrection (--autocorrect).
11
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
12
+ # SupportedStyles: outdent, indent
13
+ Layout/AccessModifierIndentation:
14
+ Exclude:
15
+ - 'lib/dispatch-rider/command.rb'
16
+
17
+ # Offense count: 1
18
+ # This cop supports safe autocorrection (--autocorrect).
19
+ # Configuration parameters: EnforcedStyleAlignWith.
20
+ # SupportedStylesAlignWith: either, start_of_block, start_of_line
21
+ Layout/BlockAlignment:
22
+ Exclude:
23
+ - 'spec/lib/dispatch-rider/notification_services/aws_sns_spec.rb'
24
+
25
+ # Offense count: 1
26
+ # This cop supports safe autocorrection (--autocorrect).
27
+ Layout/BlockEndNewline:
28
+ Exclude:
29
+ - 'spec/factories/messages.rb'
30
+
31
+ # Offense count: 1
32
+ # This cop supports safe autocorrection (--autocorrect).
33
+ Layout/ClosingParenthesisIndentation:
34
+ Exclude:
35
+ - 'spec/lib/dispatch-rider/publisher_spec.rb'
36
+
37
+ # Offense count: 3
38
+ # This cop supports safe autocorrection (--autocorrect).
39
+ Layout/EmptyLineAfterGuardClause:
40
+ Exclude:
41
+ - 'lib/dispatch-rider/message.rb'
42
+ - 'lib/dispatch-rider/queue_services/aws_sqs.rb'
43
+ - 'lib/dispatch-rider/queue_services/file_system/queue.rb'
44
+
45
+ # Offense count: 1
46
+ # This cop supports safe autocorrection (--autocorrect).
47
+ # Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
48
+ Layout/EmptyLineBetweenDefs:
49
+ Exclude:
50
+ - 'lib/dispatch-rider/queue_services/base.rb'
51
+
52
+ # Offense count: 45
53
+ # This cop supports safe autocorrection (--autocorrect).
54
+ # Configuration parameters: EnforcedStyle.
55
+ # SupportedStyles: empty_lines, no_empty_lines
56
+ Layout/EmptyLinesAroundBlockBody:
57
+ Enabled: false
58
+
59
+ # Offense count: 1
60
+ # This cop supports safe autocorrection (--autocorrect).
61
+ # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
62
+ Layout/ExtraSpacing:
63
+ Exclude:
64
+ - 'spec/factories/messages.rb'
65
+
66
+ # Offense count: 2
67
+ # This cop supports safe autocorrection (--autocorrect).
68
+ # Configuration parameters: Width, AllowedPatterns, IgnoredPatterns.
69
+ Layout/IndentationWidth:
70
+ Exclude:
71
+ - 'lib/dispatch-rider/queue_services/base.rb'
72
+ - 'lib/dispatch-rider/queue_services/file_system.rb'
73
+
74
+ # Offense count: 6
75
+ # This cop supports safe autocorrection (--autocorrect).
76
+ # Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
77
+ Layout/LeadingCommentSpace:
78
+ Exclude:
79
+ - 'lib/dispatch-rider.rb'
80
+ - 'lib/dispatch-rider/queue_services/base.rb'
81
+ - 'lib/dispatch-rider/queue_services/file_system/fs_received_message.rb'
82
+ - 'lib/dispatch-rider/queue_services/received_message.rb'
83
+ - 'spec/lib/dispatch-rider/configuration_spec.rb'
84
+
85
+ # Offense count: 2
86
+ # This cop supports safe autocorrection (--autocorrect).
87
+ # Configuration parameters: EnforcedStyle.
88
+ # SupportedStyles: symmetrical, new_line, same_line
89
+ Layout/MultilineMethodCallBraceLayout:
90
+ Exclude:
91
+ - 'spec/lib/dispatch-rider/logging/lifecycle_logger_spec.rb'
92
+ - 'spec/lib/dispatch-rider/publisher_spec.rb'
93
+
94
+ # Offense count: 2
95
+ # This cop supports safe autocorrection (--autocorrect).
96
+ Layout/SpaceAfterColon:
97
+ Exclude:
98
+ - 'spec/lib/dispatch-rider/queue_services/aws_sqs_spec.rb'
99
+
100
+ # Offense count: 3
101
+ # This cop supports safe autocorrection (--autocorrect).
102
+ Layout/SpaceAfterComma:
103
+ Exclude:
104
+ - 'lib/dispatch-rider/queue_services/aws_sqs.rb'
105
+
106
+ # Offense count: 1
107
+ # This cop supports safe autocorrection (--autocorrect).
108
+ # Configuration parameters: EnforcedStyle.
109
+ # SupportedStyles: space, no_space
110
+ Layout/SpaceAroundEqualsInParameterDefault:
111
+ Exclude:
112
+ - 'lib/dispatch-rider/publisher/configuration/destination.rb'
113
+
114
+ # Offense count: 1
115
+ # This cop supports safe autocorrection (--autocorrect).
116
+ # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
117
+ # SupportedStylesForExponentOperator: space, no_space
118
+ Layout/SpaceAroundOperators:
119
+ Exclude:
120
+ - 'spec/lib/dispatch-rider/queue_services/aws_sqs_spec.rb'
121
+
122
+ # Offense count: 1
123
+ # This cop supports safe autocorrection (--autocorrect).
124
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
125
+ # SupportedStyles: space, no_space
126
+ # SupportedStylesForEmptyBraces: space, no_space
127
+ Layout/SpaceBeforeBlockBraces:
128
+ Exclude:
129
+ - 'lib/dispatch-rider/queue_services/file_system/queue.rb'
130
+
131
+ # Offense count: 4
132
+ # This cop supports safe autocorrection (--autocorrect).
133
+ # Configuration parameters: EnforcedStyle.
134
+ # SupportedStyles: require_no_space, require_space
135
+ Layout/SpaceInLambdaLiteral:
136
+ Exclude:
137
+ - 'lib/dispatch-rider/configuration.rb'
138
+ - 'lib/dispatch-rider/scheduled_job.rb'
139
+ - 'spec/lib/dispatch-rider/logging/lifecycle_logger_spec.rb'
140
+
141
+ # Offense count: 2
142
+ # This cop supports safe autocorrection (--autocorrect).
143
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
144
+ # SupportedStyles: space, no_space
145
+ # SupportedStylesForEmptyBraces: space, no_space
146
+ Layout/SpaceInsideBlockBraces:
147
+ Exclude:
148
+ - 'lib/dispatch-rider/subscriber.rb'
149
+
150
+ # Offense count: 41
151
+ # This cop supports safe autocorrection (--autocorrect).
152
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
153
+ # SupportedStyles: space, no_space, compact
154
+ # SupportedStylesForEmptyBraces: space, no_space
155
+ Layout/SpaceInsideHashLiteralBraces:
156
+ Exclude:
157
+ - 'lib/dispatch-rider/queue_services/aws_sqs.rb'
158
+ - 'spec/lib/dispatch-rider/publisher/base_spec.rb'
159
+ - 'spec/lib/dispatch-rider/publisher/configuration_reader_spec.rb'
160
+ - 'spec/lib/dispatch-rider/queue_services/aws_sqs_spec.rb'
161
+ - 'spec/lib/dispatch-rider/queue_services/file_system_spec.rb'
162
+ - 'spec/lib/dispatch-rider/queue_services/simple_spec.rb'
163
+
164
+ # Offense count: 2
165
+ # This cop supports safe autocorrection (--autocorrect).
166
+ # Configuration parameters: EnforcedStyle.
167
+ # SupportedStyles: space, compact, no_space
168
+ Layout/SpaceInsideParens:
169
+ Exclude:
170
+ - 'lib/dispatch-rider/handlers/base.rb'
171
+
172
+ # Offense count: 1
173
+ # This cop supports safe autocorrection (--autocorrect).
174
+ # Configuration parameters: EnforcedStyle.
175
+ # SupportedStyles: final_newline, final_blank_line
176
+ Layout/TrailingEmptyLines:
177
+ Exclude:
178
+ - 'spec/lib/dispatch-rider/notification_services/file_system/notifier_spec.rb'
179
+
180
+ # Offense count: 15
181
+ # This cop supports safe autocorrection (--autocorrect).
182
+ # Configuration parameters: AllowInHeredoc.
183
+ Layout/TrailingWhitespace:
184
+ Exclude:
185
+ - 'lib/dispatch-rider/handlers/base.rb'
186
+ - 'lib/dispatch-rider/queue_services/base.rb'
187
+ - 'lib/dispatch-rider/queue_services/file_system.rb'
188
+ - 'lib/dispatch-rider/queue_services/file_system/fs_received_message.rb'
189
+
190
+ # Offense count: 1
191
+ # This cop supports safe autocorrection (--autocorrect).
192
+ Lint/AmbiguousOperator:
193
+ Exclude:
194
+ - 'Rakefile'
195
+
196
+ # Offense count: 13
197
+ # Configuration parameters: AllowedMethods.
198
+ # AllowedMethods: enums
199
+ Lint/ConstantDefinitionInBlock:
200
+ Exclude:
201
+ - 'spec/lib/dispatch-rider/demultiplexer_spec.rb'
202
+ - 'spec/lib/dispatch-rider/dispatcher_spec.rb'
203
+ - 'spec/lib/dispatch-rider/handlers/base_spec.rb'
204
+ - 'spec/lib/dispatch-rider/handlers/inheritance_tracking_spec.rb'
205
+ - 'spec/lib/dispatch-rider/publisher/base_spec.rb'
206
+ - 'spec/lib/dispatch-rider/registrars/handler_spec.rb'
207
+
208
+ # Offense count: 3
209
+ # Configuration parameters: AllowComments, AllowEmptyLambdas.
210
+ Lint/EmptyBlock:
211
+ Exclude:
212
+ - 'spec/lib/dispatch-rider/notification_services_spec.rb'
213
+ - 'spec/lib/dispatch-rider/queue_services_spec.rb'
214
+ - 'spec/lib/dispatch-rider/registrars_spec.rb'
215
+
216
+ # Offense count: 1
217
+ # This cop supports unsafe autocorrection (--autocorrect-all).
218
+ Lint/NonDeterministicRequireOrder:
219
+ Exclude:
220
+ - 'spec/spec_helper.rb'
221
+
222
+ # Offense count: 2
223
+ # This cop supports safe autocorrection (--autocorrect).
224
+ Lint/RedundantStringCoercion:
225
+ Exclude:
226
+ - 'lib/dispatch-rider/errors.rb'
227
+
228
+ # Offense count: 1
229
+ Lint/RescueException:
230
+ Exclude:
231
+ - 'lib/dispatch-rider/handlers/base.rb'
232
+
233
+ # Offense count: 1
234
+ # This cop supports safe autocorrection (--autocorrect).
235
+ Lint/ScriptPermission:
236
+ Exclude:
237
+ - 'lib/generators/dispatch_rider/install/templates/script/dispatch_rider'
238
+
239
+ # Offense count: 1
240
+ Lint/ShadowingOuterLocalVariable:
241
+ Exclude:
242
+ - 'lib/dispatch-rider/command.rb'
243
+
244
+ # Offense count: 7
245
+ # This cop supports safe autocorrection (--autocorrect).
246
+ # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
247
+ Lint/UnusedMethodArgument:
248
+ Exclude:
249
+ - 'lib/dispatch-rider/error_handlers.rb'
250
+ - 'lib/dispatch-rider/queue_services/simple.rb'
251
+ - 'lib/dispatch-rider/registrars/file_system_channel.rb'
252
+ - 'lib/dispatch-rider/registrars/handler.rb'
253
+ - 'lib/dispatch-rider/registrars/publishing_destination.rb'
254
+ - 'lib/dispatch-rider/registrars/sns_channel.rb'
255
+ - 'spec/lib/dispatch-rider/subscriber_spec.rb'
256
+
257
+ # Offense count: 1
258
+ # This cop supports safe autocorrection (--autocorrect).
259
+ # Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
260
+ Lint/UselessAccessModifier:
261
+ Exclude:
262
+ - 'lib/dispatch-rider/scheduled_job.rb'
263
+
264
+ # Offense count: 1
265
+ # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
266
+ Metrics/CyclomaticComplexity:
267
+ Max: 8
268
+
269
+ # Offense count: 6
270
+ # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
271
+ Metrics/MethodLength:
272
+ Max: 17
273
+
274
+ # Offense count: 2
275
+ Naming/AccessorMethodName:
276
+ Exclude:
277
+ - 'lib/dispatch-rider/handlers/base.rb'
278
+ - 'lib/dispatch-rider/scheduled_job.rb'
279
+
280
+ # Offense count: 4
281
+ # This cop supports safe autocorrection (--autocorrect).
282
+ # Configuration parameters: PreferredName.
283
+ Naming/RescuedExceptionsVariableName:
284
+ Exclude:
285
+ - 'lib/dispatch-rider/demultiplexer.rb'
286
+ - 'lib/dispatch-rider/logging/lifecycle_logger.rb'
287
+
288
+ # Offense count: 2
289
+ # This cop supports safe autocorrection (--autocorrect).
290
+ Performance/RedundantBlockCall:
291
+ Exclude:
292
+ - 'lib/dispatch-rider/command.rb'
293
+ - 'lib/dispatch-rider/queue_services/base.rb'
294
+
295
+ # Offense count: 10
296
+ RSpec/AnyInstance:
297
+ Exclude:
298
+ - 'spec/lib/dispatch-rider/demultiplexer_spec.rb'
299
+ - 'spec/lib/dispatch-rider/notification_services/base_spec.rb'
300
+ - 'spec/lib/dispatch-rider/queue_services/aws_sqs_spec.rb'
301
+ - 'spec/lib/dispatch-rider/queue_services/base_spec.rb'
302
+
303
+ # Offense count: 13
304
+ # Configuration parameters: Prefixes, AllowedPatterns.
305
+ # Prefixes: when, with, without
306
+ RSpec/ContextWording:
307
+ Exclude:
308
+ - 'spec/integration/logging_spec.rb'
309
+ - 'spec/lib/dispatch-rider/handlers/inheritance_tracking_spec.rb'
310
+ - 'spec/lib/dispatch-rider/logging/lifecycle_logger_spec.rb'
311
+ - 'spec/lib/dispatch-rider/publisher/base_spec.rb'
312
+ - 'spec/lib/dispatch-rider/publisher/configuration/notification_service_spec.rb'
313
+
314
+ # Offense count: 13
315
+ # This cop supports unsafe autocorrection (--autocorrect-all).
316
+ # Configuration parameters: SkipBlocks, EnforcedStyle.
317
+ # SupportedStyles: described_class, explicit
318
+ RSpec/DescribedClass:
319
+ Exclude:
320
+ - 'spec/lib/dispatch-rider/demultiplexer_spec.rb'
321
+ - 'spec/lib/dispatch-rider/logging/lifecycle_logger_spec.rb'
322
+ - 'spec/lib/dispatch-rider/message_spec.rb'
323
+ - 'spec/lib/dispatch-rider/notification_services/base_spec.rb'
324
+ - 'spec/lib/dispatch-rider/queue_services/aws_sqs_spec.rb'
325
+ - 'spec/lib/dispatch-rider/queue_services/base_spec.rb'
326
+ - 'spec/lib/dispatch-rider/queue_services/file_system_spec.rb'
327
+ - 'spec/lib/dispatch-rider/queue_services/simple_spec.rb'
328
+
329
+ # Offense count: 2
330
+ # This cop supports unsafe autocorrection (--autocorrect-all).
331
+ RSpec/EmptyExampleGroup:
332
+ Exclude:
333
+ - 'spec/lib/dispatch-rider/notification_services_spec.rb'
334
+ - 'spec/lib/dispatch-rider/registrars_spec.rb'
335
+
336
+ # Offense count: 1
337
+ # This cop supports safe autocorrection (--autocorrect).
338
+ # Configuration parameters: AllowConsecutiveOneLiners.
339
+ RSpec/EmptyLineAfterExample:
340
+ Exclude:
341
+ - 'spec/lib/dispatch-rider/demultiplexer_spec.rb'
342
+
343
+ # Offense count: 2
344
+ # This cop supports safe autocorrection (--autocorrect).
345
+ # Configuration parameters: AllowConsecutiveOneLiners.
346
+ RSpec/EmptyLineAfterHook:
347
+ Exclude:
348
+ - 'spec/lib/dispatch-rider/dispatcher_spec.rb'
349
+ - 'spec/lib/dispatch-rider/subscriber_spec.rb'
350
+
351
+ # Offense count: 14
352
+ # This cop supports safe autocorrection (--autocorrect).
353
+ RSpec/EmptyLineAfterSubject:
354
+ Exclude:
355
+ - 'spec/lib/dispatch-rider/logging/translator_spec.rb'
356
+ - 'spec/lib/dispatch-rider/publisher/configuration/destination_spec.rb'
357
+ - 'spec/lib/dispatch-rider/publisher/configuration/notification_service_spec.rb'
358
+
359
+ # Offense count: 19
360
+ # Configuration parameters: CountAsOne.
361
+ RSpec/ExampleLength:
362
+ Max: 31
363
+
364
+ # Offense count: 66
365
+ # This cop supports safe autocorrection (--autocorrect).
366
+ # Configuration parameters: CustomTransform, IgnoredWords.
367
+ RSpec/ExampleWording:
368
+ Exclude:
369
+ - 'spec/lib/dispatch-rider/demultiplexer_spec.rb'
370
+ - 'spec/lib/dispatch-rider/dispatcher_spec.rb'
371
+ - 'spec/lib/dispatch-rider/message_spec.rb'
372
+ - 'spec/lib/dispatch-rider/publisher/configuration_reader_spec.rb'
373
+ - 'spec/lib/dispatch-rider/queue_services/aws_sqs_spec.rb'
374
+ - 'spec/lib/dispatch-rider/queue_services/base_spec.rb'
375
+ - 'spec/lib/dispatch-rider/queue_services/file_system_spec.rb'
376
+ - 'spec/lib/dispatch-rider/queue_services/simple_spec.rb'
377
+ - 'spec/lib/dispatch-rider/queue_services_spec.rb'
378
+ - 'spec/lib/dispatch-rider/registrars/base_spec.rb'
379
+ - 'spec/lib/dispatch-rider/subscriber_spec.rb'
380
+
381
+ # Offense count: 45
382
+ # Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
383
+ # Include: **/*_spec*rb*, **/spec/**/*
384
+ RSpec/FilePath:
385
+ Enabled: false
386
+
387
+ # Offense count: 30
388
+ # This cop supports safe autocorrection (--autocorrect).
389
+ # Configuration parameters: EnforcedStyle.
390
+ # SupportedStyles: implicit, each, example
391
+ RSpec/HookArgument:
392
+ Exclude:
393
+ - 'spec/lib/dispatch-rider/configuration_spec.rb'
394
+ - 'spec/lib/dispatch-rider/dispatcher_spec.rb'
395
+ - 'spec/lib/dispatch-rider/notification_services/base_spec.rb'
396
+ - 'spec/lib/dispatch-rider/publisher/configuration_spec.rb'
397
+ - 'spec/lib/dispatch-rider/publisher/configuration_support_spec.rb'
398
+ - 'spec/lib/dispatch-rider/publisher_spec.rb'
399
+ - 'spec/lib/dispatch-rider/queue_services/aws_sqs_spec.rb'
400
+ - 'spec/lib/dispatch-rider/queue_services/base_spec.rb'
401
+ - 'spec/lib/dispatch-rider/queue_services/file_system_spec.rb'
402
+ - 'spec/lib/dispatch-rider/queue_services/simple_spec.rb'
403
+ - 'spec/lib/dispatch-rider/registrars/base_spec.rb'
404
+ - 'spec/lib/dispatch-rider/runner_spec.rb'
405
+ - 'spec/lib/dispatch-rider/subscriber_spec.rb'
406
+
407
+ # Offense count: 1
408
+ # This cop supports safe autocorrection (--autocorrect).
409
+ # Configuration parameters: EnforcedStyle.
410
+ # SupportedStyles: single_line_only, single_statement_only, disallow
411
+ RSpec/ImplicitSubject:
412
+ Exclude:
413
+ - 'spec/lib/dispatch-rider/scheduled_job_spec.rb'
414
+
415
+ # Offense count: 13
416
+ RSpec/LeakyConstantDeclaration:
417
+ Exclude:
418
+ - 'spec/lib/dispatch-rider/demultiplexer_spec.rb'
419
+ - 'spec/lib/dispatch-rider/dispatcher_spec.rb'
420
+ - 'spec/lib/dispatch-rider/handlers/base_spec.rb'
421
+ - 'spec/lib/dispatch-rider/handlers/inheritance_tracking_spec.rb'
422
+ - 'spec/lib/dispatch-rider/publisher/base_spec.rb'
423
+ - 'spec/lib/dispatch-rider/registrars/handler_spec.rb'
424
+
425
+ # Offense count: 62
426
+ # Configuration parameters: .
427
+ # SupportedStyles: have_received, receive
428
+ RSpec/MessageSpies:
429
+ EnforcedStyle: receive
430
+
431
+ # Offense count: 50
432
+ RSpec/MultipleExpectations:
433
+ Max: 6
434
+
435
+ # Offense count: 39
436
+ # Configuration parameters: AllowSubject.
437
+ RSpec/MultipleMemoizedHelpers:
438
+ Max: 12
439
+
440
+ # Offense count: 173
441
+ # Configuration parameters: IgnoreSharedExamples.
442
+ RSpec/NamedSubject:
443
+ Enabled: false
444
+
445
+ # Offense count: 27
446
+ # Configuration parameters: AllowedGroups.
447
+ RSpec/NestedGroups:
448
+ Max: 5
449
+
450
+ # Offense count: 3
451
+ # This cop supports safe autocorrection (--autocorrect).
452
+ # Configuration parameters: EnforcedStyle.
453
+ # SupportedStyles: not_to, to_not
454
+ RSpec/NotToNot:
455
+ Exclude:
456
+ - 'spec/lib/dispatch-rider/handlers/base_spec.rb'
457
+ - 'spec/lib/dispatch-rider/publisher/configuration_reader_spec.rb'
458
+ - 'spec/lib/dispatch-rider/scheduled_job_spec.rb'
459
+
460
+ # Offense count: 2
461
+ # This cop supports safe autocorrection (--autocorrect).
462
+ RSpec/ReceiveCounts:
463
+ Exclude:
464
+ - 'spec/lib/dispatch-rider/demultiplexer_spec.rb'
465
+ - 'spec/lib/dispatch-rider/publisher/configuration_reader_spec.rb'
466
+
467
+ # Offense count: 2
468
+ RSpec/RepeatedExampleGroupDescription:
469
+ Exclude:
470
+ - 'spec/lib/dispatch-rider/logging/translator_spec.rb'
471
+
472
+ # Offense count: 4
473
+ RSpec/StubbedMock:
474
+ Exclude:
475
+ - 'spec/lib/dispatch-rider/notification_services/base_spec.rb'
476
+ - 'spec/lib/dispatch-rider/registrars/base_spec.rb'
477
+
478
+ # Offense count: 12
479
+ RSpec/SubjectStub:
480
+ Exclude:
481
+ - 'spec/lib/dispatch-rider/demultiplexer_spec.rb'
482
+ - 'spec/lib/dispatch-rider/notification_services/aws_sns_spec.rb'
483
+ - 'spec/lib/dispatch-rider/queue_services/base_spec.rb'
484
+ - 'spec/lib/dispatch-rider/registrars/base_spec.rb'
485
+ - 'spec/lib/dispatch-rider/subscriber_spec.rb'
486
+
487
+ # Offense count: 2
488
+ # This cop supports safe autocorrection (--autocorrect).
489
+ # Configuration parameters: EnforcedStyle.
490
+ # SupportedStyles: symbols, strings
491
+ RSpec/VariableDefinition:
492
+ Exclude:
493
+ - 'spec/lib/dispatch-rider/publisher/base_spec.rb'
494
+
495
+ # Offense count: 21
496
+ # Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
497
+ RSpec/VerifiedDoubles:
498
+ Exclude:
499
+ - 'spec/lib/dispatch-rider/configuration_spec.rb'
500
+ - 'spec/lib/dispatch-rider/dispatcher_spec.rb'
501
+ - 'spec/lib/dispatch-rider/handlers/base_spec.rb'
502
+ - 'spec/lib/dispatch-rider/logging/lifecycle_logger_spec.rb'
503
+ - 'spec/lib/dispatch-rider/logging/translator_spec.rb'
504
+ - 'spec/lib/dispatch-rider/notification_services/aws_sns_spec.rb'
505
+ - 'spec/lib/dispatch-rider/notification_services/base_spec.rb'
506
+ - 'spec/lib/dispatch-rider/publisher/base_spec.rb'
507
+ - 'spec/lib/dispatch-rider/publisher/configuration_reader_spec.rb'
508
+ - 'spec/lib/dispatch-rider/publisher_spec.rb'
509
+ - 'spec/lib/dispatch-rider/queue_services/received_message_spec.rb'
510
+ - 'spec/lib/dispatch-rider/runner_spec.rb'
511
+ - 'spec/lib/dispatch-rider/subscriber_spec.rb'
512
+
513
+ # Offense count: 1
514
+ # This cop supports unsafe autocorrection (--autocorrect-all).
515
+ Rails/ApplicationRecord:
516
+ Exclude:
517
+ - 'lib/dispatch-rider/scheduled_job.rb'
518
+
519
+ # Offense count: 5
520
+ # This cop supports safe autocorrection (--autocorrect).
521
+ # Configuration parameters: EnforceForPrefixed.
522
+ Rails/Delegate:
523
+ Exclude:
524
+ - 'lib/dispatch-rider/queue_services/file_system.rb'
525
+ - 'lib/dispatch-rider/queue_services/file_system/queue.rb'
526
+ - 'lib/dispatch-rider/queue_services/simple.rb'
527
+
528
+ # Offense count: 2
529
+ # Configuration parameters: Include.
530
+ # Include: app/**/*.rb, config/**/*.rb, lib/**/*.rb
531
+ Rails/Exit:
532
+ Exclude:
533
+ - 'lib/dispatch-rider/command.rb'
534
+ - 'lib/dispatch-rider/subscriber.rb'
535
+
536
+ # Offense count: 1
537
+ # This cop supports unsafe autocorrection (--autocorrect-all).
538
+ # Configuration parameters: Include.
539
+ # Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
540
+ Rails/Output:
541
+ Exclude:
542
+ - 'lib/dispatch-rider/command.rb'
543
+
544
+ # Offense count: 1
545
+ # This cop supports unsafe autocorrection (--autocorrect-all).
546
+ # Configuration parameters: Include.
547
+ # Include: **/Rakefile, **/*.rake
548
+ Rails/RakeEnvironment:
549
+ Exclude:
550
+ - 'Rakefile'
551
+
552
+ # Offense count: 13
553
+ # Configuration parameters: ForbiddenMethods, AllowedMethods.
554
+ # 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
555
+ Rails/SkipsModelValidations:
556
+ Exclude:
557
+ - 'lib/dispatch-rider/queue_services/base.rb'
558
+ - 'lib/dispatch-rider/scheduled_job.rb'
559
+ - 'spec/lib/dispatch-rider/queue_services/aws_sqs_spec.rb'
560
+ - 'spec/lib/dispatch-rider/queue_services/base_spec.rb'
561
+ - 'spec/lib/dispatch-rider/queue_services/file_system_spec.rb'
562
+ - 'spec/lib/dispatch-rider/queue_services/simple_spec.rb'
563
+
564
+ # Offense count: 10
565
+ # This cop supports unsafe autocorrection (--autocorrect-all).
566
+ # Configuration parameters: EnforcedStyle.
567
+ # SupportedStyles: strict, flexible
568
+ Rails/TimeZone:
569
+ Exclude:
570
+ - 'lib/dispatch-rider/logging/lifecycle_logger.rb'
571
+ - 'lib/dispatch-rider/queue_services/aws_sqs.rb'
572
+ - 'lib/dispatch-rider/queue_services/aws_sqs/sqs_received_message.rb'
573
+ - 'lib/dispatch-rider/scheduled_job.rb'
574
+ - 'spec/lib/dispatch-rider/queue_services/aws_sqs_spec.rb'
575
+
576
+ # Offense count: 3
577
+ # This cop supports unsafe autocorrection (--autocorrect-all).
578
+ Security/JSONLoad:
579
+ Exclude:
580
+ - 'spec/integration/logging_spec.rb'
581
+ - 'spec/lib/dispatch-rider/publisher_spec.rb'
582
+
583
+ # Offense count: 2
584
+ # This cop supports safe autocorrection (--autocorrect).
585
+ # Configuration parameters: EnforcedStyle.
586
+ # SupportedStyles: prefer_alias, prefer_alias_method
587
+ Style/Alias:
588
+ Exclude:
589
+ - 'lib/dispatch-rider.rb'
590
+ - 'lib/dispatch-rider/publisher/configuration_support.rb'
591
+
592
+ # Offense count: 7
593
+ # This cop supports unsafe autocorrection (--autocorrect-all).
594
+ # Configuration parameters: EnforcedStyle.
595
+ # SupportedStyles: nested, compact
596
+ Style/ClassAndModuleChildren:
597
+ Exclude:
598
+ - 'lib/dispatch-rider/notification_services/file_system/channel.rb'
599
+ - 'lib/dispatch-rider/notification_services/file_system/notifier.rb'
600
+ - 'lib/dispatch-rider/publisher/base.rb'
601
+ - 'lib/dispatch-rider/publisher/configuration.rb'
602
+ - 'lib/dispatch-rider/publisher/configuration/destination.rb'
603
+ - 'lib/dispatch-rider/publisher/configuration/notification_service.rb'
604
+ - 'lib/dispatch-rider/scheduled_job/migration.rb'
605
+
606
+ # Offense count: 1
607
+ Style/ClassVars:
608
+ Exclude:
609
+ - 'lib/dispatch-rider/publisher/base.rb'
610
+
611
+ # Offense count: 1
612
+ # This cop supports unsafe autocorrection (--autocorrect-all).
613
+ Style/CommentedKeyword:
614
+ Exclude:
615
+ - 'spec/lib/dispatch-rider/publisher/configuration_reader_spec.rb'
616
+
617
+ # Offense count: 63
618
+ # Configuration parameters: AllowedConstants.
619
+ Style/Documentation:
620
+ Enabled: false
621
+
622
+ # Offense count: 1
623
+ # This cop supports safe autocorrection (--autocorrect).
624
+ Style/EachWithObject:
625
+ Exclude:
626
+ - 'lib/dispatch-rider/publisher.rb'
627
+
628
+ # Offense count: 1
629
+ # This cop supports safe autocorrection (--autocorrect).
630
+ # Configuration parameters: EnforcedStyle.
631
+ # SupportedStyles: compact, expanded
632
+ Style/EmptyMethod:
633
+ Exclude:
634
+ - 'spec/support/null_logger.rb'
635
+
636
+ # Offense count: 1
637
+ # This cop supports safe autocorrection (--autocorrect).
638
+ Style/Encoding:
639
+ Exclude:
640
+ - 'Rakefile'
641
+
642
+ # Offense count: 5
643
+ # This cop supports safe autocorrection (--autocorrect).
644
+ Style/ExpandPathArguments:
645
+ Exclude:
646
+ - 'lib/generators/dispatch_rider/install/install_generator.rb'
647
+ - 'lib/generators/dispatch_rider/job/dispatch_job_generator.rb'
648
+
649
+ # Offense count: 1
650
+ # This cop supports safe autocorrection (--autocorrect).
651
+ Style/FileWrite:
652
+ Exclude:
653
+ - 'lib/dispatch-rider/queue_services/file_system/queue.rb'
654
+
655
+ # Offense count: 1
656
+ # This cop supports safe autocorrection (--autocorrect).
657
+ # Configuration parameters: EnforcedStyle.
658
+ # SupportedStyles: format, sprintf, percent
659
+ Style/FormatString:
660
+ Exclude:
661
+ - 'lib/dispatch-rider/logging/text_formatter.rb'
662
+
663
+ # Offense count: 123
664
+ # This cop supports unsafe autocorrection (--autocorrect-all).
665
+ # Configuration parameters: EnforcedStyle.
666
+ # SupportedStyles: always, always_true, never
667
+ Style/FrozenStringLiteralComment:
668
+ Enabled: false
669
+
670
+ # Offense count: 1
671
+ # This cop supports unsafe autocorrection (--autocorrect-all).
672
+ Style/GlobalStdStream:
673
+ Exclude:
674
+ - 'lib/dispatch-rider/configuration.rb'
675
+
676
+ # Offense count: 2
677
+ # Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
678
+ Style/GuardClause:
679
+ Exclude:
680
+ - 'lib/dispatch-rider/queue_services/aws_sqs/sqs_received_message.rb'
681
+ - 'lib/dispatch-rider/queue_services/base.rb'
682
+
683
+ # Offense count: 2
684
+ # This cop supports safe autocorrection (--autocorrect).
685
+ # Configuration parameters: EnforcedStyle.
686
+ # SupportedStyles: braces, no_braces
687
+ Style/HashAsLastArrayItem:
688
+ Exclude:
689
+ - 'spec/lib/dispatch-rider/airbrake_error_handler_spec.rb'
690
+ - 'spec/lib/dispatch-rider/publisher/configuration_reader_spec.rb'
691
+
692
+ # Offense count: 26
693
+ # This cop supports safe autocorrection (--autocorrect).
694
+ # Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
695
+ # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
696
+ # SupportedShorthandSyntax: always, never, either, consistent
697
+ Style/HashSyntax:
698
+ Exclude:
699
+ - 'Rakefile'
700
+ - 'lib/dispatch-rider/command.rb'
701
+ - 'lib/dispatch-rider/configuration.rb'
702
+ - 'lib/dispatch-rider/message.rb'
703
+ - 'lib/dispatch-rider/publisher.rb'
704
+ - 'lib/dispatch-rider/registrars/publishing_destination.rb'
705
+ - 'spec/lib/dispatch-rider/dispatcher_spec.rb'
706
+ - 'spec/lib/dispatch-rider/notification_services/file_system_spec.rb'
707
+ - 'spec/lib/dispatch-rider/publisher_spec.rb'
708
+ - 'spec/lib/dispatch-rider/queue_services/aws_sqs_spec.rb'
709
+ - 'spec/lib/dispatch-rider/queue_services/file_system_spec.rb'
710
+ - 'spec/lib/dispatch-rider/registrars/publishing_destination_spec.rb'
711
+
712
+ # Offense count: 1
713
+ # This cop supports safe autocorrection (--autocorrect).
714
+ Style/IfUnlessModifier:
715
+ Exclude:
716
+ - 'lib/dispatch-rider/queue_services/aws_sqs/sqs_received_message.rb'
717
+
718
+ # Offense count: 1
719
+ # This cop supports safe autocorrection (--autocorrect).
720
+ # Configuration parameters: EnforcedStyle.
721
+ # SupportedStyles: line_count_dependent, lambda, literal
722
+ Style/Lambda:
723
+ Exclude:
724
+ - 'spec/lib/dispatch-rider/logging/lifecycle_logger_spec.rb'
725
+
726
+ # Offense count: 1
727
+ # This cop supports unsafe autocorrection (--autocorrect-all).
728
+ # Configuration parameters: EnforcedStyle.
729
+ # SupportedStyles: literals, strict
730
+ Style/MutableConstant:
731
+ Exclude:
732
+ - 'lib/dispatch-rider/version.rb'
733
+
734
+ # Offense count: 3
735
+ # This cop supports safe autocorrection (--autocorrect).
736
+ # Configuration parameters: AllowedMethods.
737
+ # AllowedMethods: be, be_a, be_an, be_between, be_falsey, be_kind_of, be_instance_of, be_truthy, be_within, eq, eql, end_with, include, match, raise_error, respond_to, start_with
738
+ Style/NestedParenthesizedCalls:
739
+ Exclude:
740
+ - 'lib/dispatch-rider/publisher.rb'
741
+ - 'spec/lib/dispatch-rider/notification_services/aws_sns_spec.rb'
742
+ - 'spec/lib/dispatch-rider/notification_services/base_spec.rb'
743
+
744
+ # Offense count: 1
745
+ # This cop supports safe autocorrection (--autocorrect).
746
+ # Configuration parameters: EnforcedOctalStyle.
747
+ # SupportedOctalStyles: zero_with_o, zero_only
748
+ Style/NumericLiteralPrefix:
749
+ Exclude:
750
+ - 'lib/generators/dispatch_rider/install/install_generator.rb'
751
+
752
+ # Offense count: 1
753
+ # This cop supports safe autocorrection (--autocorrect).
754
+ # Configuration parameters: Strict, AllowedNumbers, AllowedPatterns.
755
+ Style/NumericLiterals:
756
+ MinDigits: 6
757
+
758
+ # Offense count: 1
759
+ # This cop supports unsafe autocorrection (--autocorrect-all).
760
+ # Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns, IgnoredMethods.
761
+ # SupportedStyles: predicate, comparison
762
+ Style/NumericPredicate:
763
+ Exclude:
764
+ - 'lib/dispatch-rider/queue_services/aws_sqs/sqs_received_message.rb'
765
+
766
+ # Offense count: 13
767
+ Style/OpenStructUse:
768
+ Exclude:
769
+ - 'lib/dispatch-rider/registrars/publishing_destination.rb'
770
+ - 'spec/lib/dispatch-rider/notification_services/base_spec.rb'
771
+ - 'spec/lib/dispatch-rider/queue_services/aws_sqs_spec.rb'
772
+ - 'spec/lib/dispatch-rider/queue_services/base_spec.rb'
773
+
774
+ # Offense count: 2
775
+ # This cop supports safe autocorrection (--autocorrect).
776
+ # Configuration parameters: PreferredDelimiters.
777
+ Style/PercentLiteralDelimiters:
778
+ Exclude:
779
+ - 'spec/lib/dispatch-rider/logging/json_formatter_spec.rb'
780
+ - 'spec/spec_helper.rb'
781
+
782
+ # Offense count: 2
783
+ # This cop supports unsafe autocorrection (--autocorrect-all).
784
+ # Configuration parameters: EnforcedStyle.
785
+ # SupportedStyles: short, verbose
786
+ Style/PreferredHashMethods:
787
+ Exclude:
788
+ - 'lib/dispatch-rider/publisher.rb'
789
+ - 'lib/dispatch-rider/queue_services/aws_sqs/message_body_extractor.rb'
790
+
791
+ # Offense count: 1
792
+ # This cop supports safe autocorrection (--autocorrect).
793
+ # Configuration parameters: .
794
+ # SupportedStyles: same_as_string_literals, single_quotes, double_quotes
795
+ Style/QuotedSymbols:
796
+ EnforcedStyle: double_quotes
797
+
798
+ # Offense count: 8
799
+ # This cop supports safe autocorrection (--autocorrect).
800
+ Style/RedundantBegin:
801
+ Exclude:
802
+ - 'lib/dispatch-rider/callbacks/storage.rb'
803
+ - 'lib/dispatch-rider/demultiplexer.rb'
804
+ - 'lib/dispatch-rider/queue_services/file_system.rb'
805
+ - 'lib/dispatch-rider/registrars/base.rb'
806
+ - 'spec/lib/dispatch-rider/dispatcher_spec.rb'
807
+ - 'spec/lib/dispatch-rider/publisher_spec.rb'
808
+
809
+ # Offense count: 11
810
+ # This cop supports safe autocorrection (--autocorrect).
811
+ Style/RedundantSelf:
812
+ Exclude:
813
+ - 'lib/dispatch-rider/handlers/base.rb'
814
+ - 'lib/dispatch-rider/notification_services/aws_sns.rb'
815
+ - 'lib/dispatch-rider/notification_services/file_system.rb'
816
+ - 'lib/dispatch-rider/publisher/configuration/destination.rb'
817
+ - 'lib/dispatch-rider/publisher/configuration/notification_service.rb'
818
+ - 'lib/dispatch-rider/queue_services/received_message.rb'
819
+
820
+ # Offense count: 1
821
+ # This cop supports safe autocorrection (--autocorrect).
822
+ # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
823
+ # SupportedStyles: slashes, percent_r, mixed
824
+ Style/RegexpLiteral:
825
+ Exclude:
826
+ - 'spec/lib/dispatch-rider/configuration_spec.rb'
827
+
828
+ # Offense count: 4
829
+ # This cop supports safe autocorrection (--autocorrect).
830
+ # Configuration parameters: EnforcedStyle.
831
+ # SupportedStyles: implicit, explicit
832
+ Style/RescueStandardError:
833
+ Exclude:
834
+ - 'lib/dispatch-rider/demultiplexer.rb'
835
+ - 'lib/dispatch-rider/logging/lifecycle_logger.rb'
836
+
837
+ # Offense count: 2
838
+ # This cop supports unsafe autocorrection (--autocorrect-all).
839
+ # Configuration parameters: RequireEnglish.
840
+ # SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names
841
+ Style/SpecialGlobalVars:
842
+ EnforcedStyle: use_perl_names
843
+
844
+ # Offense count: 6
845
+ # This cop supports unsafe autocorrection (--autocorrect-all).
846
+ # Configuration parameters: Mode.
847
+ Style/StringConcatenation:
848
+ Exclude:
849
+ - 'lib/dispatch-rider/command.rb'
850
+ - 'lib/dispatch-rider/configuration.rb'
851
+ - 'lib/dispatch-rider/logging/text_formatter.rb'
852
+ - 'lib/generators/dispatch_rider/job/dispatch_job_generator.rb'
853
+ - 'spec/spec_helper.rb'
854
+
855
+ # Offense count: 1
856
+ # This cop supports unsafe autocorrection (--autocorrect-all).
857
+ # Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, IgnoredMethods, AllowComments.
858
+ # AllowedMethods: respond_to, define_method
859
+ Style/SymbolProc:
860
+ Exclude:
861
+ - 'spec/lib/dispatch-rider/queue_services/base_spec.rb'
862
+
863
+ # Offense count: 1
864
+ # This cop supports safe autocorrection (--autocorrect).
865
+ # Configuration parameters: EnforcedStyleForMultiline.
866
+ # SupportedStylesForMultiline: comma, consistent_comma, no_comma
867
+ Style/TrailingCommaInArguments:
868
+ Exclude:
869
+ - 'lib/dispatch-rider/integrations/appsignal.rb'
870
+
871
+ # Offense count: 1
872
+ # This cop supports safe autocorrection (--autocorrect).
873
+ # Configuration parameters: EnforcedStyleForMultiline.
874
+ # SupportedStylesForMultiline: comma, consistent_comma, no_comma
875
+ Style/TrailingCommaInArrayLiteral:
876
+ Exclude:
877
+ - 'spec/lib/dispatch-rider/airbrake_error_handler_spec.rb'
878
+
879
+ # Offense count: 37
880
+ # This cop supports safe autocorrection (--autocorrect).
881
+ # Configuration parameters: EnforcedStyleForMultiline.
882
+ # SupportedStylesForMultiline: comma, consistent_comma, no_comma
883
+ Style/TrailingCommaInHashLiteral:
884
+ Exclude:
885
+ - 'lib/dispatch-rider/command.rb'
886
+ - 'lib/dispatch-rider/logging/translator/base_translator.rb'
887
+ - 'spec/factories/messages.rb'
888
+ - 'spec/integration/logging_spec.rb'
889
+ - 'spec/lib/dispatch-rider/logging/lifecycle_logger_spec.rb'
890
+ - 'spec/lib/dispatch-rider/logging/text_formatter_spec.rb'
891
+ - 'spec/lib/dispatch-rider/logging/translator_spec.rb'
892
+ - 'spec/lib/dispatch-rider/publisher/base_spec.rb'
893
+ - 'spec/lib/dispatch-rider/publisher/configuration_reader_spec.rb'
894
+ - 'spec/lib/dispatch-rider/publisher/configuration_support_spec.rb'
895
+ - 'spec/lib/dispatch-rider/publisher_spec.rb'
896
+ - 'spec/lib/dispatch-rider/queue_services/aws_sqs_spec.rb'
897
+
898
+ # Offense count: 2
899
+ # This cop supports safe autocorrection (--autocorrect).
900
+ # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethods.
901
+ # AllowedMethods: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym
902
+ Style/TrivialAccessors:
903
+ Exclude:
904
+ - 'lib/dispatch-rider/publisher/configuration.rb'