trailblazer 2.1.0.beta1 → 2.1.0.beta2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c82134611daa3efe9309eebb4a283585b4095428
4
- data.tar.gz: cc121cdb03c9ea4da12b9b2713150e50d18ebac9
3
+ metadata.gz: 06ab38e2e1e0ab6f3f33f99c67339bdac6968899
4
+ data.tar.gz: 99665d7f89a35e6233be5b60840b3fc9bf9371c3
5
5
  SHA512:
6
- metadata.gz: 992b2af33d7b5de098b59c2eb9a75b6dd4854d0a580613b6938c6ae44f5ec2d048f4686cfecb23c4daf5673c78b24aa90286b50e5df24bc856134155f7e9d7f4
7
- data.tar.gz: 96912060658256a931dec0a8951c61fb3bc1eb62521a4730a2458258f2e1e7c145adad129820c19149d578213c45c81673587f1f1afe16bec9c1a189ad32c914
6
+ metadata.gz: 054a5b83293c9f19cf84503a8b250f48efd0f3c981c83bb74270bbd4995ac7e069ba7d71c0f813fad6a20bb17cb31dc732e3961753cfc119c4bf6431ca5ee5b4
7
+ data.tar.gz: 11013047208e46130eeed97575ec35b80825f59136e3ce188ffe00b1e855b46e7b34718d177959bfba36b1cd880fc244ee6dc7cd35e7dd11674d10862df543e9
data/.rubocop.yml ADDED
@@ -0,0 +1,18 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ # Trailblazer uses constant named methods for macros.
4
+ # Ignore the false positives in these files.
5
+ Naming/MethodName:
6
+ Exclude:
7
+ - 'test/docs/macro_test.rb'
8
+ - 'lib/trailblazer/operation/model.rb'
9
+ - 'lib/trailblazer/operation/contract.rb'
10
+ - 'lib/trailblazer/operation/auto_inject.rb'
11
+ - 'lib/trailblazer/operation/wrap.rb'
12
+ - 'lib/trailblazer/operation/validate.rb'
13
+ - 'lib/trailblazer/operation/pundit.rb'
14
+ - 'lib/trailblazer/operation/persist.rb'
15
+ - 'lib/trailblazer/operation/rescue.rb'
16
+ - 'lib/trailblazer/operation/callback.rb'
17
+ - 'lib/trailblazer/operation/nested.rb'
18
+ - 'lib/trailblazer/operation/guard.rb'
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,825 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2017-12-05 21:24:02 +0100 using RuboCop version 0.51.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
+ # Cop supports --auto-correct.
11
+ # Configuration parameters: Include, TreatCommentsAsGroupSeparators.
12
+ # Include: **/Gemfile, **/gems.rb
13
+ Bundler/OrderedGems:
14
+ Exclude:
15
+ - 'Gemfile'
16
+
17
+ # Offense count: 3
18
+ # Cop supports --auto-correct.
19
+ # Configuration parameters: Include, TreatCommentsAsGroupSeparators.
20
+ # Include: **/*.gemspec
21
+ Gemspec/OrderedDependencies:
22
+ Exclude:
23
+ - 'trailblazer.gemspec'
24
+
25
+ # Offense count: 6
26
+ # Cop supports --auto-correct.
27
+ # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
28
+ # SupportedStyles: outdent, indent
29
+ Layout/AccessModifierIndentation:
30
+ Exclude:
31
+ - 'lib/trailblazer/dsl.rb'
32
+ - 'lib/trailblazer/operation/model.rb'
33
+ - 'lib/trailblazer/operation/nested.rb'
34
+ - 'lib/trailblazer/operation/pundit.rb'
35
+ - 'test/module_test.rb'
36
+ - 'test/operation/callback_test.rb'
37
+
38
+ # Offense count: 1
39
+ # Cop supports --auto-correct.
40
+ # Configuration parameters: EnforcedHashRocketStyle, SupportedHashRocketStyles, EnforcedColonStyle, SupportedColonStyles, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.
41
+ # SupportedHashRocketStyles: key, separator, table
42
+ # SupportedColonStyles: key, separator, table
43
+ # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
44
+ Layout/AlignHash:
45
+ Exclude:
46
+ - 'test/docs/representer_test.rb'
47
+
48
+ # Offense count: 5
49
+ # Cop supports --auto-correct.
50
+ # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
51
+ # SupportedStyles: with_first_parameter, with_fixed_indentation
52
+ Layout/AlignParameters:
53
+ Exclude:
54
+ - 'lib/trailblazer/operation/representer.rb'
55
+ - 'test/docs/guard_test.rb'
56
+ - 'test/docs/pundit_test.rb'
57
+ - 'test/docs/representer_test.rb'
58
+
59
+ # Offense count: 6
60
+ # Cop supports --auto-correct.
61
+ Layout/BlockEndNewline:
62
+ Exclude:
63
+ - 'lib/trailblazer/operation/module.rb'
64
+ - 'test/docs/guard_test.rb'
65
+ - 'test/docs/pundit_test.rb'
66
+ - 'test/docs/representer_test.rb'
67
+ - 'test/docs/wrap_test.rb'
68
+
69
+ # Offense count: 4
70
+ # Cop supports --auto-correct.
71
+ Layout/ClosingParenthesisIndentation:
72
+ Exclude:
73
+ - 'lib/trailblazer/operation/representer.rb'
74
+ - 'test/docs/guard_test.rb'
75
+ - 'test/docs/pundit_test.rb'
76
+ - 'test/docs/representer_test.rb'
77
+
78
+ # Offense count: 47
79
+ # Cop supports --auto-correct.
80
+ Layout/CommentIndentation:
81
+ Exclude:
82
+ - 'test/docs/contract_test.rb'
83
+ - 'test/docs/fast_test.rb'
84
+ - 'test/docs/guard_test.rb'
85
+ - 'test/docs/macro_test.rb'
86
+ - 'test/docs/nested_test.rb'
87
+ - 'test/docs/operation_test.rb'
88
+ - 'test/docs/pundit_test.rb'
89
+ - 'test/docs/representer_test.rb'
90
+ - 'test/docs/rescue_test.rb'
91
+ - 'test/docs/wrap_test.rb'
92
+ - 'test/operation/contract_test.rb'
93
+ - 'test/operation/pipetree_test.rb'
94
+
95
+ # Offense count: 11
96
+ # Cop supports --auto-correct.
97
+ # Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines.
98
+ Layout/EmptyLineBetweenDefs:
99
+ Exclude:
100
+ - 'test/operation/dsl/callback_test.rb'
101
+ - 'test/operation/model_test.rb'
102
+ - 'test/operation/params_test.rb'
103
+ - 'test/operation/pipedream_test.rb'
104
+ - 'test/operation/pundit_test.rb'
105
+ - 'test/operation_test.rb'
106
+ - 'test/test_helper.rb'
107
+
108
+ # Offense count: 56
109
+ # Cop supports --auto-correct.
110
+ Layout/EmptyLines:
111
+ Enabled: false
112
+
113
+ # Offense count: 7
114
+ # Cop supports --auto-correct.
115
+ Layout/EmptyLinesAroundAccessModifier:
116
+ Exclude:
117
+ - 'lib/trailblazer/dsl.rb'
118
+ - 'lib/trailblazer/operation/model.rb'
119
+ - 'lib/trailblazer/operation/nested.rb'
120
+ - 'lib/trailblazer/operation/pundit.rb'
121
+ - 'lib/trailblazer/operation/test.rb'
122
+ - 'test/module_test.rb'
123
+ - 'test/operation/callback_test.rb'
124
+
125
+ # Offense count: 3
126
+ # Cop supports --auto-correct.
127
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
128
+ # SupportedStyles: empty_lines, no_empty_lines
129
+ Layout/EmptyLinesAroundBlockBody:
130
+ Exclude:
131
+ - 'lib/trailblazer/operation/module.rb'
132
+ - 'test/operation/dsl/contract_test.rb'
133
+ - 'test/operation/pipedream_test.rb'
134
+
135
+ # Offense count: 3
136
+ # Cop supports --auto-correct.
137
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
138
+ # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
139
+ Layout/EmptyLinesAroundClassBody:
140
+ Exclude:
141
+ - 'test/docs/nested_test.rb'
142
+ - 'test/operation/pipedream_test.rb'
143
+ - 'test/operation_test.rb'
144
+
145
+ # Offense count: 1
146
+ # Cop supports --auto-correct.
147
+ Layout/EmptyLinesAroundMethodBody:
148
+ Exclude:
149
+ - 'lib/trailblazer/operation/test.rb'
150
+
151
+ # Offense count: 20
152
+ # Cop supports --auto-correct.
153
+ # Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
154
+ Layout/ExtraSpacing:
155
+ Exclude:
156
+ - 'lib/trailblazer/operation/pundit.rb'
157
+ - 'test/docs/contract_test.rb'
158
+ - 'test/docs/fast_test.rb'
159
+ - 'test/docs/nested_test.rb'
160
+ - 'test/docs/operation_test.rb'
161
+ - 'test/operation/dsl/contract_test.rb'
162
+ - 'test/operation/pipedream_test.rb'
163
+
164
+ # Offense count: 1
165
+ # Cop supports --auto-correct.
166
+ # Configuration parameters: SupportedStyles, IndentationWidth.
167
+ # SupportedStyles: special_inside_parentheses, consistent, align_brackets
168
+ Layout/IndentArray:
169
+ EnforcedStyle: consistent
170
+
171
+ # Offense count: 3
172
+ # Cop supports --auto-correct.
173
+ # Configuration parameters: IndentationWidth.
174
+ Layout/IndentAssignment:
175
+ Exclude:
176
+ - 'lib/trailblazer/operation/validate.rb'
177
+ - 'test/docs/guard_test.rb'
178
+ - 'test/docs/pundit_test.rb'
179
+
180
+ # Offense count: 30
181
+ # Cop supports --auto-correct.
182
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
183
+ # SupportedStyles: normal, rails
184
+ Layout/IndentationConsistency:
185
+ Exclude:
186
+ - 'test/docs/nested_test.rb'
187
+ - 'test/docs/operation_test.rb'
188
+ - 'test/docs/pundit_test.rb'
189
+ - 'test/docs/representer_test.rb'
190
+ - 'test/docs/rescue_test.rb'
191
+ - 'test/docs/wrap_test.rb'
192
+ - 'test/operation/contract_test.rb'
193
+
194
+ # Offense count: 14
195
+ # Cop supports --auto-correct.
196
+ # Configuration parameters: Width, IgnoredPatterns.
197
+ Layout/IndentationWidth:
198
+ Exclude:
199
+ - 'test/docs/contract_test.rb'
200
+ - 'test/docs/guard_test.rb'
201
+ - 'test/docs/nested_test.rb'
202
+ - 'test/docs/pundit_test.rb'
203
+ - 'test/docs/representer_test.rb'
204
+ - 'test/docs/rescue_test.rb'
205
+ - 'test/operation_test.rb'
206
+
207
+ # Offense count: 50
208
+ # Cop supports --auto-correct.
209
+ Layout/LeadingCommentSpace:
210
+ Exclude:
211
+ - 'Gemfile'
212
+ - 'lib/trailblazer/operation/callback.rb'
213
+ - 'test/docs/contract_test.rb'
214
+ - 'test/docs/guard_test.rb'
215
+ - 'test/docs/nested_test.rb'
216
+ - 'test/docs/operation_test.rb'
217
+ - 'test/docs/pundit_test.rb'
218
+ - 'test/docs/rescue_test.rb'
219
+ - 'test/docs/wrap_test.rb'
220
+ - 'test/operation/contract_test.rb'
221
+ - 'test/operation/dsl/contract_test.rb'
222
+ - 'test/operation/pipetree_test.rb'
223
+
224
+ # Offense count: 1
225
+ # Cop supports --auto-correct.
226
+ Layout/MultilineBlockLayout:
227
+ Exclude:
228
+ - 'test/docs/representer_test.rb'
229
+
230
+ # Offense count: 4
231
+ # Cop supports --auto-correct.
232
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
233
+ # SupportedStyles: symmetrical, new_line, same_line
234
+ Layout/MultilineMethodCallBraceLayout:
235
+ Exclude:
236
+ - 'lib/trailblazer/operation/representer.rb'
237
+ - 'test/docs/guard_test.rb'
238
+ - 'test/docs/pundit_test.rb'
239
+ - 'test/docs/representer_test.rb'
240
+
241
+ # Offense count: 2
242
+ # Cop supports --auto-correct.
243
+ # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
244
+ # SupportedStyles: aligned, indented, indented_relative_to_receiver
245
+ Layout/MultilineMethodCallIndentation:
246
+ Exclude:
247
+ - 'lib/trailblazer/operation/validate.rb'
248
+
249
+ # Offense count: 36
250
+ # Cop supports --auto-correct.
251
+ Layout/SpaceAfterColon:
252
+ Exclude:
253
+ - 'lib/trailblazer/operation/contract.rb'
254
+ - 'lib/trailblazer/operation/nested.rb'
255
+ - 'lib/trailblazer/operation/policy.rb'
256
+ - 'lib/trailblazer/operation/procedural/contract.rb'
257
+ - 'lib/trailblazer/operation/procedural/validate.rb'
258
+ - 'lib/trailblazer/operation/representer.rb'
259
+ - 'lib/trailblazer/operation/validate.rb'
260
+ - 'test/docs/contract_test.rb'
261
+ - 'test/docs/model_test.rb'
262
+ - 'test/docs/nested_test.rb'
263
+ - 'test/operation/model_test.rb'
264
+ - 'test/operation_test.rb'
265
+
266
+ # Offense count: 2
267
+ # Cop supports --auto-correct.
268
+ Layout/SpaceAfterComma:
269
+ Exclude:
270
+ - 'lib/trailblazer/operation/nested.rb'
271
+
272
+ # Offense count: 1
273
+ # Cop supports --auto-correct.
274
+ Layout/SpaceAfterNot:
275
+ Exclude:
276
+ - 'test/docs/nested_test.rb'
277
+
278
+ # Offense count: 14
279
+ # Cop supports --auto-correct.
280
+ # Configuration parameters: SupportedStyles.
281
+ # SupportedStyles: space, no_space
282
+ Layout/SpaceAroundEqualsInParameterDefault:
283
+ EnforcedStyle: no_space
284
+
285
+ # Offense count: 45
286
+ # Cop supports --auto-correct.
287
+ # Configuration parameters: AllowForAlignment.
288
+ Layout/SpaceAroundOperators:
289
+ Exclude:
290
+ - 'test/docs/contract_test.rb'
291
+ - 'test/docs/model_test.rb'
292
+ - 'test/docs/nested_test.rb'
293
+ - 'test/docs/operation_test.rb'
294
+ - 'test/docs/representer_test.rb'
295
+ - 'test/operation/callback_test.rb'
296
+ - 'test/operation/contract_test.rb'
297
+ - 'test/operation/dsl/callback_test.rb'
298
+ - 'test/operation/dsl/contract_test.rb'
299
+ - 'test/operation/dsl/representer_test.rb'
300
+ - 'test/operation/params_test.rb'
301
+ - 'test/operation/persist_test.rb'
302
+ - 'test/operation/pipetree_test.rb'
303
+
304
+ # Offense count: 2
305
+ # Cop supports --auto-correct.
306
+ # Configuration parameters: EnforcedStyle, SupportedStyles, SupportedStylesForEmptyBraces.
307
+ # SupportedStyles: space, no_space
308
+ # SupportedStylesForEmptyBraces: space, no_space
309
+ Layout/SpaceBeforeBlockBraces:
310
+ Exclude:
311
+ - 'lib/trailblazer/operation/wrap.rb'
312
+ - 'test/operation/pipedream_test.rb'
313
+
314
+ # Offense count: 4
315
+ # Cop supports --auto-correct.
316
+ Layout/SpaceBeforeComment:
317
+ Exclude:
318
+ - 'Gemfile'
319
+ - 'lib/trailblazer/dsl.rb'
320
+ - 'test/operation/dsl/contract_test.rb'
321
+
322
+ # Offense count: 4
323
+ # Cop supports --auto-correct.
324
+ # Configuration parameters: AllowForAlignment.
325
+ Layout/SpaceBeforeFirstArg:
326
+ Exclude:
327
+ - 'test/operation/pipedream_test.rb'
328
+
329
+ # Offense count: 29
330
+ # Cop supports --auto-correct.
331
+ Layout/SpaceInsideBrackets:
332
+ Exclude:
333
+ - 'lib/trailblazer/operation/callback.rb'
334
+ - 'lib/trailblazer/operation/contract.rb'
335
+ - 'lib/trailblazer/operation/model.rb'
336
+ - 'lib/trailblazer/operation/nested.rb'
337
+ - 'lib/trailblazer/operation/persist.rb'
338
+ - 'lib/trailblazer/operation/policy.rb'
339
+ - 'lib/trailblazer/operation/rescue.rb'
340
+ - 'lib/trailblazer/operation/validate.rb'
341
+ - 'lib/trailblazer/operation/wrap.rb'
342
+ - 'test/docs/macro_test.rb'
343
+ - 'test/operation/pipedream_test.rb'
344
+
345
+ # Offense count: 58
346
+ # Cop supports --auto-correct.
347
+ # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces.
348
+ # SupportedStyles: space, no_space, compact
349
+ # SupportedStylesForEmptyBraces: space, no_space
350
+ Layout/SpaceInsideHashLiteralBraces:
351
+ Exclude:
352
+ - 'lib/trailblazer/operation/auto_inject.rb'
353
+ - 'lib/trailblazer/operation/wrap.rb'
354
+ - 'test/docs/contract_test.rb'
355
+ - 'test/docs/fast_test.rb'
356
+ - 'test/docs/operation_test.rb'
357
+ - 'test/module_test.rb'
358
+ - 'test/operation/callback_test.rb'
359
+ - 'test/operation/contract_test.rb'
360
+ - 'test/operation/dsl/callback_test.rb'
361
+ - 'test/operation/dsl/contract_test.rb'
362
+ - 'test/operation/pipetree_test.rb'
363
+ - 'test/test_helper.rb'
364
+
365
+ # Offense count: 375
366
+ # Cop supports --auto-correct.
367
+ Layout/SpaceInsideParens:
368
+ Enabled: false
369
+
370
+ # Offense count: 5
371
+ # Cop supports --auto-correct.
372
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
373
+ # SupportedStyles: final_newline, final_blank_line
374
+ Layout/TrailingBlankLines:
375
+ Exclude:
376
+ - 'lib/trailblazer/operation/module.rb'
377
+ - 'lib/trailblazer/operation/nested.rb'
378
+ - 'lib/trailblazer/operation/rescue.rb'
379
+ - 'test/docs/contract_test.rb'
380
+ - 'test/docs/wrap_test.rb'
381
+
382
+ # Offense count: 3
383
+ Lint/AmbiguousBlockAssociation:
384
+ Exclude:
385
+ - 'test/docs/rescue_test.rb'
386
+
387
+ # Offense count: 1
388
+ # Configuration parameters: AllowSafeAssignment.
389
+ Lint/AssignmentInCondition:
390
+ Exclude:
391
+ - 'lib/trailblazer/operation/procedural/validate.rb'
392
+
393
+ # Offense count: 1
394
+ # Cop supports --auto-correct.
395
+ # Configuration parameters: EnforcedStyleAlignWith, SupportedStylesAlignWith.
396
+ # SupportedStylesAlignWith: either, start_of_block, start_of_line
397
+ Lint/BlockAlignment:
398
+ Exclude:
399
+ - 'test/docs/wrap_test.rb'
400
+
401
+ # Offense count: 3
402
+ # Cop supports --auto-correct.
403
+ # Configuration parameters: EnforcedStyleAlignWith, SupportedStylesAlignWith, AutoCorrect.
404
+ # SupportedStylesAlignWith: keyword, variable, start_of_line
405
+ Lint/EndAlignment:
406
+ Exclude:
407
+ - 'test/operation_test.rb'
408
+
409
+ # Offense count: 8
410
+ Lint/ParenthesesAsGroupedExpression:
411
+ Exclude:
412
+ - 'test/docs/contract_test.rb'
413
+ - 'test/docs/nested_test.rb'
414
+ - 'test/docs/representer_test.rb'
415
+
416
+ # Offense count: 1
417
+ Lint/RescueWithoutErrorClass:
418
+ Exclude:
419
+ - 'test/docs/wrap_test.rb'
420
+
421
+ # Offense count: 1
422
+ Lint/ShadowingOuterLocalVariable:
423
+ Exclude:
424
+ - 'lib/trailblazer/operation/callback.rb'
425
+
426
+ # Offense count: 22
427
+ # Cop supports --auto-correct.
428
+ # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
429
+ Lint/UnusedBlockArgument:
430
+ Exclude:
431
+ - 'lib/trailblazer/operation/model.rb'
432
+ - 'lib/trailblazer/operation/persist.rb'
433
+ - 'lib/trailblazer/operation/validate.rb'
434
+ - 'test/docs/guard_test.rb'
435
+ - 'test/docs/macro_test.rb'
436
+ - 'test/docs/nested_test.rb'
437
+ - 'test/docs/wrap_test.rb'
438
+ - 'test/operation/pipetree_test.rb'
439
+ - 'test/test_helper.rb'
440
+
441
+ # Offense count: 33
442
+ # Cop supports --auto-correct.
443
+ # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
444
+ Lint/UnusedMethodArgument:
445
+ Exclude:
446
+ - 'lib/trailblazer/dsl.rb'
447
+ - 'lib/trailblazer/operation/guard.rb'
448
+ - 'lib/trailblazer/operation/model.rb'
449
+ - 'lib/trailblazer/operation/nested.rb'
450
+ - 'lib/trailblazer/operation/policy.rb'
451
+ - 'lib/trailblazer/operation/pundit.rb'
452
+ - 'test/docs/contract_test.rb'
453
+ - 'test/docs/fast_test.rb'
454
+ - 'test/docs/guard_test.rb'
455
+ - 'test/docs/nested_test.rb'
456
+ - 'test/docs/wrap_test.rb'
457
+ - 'test/operation/dsl/callback_test.rb'
458
+ - 'test/operation/pipetree_test.rb'
459
+ - 'test/operation/present_test.rb'
460
+ - 'test/operation/representer_test.rb'
461
+
462
+ # Offense count: 4
463
+ Lint/UselessAssignment:
464
+ Exclude:
465
+ - 'lib/trailblazer/operation/callback.rb'
466
+ - 'test/docs/model_test.rb'
467
+ - 'test/operation/pipetree_test.rb'
468
+ - 'test/operation_test.rb'
469
+
470
+ # Offense count: 1
471
+ Lint/Void:
472
+ Exclude:
473
+ - 'test/docs/representer_test.rb'
474
+
475
+ # Offense count: 3
476
+ Metrics/AbcSize:
477
+ Max: 18
478
+
479
+ # Offense count: 3
480
+ # Configuration parameters: CountComments, ExcludedMethods.
481
+ Metrics/BlockLength:
482
+ Max: 32
483
+
484
+ # Offense count: 1
485
+ Metrics/CyclomaticComplexity:
486
+ Max: 10
487
+
488
+ # Offense count: 312
489
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
490
+ # URISchemes: http, https
491
+ Metrics/LineLength:
492
+ Max: 222
493
+
494
+ # Offense count: 3
495
+ # Configuration parameters: CountComments.
496
+ Metrics/MethodLength:
497
+ Max: 16
498
+
499
+ # Offense count: 1
500
+ Metrics/PerceivedComplexity:
501
+ Max: 11
502
+
503
+ # Offense count: 1
504
+ Naming/ConstantName:
505
+ Exclude:
506
+ - 'lib/trailblazer/operation/wrap.rb'
507
+
508
+ # Offense count: 14
509
+ # Configuration parameters: SupportedStyles.
510
+ # SupportedStyles: snake_case, camelCase
511
+ Naming/MethodName:
512
+ EnforcedStyle: snake_case
513
+
514
+ # Offense count: 1
515
+ # Cop supports --auto-correct.
516
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
517
+ # SupportedStyles: prefer_alias, prefer_alias_method
518
+ Style/Alias:
519
+ Exclude:
520
+ - 'test/operation_test.rb'
521
+
522
+ # Offense count: 10
523
+ # Cop supports --auto-correct.
524
+ Style/BlockComments:
525
+ Exclude:
526
+ - 'test/docs/contract_test.rb'
527
+ - 'test/docs/macro_test.rb'
528
+ - 'test/docs/operation_test.rb'
529
+
530
+ # Offense count: 5
531
+ # Cop supports --auto-correct.
532
+ # Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
533
+ # SupportedStyles: line_count_based, semantic, braces_for_chaining
534
+ # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
535
+ # FunctionalMethods: let, let!, subject, watch
536
+ # IgnoredMethods: lambda, proc, it
537
+ Style/BlockDelimiters:
538
+ Exclude:
539
+ - 'lib/trailblazer/operation/auto_inject.rb'
540
+ - 'lib/trailblazer/operation/module.rb'
541
+ - 'test/docs/rescue_test.rb'
542
+ - 'test/docs/wrap_test.rb'
543
+ - 'test/operation/dsl/contract_test.rb'
544
+
545
+ # Offense count: 48
546
+ # Cop supports --auto-correct.
547
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
548
+ # SupportedStyles: braces, no_braces, context_dependent
549
+ Style/BracesAroundHashParameters:
550
+ Exclude:
551
+ - 'lib/trailblazer/operation/wrap.rb'
552
+ - 'test/docs/contract_test.rb'
553
+ - 'test/docs/fast_test.rb'
554
+ - 'test/docs/model_test.rb'
555
+ - 'test/docs/nested_test.rb'
556
+ - 'test/docs/representer_test.rb'
557
+ - 'test/module_test.rb'
558
+ - 'test/operation/callback_test.rb'
559
+ - 'test/operation/contract_test.rb'
560
+ - 'test/operation/dsl/callback_test.rb'
561
+ - 'test/operation/dsl/contract_test.rb'
562
+ - 'test/operation/model_test.rb'
563
+ - 'test/operation/params_test.rb'
564
+ - 'test/operation/pipedream_test.rb'
565
+
566
+ # Offense count: 30
567
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
568
+ # SupportedStyles: nested, compact
569
+ Style/ClassAndModuleChildren:
570
+ Enabled: false
571
+
572
+ # Offense count: 1
573
+ # Cop supports --auto-correct.
574
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
575
+ # SupportedStyles: is_a?, kind_of?
576
+ Style/ClassCheck:
577
+ Exclude:
578
+ - 'lib/trailblazer/dsl.rb'
579
+
580
+ # Offense count: 1
581
+ # Cop supports --auto-correct.
582
+ # Configuration parameters: Keywords.
583
+ # Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
584
+ Style/CommentAnnotation:
585
+ Exclude:
586
+ - 'test/docs/pundit_test.rb'
587
+
588
+ # Offense count: 12
589
+ Style/CommentedKeyword:
590
+ Exclude:
591
+ - 'lib/trailblazer/operation/contract.rb'
592
+ - 'lib/trailblazer/operation/guard.rb'
593
+ - 'lib/trailblazer/operation/model.rb'
594
+ - 'lib/trailblazer/operation/module.rb'
595
+ - 'lib/trailblazer/operation/nested.rb'
596
+ - 'lib/trailblazer/operation/procedural/validate.rb'
597
+ - 'lib/trailblazer/operation/validate.rb'
598
+ - 'lib/trailblazer/operation/wrap.rb'
599
+ - 'test/docs/nested_test.rb'
600
+ - 'test/operation/contract_test.rb'
601
+ - 'test/operation/pundit_test.rb'
602
+ - 'test/operation/representer_test.rb'
603
+
604
+ # Offense count: 1
605
+ # Cop supports --auto-correct.
606
+ # Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly, IncludeTernaryExpressions.
607
+ # SupportedStyles: assign_to_condition, assign_inside_condition
608
+ Style/ConditionalAssignment:
609
+ Exclude:
610
+ - 'test/operation_test.rb'
611
+
612
+ # Offense count: 37
613
+ Style/Documentation:
614
+ Enabled: false
615
+
616
+ # Offense count: 2
617
+ Style/DoubleNegation:
618
+ Exclude:
619
+ - 'lib/trailblazer/operation/guard.rb'
620
+ - 'test/docs/nested_test.rb'
621
+
622
+ # Offense count: 1
623
+ # Cop supports --auto-correct.
624
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
625
+ # SupportedStyles: empty, nil, both
626
+ Style/EmptyElse:
627
+ Exclude:
628
+ - 'lib/trailblazer/operation/procedural/validate.rb'
629
+
630
+ # Offense count: 4
631
+ # Cop supports --auto-correct.
632
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
633
+ # SupportedStyles: compact, expanded
634
+ Style/EmptyMethod:
635
+ Exclude:
636
+ - 'test/docs/wrap_test.rb'
637
+ - 'test/operation_test.rb'
638
+
639
+ # Offense count: 1
640
+ # Configuration parameters: MinBodyLength.
641
+ Style/GuardClause:
642
+ Exclude:
643
+ - 'test/docs/fast_test.rb'
644
+
645
+ # Offense count: 10
646
+ # Cop supports --auto-correct.
647
+ # Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
648
+ # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
649
+ Style/HashSyntax:
650
+ Exclude:
651
+ - 'Rakefile'
652
+ - 'test/docs/contract_test.rb'
653
+ - 'test/operation/contract_test.rb'
654
+
655
+ # Offense count: 12
656
+ # Cop supports --auto-correct.
657
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
658
+ # SupportedStyles: line_count_dependent, lambda, literal
659
+ Style/Lambda:
660
+ Exclude:
661
+ - 'lib/trailblazer/operation/model.rb'
662
+ - 'lib/trailblazer/operation/nested.rb'
663
+ - 'lib/trailblazer/operation/representer.rb'
664
+ - 'lib/trailblazer/operation/rescue.rb'
665
+ - 'lib/trailblazer/operation/validate.rb'
666
+ - 'test/docs/contract_test.rb'
667
+ - 'test/docs/nested_test.rb'
668
+ - 'test/docs/wrap_test.rb'
669
+
670
+ # Offense count: 284
671
+ # Cop supports --auto-correct.
672
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
673
+ # SupportedStyles: call, braces
674
+ Style/LambdaCall:
675
+ Enabled: false
676
+
677
+ # Offense count: 1
678
+ Style/MethodMissing:
679
+ Exclude:
680
+ - 'lib/trailblazer/operation/module.rb'
681
+
682
+ # Offense count: 1
683
+ # Cop supports --auto-correct.
684
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
685
+ # SupportedStyles: separated, grouped
686
+ Style/MixinGrouping:
687
+ Exclude:
688
+ - 'test/operation/representer_test.rb'
689
+
690
+ # Offense count: 1
691
+ # Cop supports --auto-correct.
692
+ Style/MutableConstant:
693
+ Exclude:
694
+ - 'lib/trailblazer/version.rb'
695
+
696
+ # Offense count: 1
697
+ # Cop supports --auto-correct.
698
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
699
+ # SupportedStyles: both, prefix, postfix
700
+ Style/NegatedIf:
701
+ Exclude:
702
+ - 'lib/trailblazer/operation/pundit.rb'
703
+
704
+ # Offense count: 2
705
+ Style/OptionalArguments:
706
+ Exclude:
707
+ - 'lib/trailblazer/dsl.rb'
708
+
709
+ # Offense count: 4
710
+ # Cop supports --auto-correct.
711
+ Style/ParallelAssignment:
712
+ Exclude:
713
+ - 'lib/trailblazer/operation/pundit.rb'
714
+ - 'test/docs/pundit_test.rb'
715
+ - 'test/operation/pipedream_test.rb'
716
+ - 'test/operation/pundit_test.rb'
717
+
718
+ # Offense count: 169
719
+ # Cop supports --auto-correct.
720
+ # Configuration parameters: PreferredDelimiters.
721
+ Style/PercentLiteralDelimiters:
722
+ Enabled: false
723
+
724
+ # Offense count: 1
725
+ # Cop supports --auto-correct.
726
+ # Configuration parameters: AllowMultipleReturnValues.
727
+ Style/RedundantReturn:
728
+ Exclude:
729
+ - 'test/docs/fast_test.rb'
730
+
731
+ # Offense count: 1
732
+ # Cop supports --auto-correct.
733
+ Style/SelfAssignment:
734
+ Exclude:
735
+ - 'Rakefile'
736
+
737
+ # Offense count: 3
738
+ # Cop supports --auto-correct.
739
+ # Configuration parameters: AllowAsExpressionSeparator.
740
+ Style/Semicolon:
741
+ Exclude:
742
+ - 'lib/trailblazer/operation/representer.rb'
743
+ - 'test/docs/nested_test.rb'
744
+ - 'test/operation/dsl/representer_test.rb'
745
+
746
+ # Offense count: 39
747
+ # Cop supports --auto-correct.
748
+ # Configuration parameters: AllowIfMethodIsEmpty.
749
+ Style/SingleLineMethods:
750
+ Exclude:
751
+ - 'lib/trailblazer/operation/nested.rb'
752
+ - 'test/docs/fast_test.rb'
753
+ - 'test/docs/guard_test.rb'
754
+ - 'test/docs/operation_test.rb'
755
+ - 'test/docs/wrap_test.rb'
756
+ - 'test/operation/dsl/callback_test.rb'
757
+ - 'test/operation/dsl/representer_test.rb'
758
+ - 'test/operation/model_test.rb'
759
+ - 'test/operation/params_test.rb'
760
+ - 'test/operation/persist_test.rb'
761
+ - 'test/operation/pipedream_test.rb'
762
+ - 'test/operation/present_test.rb'
763
+ - 'test/operation/pundit_test.rb'
764
+ - 'test/test_helper.rb'
765
+
766
+ # Offense count: 1
767
+ # Cop supports --auto-correct.
768
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
769
+ # SupportedStyles: use_perl_names, use_english_names
770
+ Style/SpecialGlobalVars:
771
+ Exclude:
772
+ - 'trailblazer.gemspec'
773
+
774
+ # Offense count: 1030
775
+ # Cop supports --auto-correct.
776
+ # Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
777
+ # SupportedStyles: single_quotes, double_quotes
778
+ Style/StringLiterals:
779
+ Enabled: false
780
+
781
+ # Offense count: 3
782
+ # Cop supports --auto-correct.
783
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
784
+ # SupportedStyles: single_quotes, double_quotes
785
+ Style/StringLiteralsInInterpolation:
786
+ Exclude:
787
+ - 'test/docs/contract_test.rb'
788
+ - 'test/operation/representer_test.rb'
789
+ - 'test/operation_test.rb'
790
+
791
+ # Offense count: 6
792
+ # Cop supports --auto-correct.
793
+ # Configuration parameters: MinSize, SupportedStyles.
794
+ # SupportedStyles: percent, brackets
795
+ Style/SymbolArray:
796
+ EnforcedStyle: brackets
797
+
798
+ # Offense count: 1
799
+ # Cop supports --auto-correct.
800
+ # Configuration parameters: IgnoredMethods.
801
+ # IgnoredMethods: respond_to, define_method
802
+ Style/SymbolProc:
803
+ Exclude:
804
+ - 'test/operation/pipetree_test.rb'
805
+
806
+ # Offense count: 1
807
+ # Cop supports --auto-correct.
808
+ # Configuration parameters: AllowNamedUnderscoreVariables.
809
+ Style/TrailingUnderscoreVariable:
810
+ Exclude:
811
+ - 'lib/trailblazer/operation/rescue.rb'
812
+
813
+ # Offense count: 2
814
+ # Cop supports --auto-correct.
815
+ Style/UnneededPercentQ:
816
+ Exclude:
817
+ - 'trailblazer.gemspec'
818
+
819
+ # Offense count: 1
820
+ # Cop supports --auto-correct.
821
+ # Configuration parameters: SupportedStyles, WordRegex.
822
+ # SupportedStyles: percent, brackets
823
+ Style/WordArray:
824
+ EnforcedStyle: percent
825
+ MinSize: 3