trailblazer-macro 2.1.0.rc1 → 2.1.0.rc11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34384c9b9aeed3908c2025573be1f40b1a957827c318647d98a67abe0af78d26
4
- data.tar.gz: 123d226e6203ae4564f1a26d57519be66ff8759162185e9c2bb17c5966c873d9
3
+ metadata.gz: 76817280309d329480677e8a89156aafe95cdbbb64470f205faa3ff25c05103f
4
+ data.tar.gz: a1079855c106855344f0b3df999c64cacc454e8a7b8d98a498213381d0f52fe1
5
5
  SHA512:
6
- metadata.gz: 317f311fbe9cb18b4c80e6b4ede10e8d9495ac7e7994ad7a3aaf86e8150fd4e97db94e62f19d859c79f65f9c139020fa30aef9e0b3406fdfcddd150622516496
7
- data.tar.gz: bf949d64682eda92a6217d8c2fefed4c26f416eceda6d776d6145f443691c4600ffb0ecd98cc778805b9b68e6384aad916fb4eeedbc8c45fd37b36e8e4283ab5
6
+ metadata.gz: 1c2cc7bd08078e1a8cca9ac72ce7896cf8fa805a30ea5ffe5e0cb1e0758800b562c8b5c6ab873437e1bccd0d7d9a39419427efafa41d36c6305c3d8bbc98244e
7
+ data.tar.gz: 0d282ae0a83ac0641fce05e1253764f5a77a3f31b6d2e9c805445bd91e2f861d9f7242408363c89fdc79d6d6805836531a9157456518313654580cf5dae1e0a8
data/.gitignore CHANGED
@@ -16,3 +16,6 @@ test/version_tmp
16
16
  tmp
17
17
  /**/*.log
18
18
  .idea
19
+ /.rubocop-https---raw-githubusercontent-com-trailblazer-meta-master-rubocop-yml
20
+ /.rakeTasks
21
+ /.tool-versions
@@ -1,16 +1,6 @@
1
- inherit_from: .rubocop_todo.yml
2
-
3
- Style/StringLiterals:
4
- EnforcedStyle: double_quotes
1
+ inherit_from:
2
+ - https://raw.githubusercontent.com/trailblazer/meta/master/rubocop.yml
3
+ - .rubocop_todo.yml
5
4
 
6
5
  Naming/MethodName:
7
- Exclude:
8
- - 'test/docs/macro_test.rb'
9
- - 'lib/trailblazer/operation/model.rb'
10
- - 'lib/trailblazer/operation/wrap.rb'
11
- - 'lib/trailblazer/operation/pundit.rb'
12
- - 'lib/trailblazer/operation/rescue.rb'
13
- - 'lib/trailblazer/operation/nested.rb'
14
- - 'lib/trailblazer/operation/guard.rb'
15
- - 'lib/trailblazer/operation/wrap.rb'
16
- - 'lib/trailblazer/operation/policy.rb'
6
+ Enabled: false
@@ -1,19 +1,11 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2018-06-08 20:10:37 +0200 using RuboCop version 0.57.1.
3
+ # on 2019-04-11 20:01:18 +1000 using RuboCop version 0.58.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 1
10
- # Cop supports --auto-correct.
11
- # Configuration parameters: Include, TreatCommentsAsGroupSeparators.
12
- # Include: **/*.gemspec
13
- Gemspec/OrderedDependencies:
14
- Exclude:
15
- - 'trailblazer-macro.gemspec'
16
-
17
9
  # Offense count: 1
18
10
  # Configuration parameters: Include.
19
11
  # Include: **/*.gemspec
@@ -27,9 +19,9 @@ Gemspec/RequiredRubyVersion:
27
19
  # SupportedStyles: outdent, indent
28
20
  Layout/AccessModifierIndentation:
29
21
  Exclude:
30
- - 'lib/trailblazer/operation/pundit.rb'
22
+ - 'lib/trailblazer/macro/pundit.rb'
31
23
 
32
- # Offense count: 2
24
+ # Offense count: 1
33
25
  # Cop supports --auto-correct.
34
26
  # Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
35
27
  # SupportedHashRocketStyles: key, separator, table
@@ -37,9 +29,9 @@ Layout/AccessModifierIndentation:
37
29
  # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
