trailblazer-macro 2.1.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: cc458ce043808efe4b13aa0f73d23712f4ddd520ad5ac543f03242220305d577
4
+ data.tar.gz: dc53670bdcbb26b6393588c59b01dcc5f39f272e85c0c41598658cc01d3368b1
5
+ SHA512:
6
+ metadata.gz: 0fe5e2a7883a89f5015801cf53749b43d1d794acb7dbbeeb53485b02aeb2d5c12f5f9bf819e157cf71f535615e295bf67fb6cddd36d003195ef0a285bef669ff
7
+ data.tar.gz: 185a5b954d07f37257257e0f67f6bc9a89b2581b025c2bd02aecc09c6c2c42edd0f8b5c4f5ce5ef5e2674affb7ed42d5688e28458642abcaa3d16c28a948079f
@@ -0,0 +1,18 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ lib/bundler/man
11
+ pkg
12
+ rdoc
13
+ spec/reports
14
+ test/tmp
15
+ test/version_tmp
16
+ tmp
17
+ /**/*.log
18
+ .idea
@@ -0,0 +1,16 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ Style/StringLiterals:
4
+ EnforcedStyle: double_quotes
5
+
6
+ Naming/MethodName:
7
+ Exclude:
8
+ - 'test/docs/macro_test.rb'
9
+ - 'lib/trailblazer/macro/model.rb'
10
+ - 'lib/trailblazer/macro/wrap.rb'
11
+ - 'lib/trailblazer/macro/policy/pundit.rb'
12
+ - 'lib/trailblazer/macro/rescue.rb'
13
+ - 'lib/trailblazer/macro/nested.rb'
14
+ - 'lib/trailblazer/macro/policy/guard.rb'
15
+ - 'lib/trailblazer/macro/wrap.rb'
16
+ - 'lib/trailblazer/macro/policy.rb'
@@ -0,0 +1,642 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2018-03-03 18:15:21 +0100 using RuboCop version 0.52.1.
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: 1
18
+ # Cop supports --auto-correct.
19
+ # Configuration parameters: Include, TreatCommentsAsGroupSeparators.
20
+ # Include: **/*.gemspec
21
+ Gemspec/OrderedDependencies:
22
+ Exclude:
23
+ - 'trailblazer-macro.gemspec'
24
+
25
+ # Offense count: 1
26
+ # Configuration parameters: Include.
27
+ # Include: **/*.gemspec
28
+ Gemspec/RequiredRubyVersion:
29
+ Exclude:
30
+ - 'trailblazer-macro.gemspec'
31
+
32
+ # Offense count: 1
33
+ # Cop supports --auto-correct.
34
+ # Configuration parameters: IndentationWidth.
35
+ # SupportedStyles: outdent, indent
36
+ Layout/AccessModifierIndentation:
37
+ EnforcedStyle: outdent
38
+
39
+ # Offense count: 5
40
+ # Cop supports --auto-correct.
41
+ # Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
42
+ # SupportedHashRocketStyles: key, separator, table
43
+ # SupportedColonStyles: key, separator, table
44
+ # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
45
+ Layout/AlignHash:
46
+ Exclude:
47
+ - 'test/docs/pundit_test.rb'
48
+ - 'test/docs/representer_test.rb'
49
+
50
+ # Offense count: 5
51
+ # Cop supports --auto-correct.
52
+ Layout/BlockEndNewline:
53
+ Exclude:
54
+ - 'test/docs/nested_test.rb'
55
+ - 'test/docs/pundit_test.rb'
56
+ - 'test/docs/representer_test.rb'
57
+ - 'test/docs/wrap.rb'
58
+
59
+ # Offense count: 2
60
+ # Cop supports --auto-correct.
61
+ Layout/ClosingParenthesisIndentation:
62
+ Exclude:
63
+ - 'test/docs/pundit_test.rb'
64
+ - 'test/docs/representer_test.rb'
65
+
66
+ # Offense count: 17
67
+ # Cop supports --auto-correct.
68
+ Layout/CommentIndentation:
69
+ Exclude:
70
+ - 'test/docs/macro_test.rb'
71
+ - 'test/docs/nested_test.rb'
72
+ - 'test/docs/pundit_test.rb'
73
+ - 'test/docs/representer_test.rb'
74
+ - 'test/docs/rescue_test.rb'
75
+ - 'test/docs/wrap.rb'
76
+
77
+ # Offense count: 3
78
+ # Cop supports --auto-correct.
79
+ # Configuration parameters: EnforcedStyle.
80
+ # SupportedStyles: leading, trailing
81
+ Layout/DotPosition:
82
+ Exclude:
83
+ - 'test/docs/nested_test.rb'
84
+
85
+ # Offense count: 8
86
+ # Cop supports --auto-correct.
87
+ # Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines.
88
+ Layout/EmptyLineBetweenDefs:
89
+ Exclude:
90
+ - 'test/macro/model_test.rb'
91
+ - 'test/macro/nested_test.rb'
92
+ - 'test/macro/pundit_test.rb'
93
+ - 'test/test_helper.rb'
94
+
95
+ # Offense count: 9
96
+ # Cop supports --auto-correct.
97
+ Layout/EmptyLines:
98
+ Exclude:
99
+ - 'test/docs/pundit_test.rb'
100
+ - 'test/docs/representer_test.rb'
101
+ - 'test/docs/rescue_test.rb'
102
+ - 'test/macro/nested_test.rb'
103
+ - 'test/macro/pundit_test.rb'
104
+
105
+ # Offense count: 1
106
+ # Cop supports --auto-correct.
107
+ Layout/EmptyLinesAroundAccessModifier:
108
+ Exclude:
109
+ - 'lib/trailblazer/macro/policy/pundit.rb'
110
+
111
+ # Offense count: 1
112
+ # Cop supports --auto-correct.
113
+ # Configuration parameters: EnforcedStyle.
114
+ # SupportedStyles: empty_lines, no_empty_lines
115
+ Layout/EmptyLinesAroundBlockBody:
116
+ Exclude:
117
+ - 'test/docs/wrap.rb'
118
+
119
+ # Offense count: 2
120
+ # Cop supports --auto-correct.
121
+ # Configuration parameters: EnforcedStyle.
122
+ # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
123
+ Layout/EmptyLinesAroundClassBody:
124
+ Exclude:
125
+ - 'lib/trailblazer/macro/wrap.rb'
126
+ - 'test/docs/nested_test.rb'
127
+
128
+ # Offense count: 10
129
+ # Cop supports --auto-correct.
130
+ # Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
131
+ Layout/ExtraSpacing:
132
+ Exclude:
133
+ - 'lib/trailblazer/macro/nested.rb'
134
+ - 'lib/trailblazer/macro/policy/pundit.rb'
135
+ - 'test/docs/nested_test.rb'
136
+ - 'test/docs/pundit_test.rb'
137
+ - 'test/macro/nested_test.rb'
138
+
139
+ # Offense count: 1
140
+ # Cop supports --auto-correct.
141
+ # Configuration parameters: IndentationWidth.
142
+ Layout/IndentAssignment:
143
+ Exclude:
144
+ - 'test/docs/pundit_test.rb'
145
+
146
+ # Offense count: 19
147
+ # Cop supports --auto-correct.
148
+ # Configuration parameters: EnforcedStyle.
149
+ # SupportedStyles: normal, rails
150
+ Layout/IndentationConsistency:
151
+ Exclude:
152
+ - 'test/docs/nested_test.rb'
153
+ - 'test/docs/pundit_test.rb'
154
+ - 'test/docs/representer_test.rb'
155
+ - 'test/docs/rescue_test.rb'
156
+ - 'test/docs/wrap.rb'
157
+
158
+ # Offense count: 10
159
+ # Cop supports --auto-correct.
160
+ # Configuration parameters: Width, IgnoredPatterns.
161
+ Layout/IndentationWidth:
162
+ Exclude:
163
+ - 'test/docs/nested_test.rb'
164
+ - 'test/docs/pundit_test.rb'
165
+ - 'test/docs/representer_test.rb'
166
+ - 'test/docs/rescue_test.rb'
167
+ - 'test/docs/wrap.rb'
168
+
169
+ # Offense count: 21
170
+ # Cop supports --auto-correct.
171
+ Layout/LeadingCommentSpace:
172
+ Exclude:
173
+ - 'Gemfile'
174
+ - 'lib/trailblazer/macro/wrap.rb'
175
+ - 'test/docs/nested_test.rb'
176
+ - 'test/docs/pundit_test.rb'
177
+ - 'test/docs/rescue_test.rb'
178
+ - 'test/docs/wrap.rb'
179
+
180
+ # Offense count: 2
181
+ # Cop supports --auto-correct.
182
+ Layout/MultilineBlockLayout:
183
+ Exclude:
184
+ - 'test/docs/nested_test.rb'
185
+ - 'test/docs/representer_test.rb'
186
+
187
+ # Offense count: 1
188
+ # Cop supports --auto-correct.
189
+ # Configuration parameters: EnforcedStyle.
190
+ # SupportedStyles: symmetrical, new_line, same_line
191
+ Layout/MultilineHashBraceLayout:
192
+ Exclude:
193
+ - 'test/docs/nested_test.rb'
194
+
195
+ # Offense count: 2
196
+ # Cop supports --auto-correct.
197
+ # Configuration parameters: EnforcedStyle.
198
+ # SupportedStyles: symmetrical, new_line, same_line
199
+ Layout/MultilineMethodCallBraceLayout:
200
+ Exclude:
201
+ - 'test/docs/pundit_test.rb'
202
+ - 'test/docs/representer_test.rb'
203
+
204
+ # Offense count: 1
205
+ # Cop supports --auto-correct.
206
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
207
+ # SupportedStyles: aligned, indented, indented_relative_to_receiver
208
+ Layout/MultilineMethodCallIndentation:
209
+ Exclude:
210
+ - 'test/docs/nested_test.rb'
211
+
212
+ # Offense count: 16
213
+ # Cop supports --auto-correct.
214
+ Layout/SpaceAfterColon:
215
+ Exclude:
216
+ - 'lib/trailblazer/macro/nested.rb'
217
+ - 'lib/trailblazer/macro/policy.rb'
218
+ - 'lib/trailblazer/macro/representer.rb'
219
+ - 'test/docs/model_test.rb'
220
+ - 'test/docs/nested_test.rb'
221
+ - 'test/macro/model_test.rb'
222
+ - 'test/macro/nested_test.rb'
223
+
224
+ # Offense count: 1
225
+ # Cop supports --auto-correct.
226
+ Layout/SpaceAfterNot:
227
+ Exclude:
228
+ - 'test/docs/nested_test.rb'
229
+
230
+ # Offense count: 4
231
+ # Cop supports --auto-correct.
232
+ # Configuration parameters: EnforcedStyleInsidePipes.
233
+ # SupportedStylesInsidePipes: space, no_space
234
+ Layout/SpaceAroundBlockParameters:
235
+ Exclude:
236
+ - 'lib/trailblazer/macro/policy/guard.rb'
237
+ - 'test/docs/nested_test.rb'
238
+
239
+ # Offense count: 3
240
+ # Cop supports --auto-correct.
241
+ # Configuration parameters: .
242
+ # SupportedStyles: space, no_space
243
+ Layout/SpaceAroundEqualsInParameterDefault:
244
+ EnforcedStyle: no_space
245
+
246
+ # Offense count: 7
247
+ # Cop supports --auto-correct.
248
+ # Configuration parameters: AllowForAlignment.
249
+ Layout/SpaceAroundOperators:
250
+ Exclude:
251
+ - 'lib/trailblazer/macro/nested.rb'
252
+ - 'test/docs/model_test.rb'
253
+ - 'test/docs/nested_test.rb'
254
+ - 'test/docs/representer_test.rb'
255
+ - 'test/macro/nested_test.rb'
256
+
257
+ # Offense count: 1
258
+ # Cop supports --auto-correct.
259
+ Layout/SpaceBeforeComment:
260
+ Exclude:
261
+ - 'Gemfile'
262
+
263
+ # Offense count: 6
264
+ # Cop supports --auto-correct.
265
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
266
+ # SupportedStyles: space, no_space, compact
267
+ # SupportedStylesForEmptyBrackets: space, no_space
268
+ Layout/SpaceInsideArrayLiteralBrackets:
269
+ Exclude:
270
+ - 'lib/trailblazer/macro/policy.rb'
271
+ - 'test/docs/macro_test.rb'
272
+ - 'test/docs/wrap.rb'
273
+
274
+ # Offense count: 55
275
+ # Cop supports --auto-correct.
276
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
277
+ # SupportedStyles: space, no_space, compact
278
+ # SupportedStylesForEmptyBraces: space, no_space
279
+ Layout/SpaceInsideHashLiteralBraces:
280
+ Exclude:
281
+ - 'test/docs/nested_test.rb'
282
+ - 'test/docs/rescue_test.rb'
283
+ - 'test/docs/wrap.rb'
284
+ - 'test/macro/model_test.rb'
285
+ - 'test/test_helper.rb'
286
+
287
+ # Offense count: 269
288
+ # Cop supports --auto-correct.
289
+ Layout/SpaceInsideParens:
290
+ Exclude:
291
+ - 'lib/trailblazer/macro/nested.rb'
292
+ - 'lib/trailblazer/macro/policy.rb'
293
+ - 'lib/trailblazer/macro/policy/guard.rb'
294
+ - 'lib/trailblazer/macro/policy/pundit.rb'
295
+ - 'lib/trailblazer/macro/wrap.rb'
296
+ - 'test/docs/macro_test.rb'
297
+ - 'test/docs/model_test.rb'
298
+ - 'test/docs/nested_test.rb'
299
+ - 'test/docs/pundit_test.rb'
300
+ - 'test/docs/representer_test.rb'
301
+ - 'test/docs/rescue_test.rb'
302
+ - 'test/docs/wrap.rb'
303
+ - 'test/macro/model_test.rb'
304
+ - 'test/macro/nested_test.rb'
305
+ - 'test/macro/pundit_test.rb'
306
+
307
+ # Offense count: 2
308
+ # Cop supports --auto-correct.
309
+ # Configuration parameters: EnforcedStyle.
310
+ # SupportedStyles: space, no_space
311
+ Layout/SpaceInsideReferenceBrackets:
312
+ Exclude:
313
+ - 'lib/trailblazer/macro/policy.rb'
314
+
315
+ # Offense count: 3
316
+ Lint/AmbiguousBlockAssociation:
317
+ Exclude:
318
+ - 'test/docs/rescue_test.rb'
319
+
320
+ # Offense count: 1
321
+ Lint/AmbiguousRegexpLiteral:
322
+ Exclude:
323
+ - 'test/docs/rescue_test.rb'
324
+
325
+ # Offense count: 3
326
+ # Cop supports --auto-correct.
327
+ # Configuration parameters: EnforcedStyleAlignWith.
328
+ # SupportedStylesAlignWith: either, start_of_block, start_of_line
329
+ Lint/BlockAlignment:
330
+ Exclude:
331
+ - 'test/docs/wrap.rb'
332
+
333
+ # Offense count: 8
334
+ Lint/ParenthesesAsGroupedExpression:
335
+ Exclude:
336
+ - 'test/docs/nested_test.rb'
337
+ - 'test/docs/representer_test.rb'
338
+ - 'test/docs/rescue_test.rb'
339
+
340
+ # Offense count: 4
341
+ Lint/UnreachableCode:
342
+ Exclude:
343
+ - 'test/macro/nested_test.rb'
344
+
345
+ # Offense count: 8
346
+ # Cop supports --auto-correct.
347
+ # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
348
+ Lint/UnusedBlockArgument:
349
+ Exclude:
350
+ - 'lib/trailblazer/macro/rescue.rb'
351
+ - 'test/docs/macro_test.rb'
352
+ - 'test/docs/nested_test.rb'
353
+ - 'test/docs/wrap.rb'
354
+ - 'test/macro/nested_test.rb'
355
+ - 'test/test_helper.rb'
356
+
357
+ # Offense count: 14
358
+ # Cop supports --auto-correct.
359
+ # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
360
+ Lint/UnusedMethodArgument:
361
+ Exclude:
362
+ - 'lib/trailblazer/macro/model.rb'
363
+ - 'lib/trailblazer/macro/nested.rb'
364
+ - 'lib/trailblazer/macro/policy.rb'
365
+ - 'lib/trailblazer/macro/policy/guard.rb'
366
+ - 'test/docs/nested_test.rb'
367
+ - 'test/docs/wrap.rb'
368
+ - 'test/macro/nested_test.rb'
369
+
370
+ # Offense count: 2
371
+ Lint/UselessAssignment:
372
+ Exclude:
373
+ - 'test/docs/model_test.rb'
374
+ - 'test/docs/nested_test.rb'
375
+
376
+ # Offense count: 1
377
+ Lint/Void:
378
+ Exclude:
379
+ - 'test/docs/representer_test.rb'
380
+
381
+ # Offense count: 2
382
+ Metrics/AbcSize:
383
+ Max: 25
384
+
385
+ # Offense count: 4
386
+ # Configuration parameters: CountComments.
387
+ Metrics/MethodLength:
388
+ Max: 17
389
+
390
+ # Offense count: 1
391
+ # Cop supports --auto-correct.
392
+ Style/BlockComments:
393
+ Exclude:
394
+ - 'test/docs/macro_test.rb'
395
+
396
+ # Offense count: 3
397
+ # Cop supports --auto-correct.
398
+ # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods.
399
+ # SupportedStyles: line_count_based, semantic, braces_for_chaining
400
+ # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
401
+ # FunctionalMethods: let, let!, subject, watch
402
+ # IgnoredMethods: lambda, proc, it
403
+ Style/BlockDelimiters:
404
+ Exclude:
405
+ - 'test/docs/rescue_test.rb'
406
+ - 'test/docs/wrap.rb'
407
+
408
+ # Offense count: 2
409
+ Style/CaseEquality:
410
+ Exclude:
411
+ - 'lib/trailblazer/macro/wrap.rb'
412
+
413
+ # Offense count: 9
414
+ # Cop supports --auto-correct.
415
+ # Configuration parameters: AutoCorrect, EnforcedStyle.
416
+ # SupportedStyles: nested, compact
417
+ Style/ClassAndModuleChildren:
418
+ Exclude:
419
+ - 'lib/trailblazer/macro/model.rb'
420
+ - 'lib/trailblazer/macro/policy.rb'
421
+ - 'lib/trailblazer/macro/policy/guard.rb'
422
+ - 'lib/trailblazer/macro/policy/pundit.rb'
423
+ - 'lib/trailblazer/macro/representer.rb'
424
+ - 'lib/trailblazer/macro/rescue.rb'
425
+ - 'lib/trailblazer/macro/wrap.rb'
426
+ - 'test/docs/nested_test.rb'
427
+
428
+ # Offense count: 1
429
+ # Cop supports --auto-correct.
430
+ # Configuration parameters: EnforcedStyle.
431
+ # SupportedStyles: is_a?, kind_of?
432
+ Style/ClassCheck:
433
+ Exclude:
434
+ - 'lib/trailblazer/macro/nested.rb'
435
+
436
+ # Offense count: 1
437
+ # Cop supports --auto-correct.
438
+ # Configuration parameters: Keywords.
439
+ # Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
440
+ Style/CommentAnnotation:
441
+ Exclude:
442
+ - 'test/docs/pundit_test.rb'
443
+
444
+ # Offense count: 3
445
+ Style/CommentedKeyword:
446
+ Exclude:
447
+ - 'lib/trailblazer/macro/wrap.rb'
448
+ - 'test/docs/nested_test.rb'
449
+
450
+ # Offense count: 14
451
+ Style/Documentation:
452
+ Exclude:
453
+ - 'spec/**/*'
454
+ - 'test/**/*'
455
+ - 'lib/trailblazer/macro/model.rb'
456
+ - 'lib/trailblazer/macro/nested.rb'
457
+ - 'lib/trailblazer/macro/policy.rb'
458
+ - 'lib/trailblazer/macro/policy/guard.rb'
459
+ - 'lib/trailblazer/macro/policy/pundit.rb'
460
+ - 'lib/trailblazer/macro/representer.rb'
461
+ - 'lib/trailblazer/macro/rescue.rb'
462
+ - 'lib/trailblazer/macro/wrap.rb'
463
+
464
+ # Offense count: 2
465
+ Style/DoubleNegation:
466
+ Exclude:
467
+ - 'lib/trailblazer/macro/policy/guard.rb'
468
+ - 'test/docs/nested_test.rb'
469
+
470
+ # Offense count: 1
471
+ # Cop supports --auto-correct.
472
+ # Configuration parameters: EnforcedStyle.
473
+ # SupportedStyles: compact, expanded
474
+ Style/EmptyMethod:
475
+ Exclude:
476
+ - 'test/docs/wrap.rb'
477
+
478
+ # Offense count: 1
479
+ # Configuration parameters: MinBodyLength.
480
+ Style/GuardClause:
481
+ Exclude:
482
+ - 'lib/trailblazer/macro/wrap.rb'
483
+
484
+ # Offense count: 3
485
+ # Cop supports --auto-correct.
486
+ # Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
487
+ # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
488
+ Style/HashSyntax:
489
+ Exclude:
490
+ - 'Rakefile'
491
+ - 'lib/trailblazer/macro/nested.rb'
492
+
493
+ # Offense count: 2
494
+ # Cop supports --auto-correct.
495
+ Style/IfUnlessModifier:
496
+ Exclude:
497
+ - 'lib/trailblazer/macro/nested.rb'
498
+ - 'test/docs/representer_test.rb'
499
+
500
+ # Offense count: 9
501
+ # Cop supports --auto-correct.
502
+ # Configuration parameters: EnforcedStyle.
503
+ # SupportedStyles: line_count_dependent, lambda, literal
504
+ Style/Lambda:
505
+ Exclude:
506
+ - 'lib/trailblazer/macro/policy/guard.rb'
507
+ - 'lib/trailblazer/macro/representer.rb'
508
+ - 'lib/trailblazer/macro/rescue.rb'
509
+ - 'lib/trailblazer/macro/wrap.rb'
510
+ - 'test/docs/nested_test.rb'
511
+ - 'test/docs/wrap.rb'
512
+
513
+ # Offense count: 111
514
+ # Cop supports --auto-correct.
515
+ # Configuration parameters: EnforcedStyle.
516
+ # SupportedStyles: call, braces
517
+ Style/LambdaCall:
518
+ Exclude:
519
+ - 'lib/trailblazer/macro/policy.rb'
520
+ - 'lib/trailblazer/macro/representer.rb'
521
+ - 'lib/trailblazer/macro/wrap.rb'
522
+ - 'test/docs/macro_test.rb'
523
+ - 'test/docs/model_test.rb'
524
+ - 'test/docs/nested_test.rb'
525
+ - 'test/docs/pundit_test.rb'
526
+ - 'test/docs/representer_test.rb'
527
+ - 'test/docs/rescue_test.rb'
528
+ - 'test/docs/wrap.rb'
529
+ - 'test/macro/model_test.rb'
530
+ - 'test/macro/nested_test.rb'
531
+ - 'test/macro/pundit_test.rb'
532
+
533
+ # Offense count: 1
534
+ Style/MultilineTernaryOperator:
535
+ Exclude:
536
+ - 'lib/trailblazer/macro/nested.rb'
537
+
538
+ # Offense count: 1
539
+ # Cop supports --auto-correct.
540
+ # Configuration parameters: EnforcedStyle.
541
+ # SupportedStyles: both, prefix, postfix
542
+ Style/NegatedIf:
543
+ Exclude:
544
+ - 'lib/trailblazer/macro/policy/pundit.rb'
545
+
546
+ # Offense count: 3
547
+ # Cop supports --auto-correct.
548
+ Style/ParallelAssignment:
549
+ Exclude:
550
+ - 'lib/trailblazer/macro/policy/pundit.rb'
551
+ - 'test/docs/pundit_test.rb'
552
+ - 'test/macro/pundit_test.rb'
553
+
554
+ # Offense count: 79
555
+ # Cop supports --auto-correct.
556
+ # Configuration parameters: PreferredDelimiters.
557
+ Style/PercentLiteralDelimiters:
558
+ Exclude:
559
+ - 'test/docs/macro_test.rb'
560
+ - 'test/docs/model_test.rb'
561
+ - 'test/docs/nested_test.rb'
562
+ - 'test/docs/pundit_test.rb'
563
+ - 'test/docs/representer_test.rb'
564
+ - 'test/docs/rescue_test.rb'
565
+ - 'test/docs/wrap.rb'
566
+ - 'test/macro/model_test.rb'
567
+ - 'test/macro/nested_test.rb'
568
+ - 'test/macro/pundit_test.rb'
569
+
570
+ # Offense count: 4
571
+ # Cop supports --auto-correct.
572
+ # Configuration parameters: AllowMultipleReturnValues.
573
+ Style/RedundantReturn:
574
+ Exclude:
575
+ - 'lib/trailblazer/macro/nested.rb'
576
+ - 'lib/trailblazer/macro/policy.rb'
577
+
578
+ # Offense count: 2
579
+ # Cop supports --auto-correct.
580
+ # Configuration parameters: EnforcedStyle.
581
+ # SupportedStyles: implicit, explicit
582
+ Style/RescueStandardError:
583
+ Exclude:
584
+ - 'test/docs/wrap.rb'
585
+
586
+ # Offense count: 1
587
+ # Cop supports --auto-correct.
588
+ # Configuration parameters: AllowAsExpressionSeparator.
589
+ Style/Semicolon:
590
+ Exclude:
591
+ - 'lib/trailblazer/macro/representer.rb'
592
+
593
+ # Offense count: 4
594
+ # Cop supports --auto-correct.
595
+ # Configuration parameters: EnforcedStyle.
596
+ # SupportedStyles: only_raise, only_fail, semantic
597
+ Style/SignalException:
598
+ Exclude:
599
+ - 'test/macro/nested_test.rb'
600
+
601
+ # Offense count: 17
602
+ # Cop supports --auto-correct.
603
+ # Configuration parameters: AllowIfMethodIsEmpty.
604
+ Style/SingleLineMethods:
605
+ Exclude:
606
+ - 'test/docs/wrap.rb'
607
+ - 'test/macro/model_test.rb'
608
+ - 'test/macro/nested_test.rb'
609
+ - 'test/macro/pundit_test.rb'
610
+ - 'test/test_helper.rb'
611
+
612
+ # Offense count: 6
613
+ # Cop supports --auto-correct.
614
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
615
+ # SupportedStyles: single_quotes, double_quotes
616
+ Style/StringLiterals:
617
+ Exclude:
618
+ - 'Gemfile'
619
+ - 'Rakefile'
620
+ - 'test/docs/representer_test.rb'
621
+ - 'trailblazer-macro.gemspec'
622
+
623
+ # Offense count: 1
624
+ # Cop supports --auto-correct.
625
+ # Configuration parameters: EnforcedStyleForMultiline.
626
+ # SupportedStylesForMultiline: comma, consistent_comma, no_comma
627
+ Style/TrailingCommaInLiteral:
628
+ Exclude:
629
+ - 'lib/trailblazer/macro/nested.rb'
630
+
631
+ # Offense count: 1
632
+ # Cop supports --auto-correct.
633
+ # Configuration parameters: AllowNamedUnderscoreVariables.
634
+ Style/TrailingUnderscoreVariable:
635
+ Exclude:
636
+ - 'test/docs/nested_test.rb'
637
+
638
+ # Offense count: 164
639
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
640
+ # URISchemes: http, https
641
+ Metrics/LineLength:
642
+ Max: 219