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