38
30
  Layout/AlignHash:
39
31
  Exclude:
40
- - 'test/docs/pundit_test.rb'
32
+ - 'test/operation/integration_test.rb'
41
33
 
42
- # Offense count: 3
34
+ # Offense count: 2
43
35
  # Cop supports --auto-correct.
44
36
  # Configuration parameters: EnforcedStyle, IndentationWidth.
45
37
  # SupportedStyles: with_first_parameter, with_fixed_indentation
@@ -61,46 +53,49 @@ Layout/ClosingParenthesisIndentation:
61
53
  Exclude:
62
54
  - 'test/docs/pundit_test.rb'
63
55
 
64
- # Offense count: 9
56
+ # Offense count: 14
65
57
  # Cop supports --auto-correct.
66
58
  Layout/CommentIndentation:
67
59
  Exclude:
68
60
  - 'test/docs/guard_test.rb'
69
61
  - 'test/docs/macro_test.rb'
70
- - 'test/docs/pundit_test.rb'
71
-
72
- # Offense count: 2
73
- # Cop supports --auto-correct.
74
- # Configuration parameters: EnforcedStyle.
75
- # SupportedStyles: leading, trailing
76
- Layout/DotPosition:
77
- Exclude:
78
62
  - 'test/docs/nested_test.rb'
63
+ - 'test/docs/pundit_test.rb'
79
64
 
80
65
  # Offense count: 8
81
66
  # Cop supports --auto-correct.
82
67
  # Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines.
83
68
  Layout/EmptyLineBetweenDefs:
84
69
  Exclude:
70
+ - 'lib/trailblazer/macro/nested.rb'
85
71
  - 'test/operation/model_test.rb'
86
- - 'test/operation/nested_test.rb'
87
72
  - 'test/operation/pundit_test.rb'
88
73
  - 'test/test_helper.rb'
89
74
 
90
- # Offense count: 8
75
+ # Offense count: 7
91
76
  # Cop supports --auto-correct.
92
77
  Layout/EmptyLines:
93
78
  Exclude:
79
+ - 'lib/trailblazer/macro/nested.rb'
94
80
  - 'test/docs/model_test.rb'
81
+ - 'test/docs/nested_test.rb'
95
82
  - 'test/docs/pundit_test.rb'
96
- - 'test/operation/nested_test.rb'
97
83
  - 'test/operation/pundit_test.rb'
84
+ - 'test/test_helper.rb'
98
85
 
99
86
  # Offense count: 1
100
87
  # Cop supports --auto-correct.
101
88
  Layout/EmptyLinesAroundAccessModifier:
102
89
  Exclude:
103
- - 'lib/trailblazer/operation/pundit.rb'
90
+ - 'lib/trailblazer/macro/pundit.rb'
91
+
92
+ # Offense count: 1
93
+ # Cop supports --auto-correct.
94
+ # Configuration parameters: EnforcedStyle.
95
+ # SupportedStyles: empty_lines, no_empty_lines
96
+ Layout/EmptyLinesAroundBlockBody:
97
+ Exclude:
98
+ - 'test/operation/model_test.rb'
104
99
 
105
100
  # Offense count: 1
106
101
  # Cop supports --auto-correct.
@@ -110,14 +105,18 @@ Layout/EmptyLinesAroundClassBody:
110
105
  Exclude:
111
106
  - 'test/docs/rescue_test.rb'
112
107
 
113
- # Offense count: 6
108
+ # Offense count: 1
114
109
  # Cop supports --auto-correct.
115
110
  # Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
116
111
  Layout/ExtraSpacing:
117
112
  Exclude:
118
- - 'lib/trailblazer/operation/pundit.rb'
119
113
  - 'test/docs/pundit_test.rb'
120
- - 'test/operation/nested_test.rb'
114
+
115
+ # Offense count: 1
116
+ # Cop supports --auto-correct.
117
+ Layout/FirstMethodArgumentLineBreak:
118
+ Exclude:
119
+ - 'test/docs/pundit_test.rb'
121
120
 
122
121
  # Offense count: 2
123
122
  # Cop supports --auto-correct.
@@ -127,12 +126,13 @@ Layout/IndentAssignment:
127
126
  - 'test/docs/guard_test.rb'
128
127
  - 'test/docs/pundit_test.rb'
129
128
 
130
- # Offense count: 4
129
+ # Offense count: 5
131
130
  # Cop supports --auto-correct.
132
131
  # Configuration parameters: EnforcedStyle.
133
132
  # SupportedStyles: normal, rails
134
133
  Layout/IndentationConsistency:
135
134
  Exclude:
135
+ - 'lib/trailblazer/macro/nested.rb'
136
136
  - 'test/docs/pundit_test.rb'
137
137
 
138
138
  # Offense count: 3
@@ -143,80 +143,45 @@ Layout/IndentationWidth:
143
143
  - 'test/docs/guard_test.rb'
144
144
  - 'test/docs/pundit_test.rb'
145
145
 
146
- # Offense count: 26
146
+ # Offense count: 1
147
147
  # Cop supports --auto-correct.
148
148
  Layout/LeadingCommentSpace:
149
149
  Exclude:
150
- - 'lib/trailblazer/operation/wrap.rb'
151
- - 'test/docs/guard_test.rb'
152
- - 'test/docs/pundit_test.rb'
153
- - 'test/docs/rescue_test.rb'
154
- - 'test/docs/wrap_test.rb'
150
+ - 'test/docs/**/*'
151
+ - 'test/operation/model_test.rb'
155
152
 
156
153
  # Offense count: 1
157
154
  # Cop supports --auto-correct.
158
155
  # Configuration parameters: EnforcedStyle.
159
156
  # SupportedStyles: symmetrical, new_line, same_line
160
- Layout/MultilineHashBraceLayout:
161
- Exclude:
162
- - 'test/docs/nested_test.rb'
163
-
164
- # Offense count: 2
165
- # Cop supports --auto-correct.
166
- # Configuration parameters: EnforcedStyle.
167
- # SupportedStyles: symmetrical, new_line, same_line
168
157
  Layout/MultilineMethodCallBraceLayout:
169
158
  Exclude:
170
- - 'test/docs/guard_test.rb'
171
159
  - 'test/docs/pundit_test.rb'
172
160
 
173
- # Offense count: 9
174
- # Cop supports --auto-correct.
175
- Layout/SpaceAfterColon:
176
- Exclude:
177
- - 'lib/trailblazer/operation/policy.rb'
178
- - 'test/lib/methods.rb'
179
- - 'test/operation/nested_test.rb'
180
-
181
- # Offense count: 2
182
- # Cop supports --auto-correct.
183
- # Configuration parameters: EnforcedStyleInsidePipes.
184
- # SupportedStylesInsidePipes: space, no_space
185
- Layout/SpaceAroundBlockParameters:
186
- Exclude:
187
- - 'lib/trailblazer/operation/guard.rb'
188
-
189
161
  # Offense count: 2
190
162
  # Cop supports --auto-correct.
191
- # Configuration parameters: .
192
- # SupportedStyles: space, no_space
193
- Layout/SpaceAroundEqualsInParameterDefault:
194
- EnforcedStyle: no_space
195
-
196
- # Offense count: 5
197
- # Cop supports --auto-correct.
198
163
  # Configuration parameters: AllowForAlignment.
199
164
  Layout/SpaceAroundOperators:
200
165
  Exclude:
201
- - 'lib/trailblazer/operation/nested.rb'
202
166
  - 'test/docs/guard_test.rb'
203
167
  - 'test/docs/model_test.rb'
204
- - 'test/docs/nested_test.rb'
205
- - 'test/operation/nested_test.rb'
206
168
 
207
- # Offense count: 18
169
+ # Offense count: 1
170
+ # Cop supports --auto-correct.
171
+ Layout/SpaceBeforeComment:
172
+ Exclude:
173
+ - 'test/operation/model_test.rb'
174
+
175
+ # Offense count: 12
208
176
  # Cop supports --auto-correct.
209
177
  # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
210
178
  # SupportedStyles: space, no_space, compact
211
179
  # SupportedStylesForEmptyBrackets: space, no_space
212
180
  Layout/SpaceInsideArrayLiteralBrackets:
213
181
  Exclude:
214
- - 'lib/trailblazer/operation/policy.rb'
215
- - 'lib/trailblazer/operation/rescue.rb'
216
- - 'test/docs/macro_test.rb'
217
182
  - 'test/docs/wrap_test.rb'
218
183
 
219
- # Offense count: 28
184
+ # Offense count: 52
220
185
  # Cop supports --auto-correct.
221
186
  # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
222
187
  # SupportedStyles: space, no_space, compact
@@ -224,24 +189,26 @@ Layout/SpaceInsideArrayLiteralBrackets:
224
189
  Layout/SpaceInsideHashLiteralBraces:
225
190
  Exclude:
226
191
  - 'test/docs/model_test.rb'
192
+ - 'test/docs/rescue_test.rb'
193
+ - 'test/docs/wrap_test.rb'
227
194
  - 'test/operation/model_test.rb'
228
- - 'test/test_helper.rb'
195
+ - 'test/operation/pundit_test.rb'
229
196
 
230
- # Offense count: 178
197
+ # Offense count: 118
231
198
  # Cop supports --auto-correct.
232
199
  # Configuration parameters: EnforcedStyle.
233
200
  # SupportedStyles: space, no_space
234
201
  Layout/SpaceInsideParens:
235
- Enabled: false
236
-
237
- # Offense count: 2
238
- # Cop supports --auto-correct.
239
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
240
- # SupportedStyles: space, no_space
241
- # SupportedStylesForEmptyBrackets: space, no_space
242
- Layout/SpaceInsideReferenceBrackets:
243
202
  Exclude:
244
- - 'lib/trailblazer/operation/policy.rb'
203
+ - 'test/docs/guard_test.rb'
204
+ - 'test/docs/macro_test.rb'
205
+ - 'test/docs/model_test.rb'
206
+ - 'test/docs/nested_test.rb'
207
+ - 'test/docs/pundit_test.rb'
208
+ - 'test/docs/rescue_test.rb'
209
+ - 'test/docs/wrap_test.rb'
210
+ - 'test/operation/model_test.rb'
211
+ - 'test/operation/pundit_test.rb'
245
212
 
246
213
  # Offense count: 3
247
214
  Lint/AmbiguousBlockAssociation:
@@ -254,61 +221,55 @@ Lint/AmbiguousRegexpLiteral:
254
221
  - 'test/docs/rescue_test.rb'
255
222
  - 'test/docs/wrap_test.rb'
256
223
 
257
- # Offense count: 13
258
- Lint/UnreachableCode:
224
+ # Offense count: 1
225
+ # Cop supports --auto-correct.
226
+ Lint/UnneededCopDisableDirective:
259
227
  Exclude:
260
- - 'test/docs/rescue_test.rb'
261
- - 'test/docs/wrap_test.rb'
262
- - 'test/operation/nested_test.rb'
228
+ - 'lib/trailblazer-macro.rb'
263
229
 
264
- # Offense count: 15
230
+ # Offense count: 13
265
231
  # Cop supports --auto-correct.
266
232
  # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
267
233
  Lint/UnusedBlockArgument:
268
234
  Exclude:
269
- - 'lib/trailblazer/operation/rescue.rb'
270
- - 'lib/trailblazer/operation/wrap.rb'
235
+ - 'lib/trailblazer/macro/rescue.rb'
236
+ - 'lib/trailblazer/macro/wrap.rb'
271
237
  - 'test/docs/guard_test.rb'
272
238
  - 'test/docs/macro_test.rb'
273
- - 'test/operation/nested_test.rb'
274
239
  - 'test/test_helper.rb'
275
240
 
276
- # Offense count: 22
241
+ # Offense count: 17
277
242
  # Cop supports --auto-correct.
278
243
  # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
279
244
  Lint/UnusedMethodArgument:
280
245
  Exclude:
281
- - 'lib/trailblazer/operation/guard.rb'
282
- - 'lib/trailblazer/operation/model.rb'
283
- - 'lib/trailblazer/operation/nested.rb'
284
- - 'lib/trailblazer/operation/policy.rb'
246
+ - 'lib/trailblazer/macro/guard.rb'
247
+ - 'lib/trailblazer/macro/model.rb'
248
+ - 'lib/trailblazer/macro/nested.rb'
249
+ - 'lib/trailblazer/macro/policy.rb'
285
250
  - 'test/docs/guard_test.rb'
286
251
  - 'test/docs/wrap_test.rb'
287
- - 'test/lib/methods.rb'
288
- - 'test/operation/nested_test.rb'
252
+ - 'test/test_helper.rb'
289
253
 
290
- # Offense count: 5
254
+ # Offense count: 6
291
255
  Lint/UselessAssignment:
292
256
  Exclude:
293
- - 'lib/trailblazer/operation/nested.rb'
257
+ - 'lib/trailblazer/macro/nested.rb'
294
258
  - 'test/docs/model_test.rb'
259
+ - 'test/docs/nested_test.rb'
295
260
  - 'test/docs/wrap_test.rb'
296
261
 
297
- # Offense count: 3
298
- Metrics/AbcSize:
299
- Max: 25
262
+ # Offense count: 28
263
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
264
+ # URISchemes: http, https
265
+ Metrics/LineLength:
266
+ Max: 219
300
267
 
301
268
  # Offense count: 5
302
- # Configuration parameters: CountComments.
303
- Metrics/MethodLength:
304
- Max: 15
305
-
306
- # Offense count: 1
307
- # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
308
- # AllowedNames: io, id, to, by, on, in, at
309
- Naming/UncommunicativeMethodParamName:
310
- Exclude:
311
- - 'test/operation/nested_test.rb'
269
+ # Configuration parameters: .
270
+ # SupportedStyles: snake_case, camelCase
271
+ Naming/MethodName:
272
+ EnforcedStyle: snake_case
312
273
 
313
274
  # Offense count: 1
314
275
  # Cop supports --auto-correct.
@@ -321,13 +282,14 @@ Performance/StringReplacement:
321
282
  # SupportedStyles: inline, group
322
283
  Style/AccessModifierDeclarations:
323
284
  Exclude:
324
- - 'lib/trailblazer/operation/wrap.rb'
285
+ - 'lib/trailblazer/macro/wrap.rb'
325
286
 
326
- # Offense count: 12
287
+ # Offense count: 13
327
288
  # Cop supports --auto-correct.
328
289
  Style/BlockComments:
329
290
  Exclude:
330
291
  - 'test/docs/macro_test.rb'
292
+ - 'test/docs/nested_test.rb'
331
293
  - 'test/docs/rescue_test.rb'
332
294
  - 'test/docs/wrap_test.rb'
333
295
 
@@ -340,29 +302,13 @@ Style/BracesAroundHashParameters:
340
302
  - 'test/docs/rescue_test.rb'
341
303
  - 'test/docs/wrap_test.rb'
342
304
 
343
- # Offense count: 16
344
- # Cop supports --auto-correct.
345
- # Configuration parameters: AutoCorrect, EnforcedStyle.
346
- # SupportedStyles: nested, compact
347
- Style/ClassAndModuleChildren:
348
- Exclude:
349
- - 'lib/trailblazer/operation/guard.rb'
350
- - 'lib/trailblazer/operation/model.rb'
351
- - 'lib/trailblazer/operation/policy.rb'
352
- - 'lib/trailblazer/operation/pundit.rb'
353
- - 'lib/trailblazer/operation/rescue.rb'
354
- - 'lib/trailblazer/operation/wrap.rb'
355
- - 'test/docs/nested_test.rb'
356
- - 'test/docs/rescue_test.rb'
357
- - 'test/docs/wrap_test.rb'
358
-
359
305
  # Offense count: 1
360
306
  # Cop supports --auto-correct.
361
307
  # Configuration parameters: EnforcedStyle.
362
308
  # SupportedStyles: is_a?, kind_of?
363
309
  Style/ClassCheck:
364
310
  Exclude:
365
- - 'lib/trailblazer/operation/nested.rb'
311
+ - 'lib/trailblazer/macro/nested.rb'
366
312
 
367
313
  # Offense count: 1
368
314
  # Cop supports --auto-correct.
@@ -372,28 +318,15 @@ Style/CommentAnnotation:
372
318
  Exclude:
373
319
  - 'test/docs/pundit_test.rb'
374
320
 
375
- # Offense count: 2
321
+ # Offense count: 1
376
322
  Style/CommentedKeyword:
377
323
  Exclude:
378
- - 'lib/trailblazer/operation/wrap.rb'
379
-
380
- # Offense count: 13
381
- Style/Documentation:
382
- Exclude:
383
- - 'spec/**/*'
384
- - 'test/**/*'
385
- - 'lib/trailblazer/operation/guard.rb'
386
- - 'lib/trailblazer/operation/model.rb'
387
- - 'lib/trailblazer/operation/nested.rb'
388
- - 'lib/trailblazer/operation/policy.rb'
389
- - 'lib/trailblazer/operation/pundit.rb'
390
- - 'lib/trailblazer/operation/rescue.rb'
391
- - 'lib/trailblazer/operation/wrap.rb'
324
+ - 'lib/trailblazer/macro/wrap.rb'
392
325
 
393
326
  # Offense count: 1
394
327
  Style/DoubleNegation:
395
328
  Exclude:
396
- - 'lib/trailblazer/operation/guard.rb'
329
+ - 'lib/trailblazer/macro/guard.rb'
397
330
 
398
331
  # Offense count: 1
399
332
  # Cop supports --auto-correct.
@@ -401,51 +334,18 @@ Style/ExpandPathArguments:
401
334
  Exclude:
402
335
  - 'trailblazer-macro.gemspec'
403
336
 
404
- # Offense count: 8
405
- # Cop supports --auto-correct.
406
- # Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
407
- # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
408
- Style/HashSyntax:
409
- Exclude:
410
- - 'Rakefile'
411
- - 'lib/trailblazer/operation/nested.rb'
412
- - 'test/docs/guard_test.rb'
413
-
414
- # Offense count: 7
337
+ # Offense count: 1
415
338
  # Cop supports --auto-correct.
416
339
  # Configuration parameters: EnforcedStyle.
417
340
  # SupportedStyles: line_count_dependent, lambda, literal
418
341
  Style/Lambda:
419
342
  Exclude:
420
- - 'lib/trailblazer/operation/guard.rb'
421
- - 'lib/trailblazer/operation/rescue.rb'
422
- - 'lib/trailblazer/operation/wrap.rb'
423
- - 'test/docs/nested_test.rb'
424
-
425
- # Offense count: 112
426
- # Cop supports --auto-correct.
427
- # Configuration parameters: EnforcedStyle.
428
- # SupportedStyles: call, braces
429
- Style/LambdaCall:
430
- Exclude:
431
- - 'lib/trailblazer/operation/policy.rb'
432
- - 'lib/trailblazer/operation/rescue.rb'
433
- - 'lib/trailblazer/operation/wrap.rb'
434
- - 'test/docs/guard_test.rb'
435
- - 'test/docs/macro_test.rb'
436
- - 'test/docs/model_test.rb'
437
- - 'test/docs/nested_test.rb'
438
- - 'test/docs/pundit_test.rb'
439
- - 'test/docs/rescue_test.rb'
440
- - 'test/docs/wrap_test.rb'
441
- - 'test/operation/model_test.rb'
442
- - 'test/operation/nested_test.rb'
443
- - 'test/operation/pundit_test.rb'
343
+ - 'lib/trailblazer/macro/rescue.rb'
444
344
 
445
345
  # Offense count: 1
446
346
  Style/MultilineTernaryOperator:
447
347
  Exclude:
448
- - 'lib/trailblazer/operation/nested.rb'
348
+ - 'lib/trailblazer/macro/nested.rb'
449
349
 
450
350
  # Offense count: 1
451
351
  # Cop supports --auto-correct.
@@ -453,47 +353,23 @@ Style/MultilineTernaryOperator:
453
353
  # SupportedStyles: both, prefix, postfix
454
354
  Style/NegatedIf:
455
355
  Exclude:
456
- - 'lib/trailblazer/operation/pundit.rb'
356
+ - 'lib/trailblazer/macro/pundit.rb'
457
357
 
458
358
  # Offense count: 3
459
359
  # Cop supports --auto-correct.
460
360
  Style/ParallelAssignment:
461
361
  Exclude:
462
- - 'lib/trailblazer/operation/pundit.rb'
463
- - 'test/docs/pundit_test.rb'
464
- - 'test/operation/pundit_test.rb'
465
-
466
- # Offense count: 69
467
- # Cop supports --auto-correct.
468
- # Configuration parameters: PreferredDelimiters.
469
- Style/PercentLiteralDelimiters:
470
- Exclude:
471
- - 'test/docs/guard_test.rb'
472
- - 'test/docs/macro_test.rb'
473
- - 'test/docs/model_test.rb'
474
- - 'test/docs/nested_test.rb'
362
+ - 'lib/trailblazer/macro/pundit.rb'
475
363
  - 'test/docs/pundit_test.rb'
476
- - 'test/docs/rescue_test.rb'
477
- - 'test/docs/wrap_test.rb'
478
- - 'test/operation/model_test.rb'
479
- - 'test/operation/nested_test.rb'
480
364
  - 'test/operation/pundit_test.rb'
481
365
 
482
- # Offense count: 5
366
+ # Offense count: 6
483
367
  # Cop supports --auto-correct.
484
368
  Style/RedundantBegin:
485
369
  Exclude:
370
+ - 'lib/trailblazer/macro/rescue.rb'
486
371
  - 'test/docs/wrap_test.rb'
487
372
 
488
- # Offense count: 5
489
- # Cop supports --auto-correct.
490
- # Configuration parameters: AllowMultipleReturnValues.
491
- Style/RedundantReturn:
492
- Exclude:
493
- - 'lib/trailblazer/operation/nested.rb'
494
- - 'lib/trailblazer/operation/policy.rb'
495
- - 'lib/trailblazer/operation/wrap.rb'
496
-
497
373
  # Offense count: 5
498
374
  # Cop supports --auto-correct.
499
375
  # Configuration parameters: EnforcedStyle.
@@ -504,31 +380,29 @@ Style/RescueStandardError:
504
380
 
505
381
  # Offense count: 2
506
382
  # Cop supports --auto-correct.
507
- Style/SelfAssignment:
383
+ # Configuration parameters: EnforcedStyle.
384
+ # SupportedStyles: return, return_nil
385
+ Style/ReturnNil:
508
386
  Exclude:
509
- - 'lib/trailblazer/operation/nested.rb'
387
+ - 'test/docs/model_test.rb'
388
+ - 'test/operation/model_test.rb'
510
389
 
511
- # Offense count: 13
390
+ # Offense count: 3
391
+ Style/Send:
392
+ Exclude:
393
+ - 'lib/trailblazer/macro/model.rb'
394
+ - 'lib/trailblazer/macro/pundit.rb'
395
+
396
+ # Offense count: 3
512
397
  # Cop supports --auto-correct.
513
398
  # Configuration parameters: EnforcedStyle.
514
399
  # SupportedStyles: only_raise, only_fail, semantic
515
400
  Style/SignalException:
516
401
  Exclude:
517
402
  - 'test/docs/rescue_test.rb'
518
- - 'test/docs/wrap_test.rb'
519
- - 'test/operation/nested_test.rb'
520
-
521
- # Offense count: 15
522
- # Cop supports --auto-correct.
523
- # Configuration parameters: AllowIfMethodIsEmpty.
524
- Style/SingleLineMethods:
525
- Exclude:
526
- - 'test/operation/model_test.rb'
527
- - 'test/operation/nested_test.rb'
528
- - 'test/operation/pundit_test.rb'
529
403
  - 'test/test_helper.rb'
530
404
 
531
- # Offense count: 7
405
+ # Offense count: 5
532
406
  # Cop supports --auto-correct.
533
407
  # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
534
408
  # SupportedStyles: single_quotes, double_quotes
@@ -538,18 +412,12 @@ Style/StringLiterals:
538
412
  - 'Rakefile'
539
413
  - 'trailblazer-macro.gemspec'
540
414
 
541
- # Offense count: 5
415
+ # Offense count: 4
542
416
  # Cop supports --auto-correct.
543
417
  # Configuration parameters: EnforcedStyleForMultiline.
544
418
  # SupportedStylesForMultiline: comma, consistent_comma, no_comma
545
419
  Style/TrailingCommaInHashLiteral:
546
420
  Exclude:
547
- - 'lib/trailblazer/operation/nested.rb'
548
- - 'lib/trailblazer/operation/wrap.rb'
421
+ - 'lib/trailblazer/macro/nested.rb'
422
+ - 'lib/trailblazer/macro/wrap.rb'
549
423
  - 'test/docs/rescue_test.rb'
550
-
551
- # Offense count: 152
552
- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
553
- # URISchemes: http, https
554
- Metrics/LineLength:
555
- Max: 219