trailblazer 2.1.0.beta4 → 2.1.0.beta5
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 +4 -4
- data/.rubocop_todo.yml +194 -502
- data/CHANGES.md +4 -0
- data/CONTRIBUTING.md +170 -0
- data/Gemfile +4 -1
- data/README.md +183 -40
- data/Rakefile +6 -2
- data/lib/trailblazer/version.rb +1 -1
- data/lib/trailblazer.rb +3 -12
- data/test/{operation/dsl → dsl}/contract_test.rb +2 -2
- data/trailblazer.gemspec +3 -3
- metadata +17 -63
- data/lib/trailblazer/operation/contract.rb +0 -82
- data/lib/trailblazer/operation/guard.rb +0 -18
- data/lib/trailblazer/operation/model.rb +0 -65
- data/lib/trailblazer/operation/nested.rb +0 -91
- data/lib/trailblazer/operation/persist.rb +0 -14
- data/lib/trailblazer/operation/policy.rb +0 -44
- data/lib/trailblazer/operation/pundit.rb +0 -38
- data/lib/trailblazer/operation/representer.rb +0 -36
- data/lib/trailblazer/operation/rescue.rb +0 -24
- data/lib/trailblazer/operation/validate.rb +0 -74
- data/lib/trailblazer/operation/wrap.rb +0 -64
- data/test/docs/contract_test.rb +0 -545
- data/test/docs/dry_test.rb +0 -31
- data/test/docs/guard_test.rb +0 -162
- data/test/docs/macro_test.rb +0 -36
- data/test/docs/model_test.rb +0 -75
- data/test/docs/nested_test.rb +0 -300
- data/test/docs/policy_test.rb +0 -2
- data/test/docs/pundit_test.rb +0 -133
- data/test/docs/representer_test.rb +0 -268
- data/test/docs/rescue_test.rb +0 -154
- data/test/docs/wrap_test.rb +0 -219
- data/test/nested_test.rb +0 -293
- data/test/operation/contract_test.rb +0 -290
- data/test/operation/dsl/representer_test.rb +0 -169
- data/test/operation/model_test.rb +0 -54
- data/test/operation/persist_test.rb +0 -51
- data/test/operation/pundit_test.rb +0 -106
- data/test/operation/representer_test.rb +0 -254
data/.rubocop_todo.yml
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
3
|
+
# on 2018-03-08 02:07:43 +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:
|
9
|
+
# Offense count: 3
|
10
10
|
# Cop supports --auto-correct.
|
11
11
|
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
|
12
|
-
# Include: **/Gemfile, **/gems.rb
|
12
|
+
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
|
13
13
|
Bundler/OrderedGems:
|
14
14
|
Exclude:
|
15
15
|
- 'Gemfile'
|
16
16
|
|
17
|
-
# Offense count:
|
17
|
+
# Offense count: 2
|
18
18
|
# Cop supports --auto-correct.
|
19
19
|
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
|
20
20
|
# Include: **/*.gemspec
|
@@ -22,125 +22,76 @@ Gemspec/OrderedDependencies:
|
|
22
22
|
Exclude:
|
23
23
|
- 'trailblazer.gemspec'
|
24
24
|
|
25
|
-
# Offense count:
|
25
|
+
# Offense count: 1
|
26
|
+
# Configuration parameters: Include.
|
27
|
+
# Include: **/*.gemspec
|
28
|
+
Gemspec/RequiredRubyVersion:
|
29
|
+
Exclude:
|
30
|
+
- 'trailblazer.gemspec'
|
31
|
+
|
32
|
+
# Offense count: 1
|
26
33
|
# Cop supports --auto-correct.
|
27
|
-
# Configuration parameters: EnforcedStyle,
|
34
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
28
35
|
# SupportedStyles: outdent, indent
|
29
36
|
Layout/AccessModifierIndentation:
|
30
37
|
Exclude:
|
31
38
|
- '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
39
|
|
38
40
|
# Offense count: 1
|
39
41
|
# 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
42
|
Layout/BlockEndNewline:
|
62
43
|
Exclude:
|
63
44
|
- '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
45
|
|
69
|
-
# Offense count:
|
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
|
46
|
+
# Offense count: 20
|
79
47
|
# Cop supports --auto-correct.
|
80
48
|
Layout/CommentIndentation:
|
81
49
|
Exclude:
|
82
|
-
- '
|
50
|
+
- 'lib/trailblazer/operation/input_output.rb'
|
83
51
|
- 'test/docs/fast_test.rb'
|
84
|
-
- 'test/docs/guard_test.rb'
|
85
|
-
- 'test/docs/macro_test.rb'
|
86
|
-
- 'test/docs/nested_test.rb'
|
87
52
|
- 'test/docs/operation_test.rb'
|
88
|
-
- 'test/docs/
|
89
|
-
- 'test/
|
90
|
-
- 'test/docs/rescue_test.rb'
|
91
|
-
- 'test/docs/wrap_test.rb'
|
92
|
-
- 'test/operation/contract_test.rb'
|
93
|
-
- 'test/operation/pipetree_test.rb'
|
53
|
+
- 'test/docs/trace_test.rb'
|
54
|
+
- 'test/variables_test.rb'
|
94
55
|
|
95
|
-
# Offense count:
|
56
|
+
# Offense count: 5
|
57
|
+
# Cop supports --auto-correct.
|
58
|
+
# Configuration parameters: EnforcedStyle.
|
59
|
+
# SupportedStyles: leading, trailing
|
60
|
+
Layout/DotPosition:
|
61
|
+
Exclude:
|
62
|
+
- 'test/variables_test.rb'
|
63
|
+
|
64
|
+
# Offense count: 7
|
96
65
|
# Cop supports --auto-correct.
|
97
66
|
# Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines.
|
98
67
|
Layout/EmptyLineBetweenDefs:
|
99
68
|
Exclude:
|
100
|
-
- 'test/
|
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'
|
69
|
+
- 'test/docs/fast_test.rb'
|
106
70
|
- 'test/test_helper.rb'
|
107
71
|
|
108
|
-
# Offense count:
|
72
|
+
# Offense count: 10
|
109
73
|
# Cop supports --auto-correct.
|
110
74
|
Layout/EmptyLines:
|
111
|
-
|
75
|
+
Exclude:
|
76
|
+
- 'test/benchmark.rb'
|
77
|
+
- 'test/docs/fast_test.rb'
|
78
|
+
- 'test/docs/operation_test.rb'
|
79
|
+
- 'test/module_test.rb'
|
112
80
|
|
113
|
-
# Offense count:
|
81
|
+
# Offense count: 2
|
114
82
|
# Cop supports --auto-correct.
|
115
83
|
Layout/EmptyLinesAroundAccessModifier:
|
116
84
|
Exclude:
|
117
85
|
- 'lib/trailblazer/dsl.rb'
|
118
|
-
- 'lib/trailblazer/operation/model.rb'
|
119
|
-
- 'lib/trailblazer/operation/nested.rb'
|
120
|
-
- 'lib/trailblazer/operation/pundit.rb'
|
121
86
|
- 'lib/trailblazer/operation/test.rb'
|
122
|
-
- 'test/module_test.rb'
|
123
|
-
- 'test/operation/callback_test.rb'
|
124
87
|
|
125
|
-
# Offense count:
|
88
|
+
# Offense count: 1
|
126
89
|
# Cop supports --auto-correct.
|
127
|
-
# Configuration parameters: EnforcedStyle
|
90
|
+
# Configuration parameters: EnforcedStyle.
|
128
91
|
# SupportedStyles: empty_lines, no_empty_lines
|
129
92
|
Layout/EmptyLinesAroundBlockBody:
|
130
93
|
Exclude:
|
131
94
|
- '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
95
|
|
145
96
|
# Offense count: 1
|
146
97
|
# Cop supports --auto-correct.
|
@@ -148,350 +99,184 @@ Layout/EmptyLinesAroundMethodBody:
|
|
148
99
|
Exclude:
|
149
100
|
- 'lib/trailblazer/operation/test.rb'
|
150
101
|
|
151
|
-
# Offense count:
|
102
|
+
# Offense count: 15
|
152
103
|
# Cop supports --auto-correct.
|
153
104
|
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
|
154
105
|
Layout/ExtraSpacing:
|
155
106
|
Exclude:
|
156
|
-
- 'lib/trailblazer/
|
157
|
-
- 'test/
|
107
|
+
- 'lib/trailblazer/deprecation/context.rb'
|
108
|
+
- 'test/benchmark.rb'
|
158
109
|
- 'test/docs/fast_test.rb'
|
159
|
-
- 'test/docs/nested_test.rb'
|
160
110
|
- 'test/docs/operation_test.rb'
|
161
|
-
- 'test/
|
162
|
-
- 'test/operation/pipedream_test.rb'
|
111
|
+
- 'test/variables_test.rb'
|
163
112
|
|
164
113
|
# Offense count: 1
|
165
114
|
# Cop supports --auto-correct.
|
166
|
-
# Configuration parameters:
|
167
|
-
# SupportedStyles: special_inside_parentheses, consistent,
|
168
|
-
Layout/
|
169
|
-
EnforcedStyle: consistent
|
170
|
-
|
171
|
-
# Offense count: 3
|
172
|
-
# Cop supports --auto-correct.
|
173
|
-
# Configuration parameters: IndentationWidth.
|
174
|
-
Layout/IndentAssignment:
|
115
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
116
|
+
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
117
|
+
Layout/IndentHash:
|
175
118
|
Exclude:
|
176
|
-
- '
|
177
|
-
- 'test/docs/guard_test.rb'
|
178
|
-
- 'test/docs/pundit_test.rb'
|
119
|
+
- 'test/variables_test.rb'
|
179
120
|
|
180
|
-
# Offense count:
|
121
|
+
# Offense count: 10
|
181
122
|
# Cop supports --auto-correct.
|
182
|
-
# Configuration parameters: EnforcedStyle
|
123
|
+
# Configuration parameters: EnforcedStyle.
|
183
124
|
# SupportedStyles: normal, rails
|
184
125
|
Layout/IndentationConsistency:
|
185
126
|
Exclude:
|
186
|
-
- 'test/docs/nested_test.rb'
|
187
127
|
- '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
128
|
|
194
|
-
# Offense count:
|
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
|
129
|
+
# Offense count: 11
|
208
130
|
# Cop supports --auto-correct.
|
209
131
|
Layout/LeadingCommentSpace:
|
210
132
|
Exclude:
|
211
133
|
- 'Gemfile'
|
212
|
-
- '
|
213
|
-
- 'test/docs/contract_test.rb'
|
214
|
-
- 'test/docs/guard_test.rb'
|
215
|
-
- 'test/docs/nested_test.rb'
|
134
|
+
- 'test/docs/fast_test.rb'
|
216
135
|
- 'test/docs/operation_test.rb'
|
217
|
-
- 'test/
|
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'
|
136
|
+
- 'test/variables_test.rb'
|
229
137
|
|
230
|
-
# Offense count:
|
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
|
138
|
+
# Offense count: 8
|
250
139
|
# Cop supports --auto-correct.
|
251
140
|
Layout/SpaceAfterColon:
|
252
141
|
Exclude:
|
253
|
-
- '
|
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'
|
142
|
+
- 'test/docs/fast_test.rb'
|
265
143
|
|
266
|
-
# Offense count:
|
144
|
+
# Offense count: 42
|
267
145
|
# Cop supports --auto-correct.
|
268
146
|
Layout/SpaceAfterComma:
|
269
147
|
Exclude:
|
270
|
-
- 'lib/trailblazer/
|
271
|
-
|
272
|
-
# Offense count: 1
|
273
|
-
# Cop supports --auto-correct.
|
274
|
-
Layout/SpaceAfterNot:
|
275
|
-
Exclude:
|
276
|
-
- 'test/docs/nested_test.rb'
|
148
|
+
- 'lib/trailblazer/deprecation/context.rb'
|
149
|
+
- 'test/docs/fast_test.rb'
|
277
150
|
|
278
|
-
# Offense count:
|
151
|
+
# Offense count: 5
|
279
152
|
# Cop supports --auto-correct.
|
280
|
-
# Configuration parameters:
|
153
|
+
# Configuration parameters: .
|
281
154
|
# SupportedStyles: space, no_space
|
282
155
|
Layout/SpaceAroundEqualsInParameterDefault:
|
283
156
|
EnforcedStyle: no_space
|
284
157
|
|
285
|
-
# Offense count:
|
158
|
+
# Offense count: 10
|
286
159
|
# Cop supports --auto-correct.
|
287
160
|
# Configuration parameters: AllowForAlignment.
|
288
161
|
Layout/SpaceAroundOperators:
|
289
162
|
Exclude:
|
290
|
-
- 'test/
|
291
|
-
- 'test/
|
292
|
-
- 'test/
|
163
|
+
- 'test/benchmark.rb'
|
164
|
+
- 'test/deprecation/call_test.rb'
|
165
|
+
- 'test/deprecation/context_test.rb'
|
293
166
|
- 'test/docs/operation_test.rb'
|
294
|
-
- 'test/
|
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'
|
167
|
+
- 'test/variables_test.rb'
|
303
168
|
|
304
|
-
# Offense count:
|
169
|
+
# Offense count: 3
|
305
170
|
# Cop supports --auto-correct.
|
306
|
-
|
307
|
-
# SupportedStyles: space, no_space
|
308
|
-
# SupportedStylesForEmptyBraces: space, no_space
|
309
|
-
Layout/SpaceBeforeBlockBraces:
|
171
|
+
Layout/SpaceBeforeComma:
|
310
172
|
Exclude:
|
311
|
-
- '
|
312
|
-
- 'test/operation/pipedream_test.rb'
|
173
|
+
- 'test/variables_test.rb'
|
313
174
|
|
314
|
-
# Offense count:
|
175
|
+
# Offense count: 3
|
315
176
|
# Cop supports --auto-correct.
|
316
177
|
Layout/SpaceBeforeComment:
|
317
178
|
Exclude:
|
318
179
|
- 'Gemfile'
|
319
180
|
- 'lib/trailblazer/dsl.rb'
|
320
|
-
- 'test/operation/dsl/contract_test.rb'
|
321
181
|
|
322
182
|
# Offense count: 4
|
323
183
|
# Cop supports --auto-correct.
|
324
|
-
# Configuration parameters:
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
# Offense count: 29
|
330
|
-
# Cop supports --auto-correct.
|
331
|
-
Layout/SpaceInsideBrackets:
|
184
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
|
185
|
+
# SupportedStyles: space, no_space, compact
|
186
|
+
# SupportedStylesForEmptyBrackets: space, no_space
|
187
|
+
Layout/SpaceInsideArrayLiteralBrackets:
|
332
188
|
Exclude:
|
333
|
-
- 'lib/trailblazer/
|
334
|
-
- '
|
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'
|
189
|
+
- 'lib/trailblazer/deprecation/context.rb'
|
190
|
+
- 'test/benchmark.rb'
|
344
191
|
|
345
|
-
# Offense count:
|
192
|
+
# Offense count: 20
|
346
193
|
# Cop supports --auto-correct.
|
347
|
-
# Configuration parameters: EnforcedStyle,
|
194
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
348
195
|
# SupportedStyles: space, no_space, compact
|
349
196
|
# SupportedStylesForEmptyBraces: space, no_space
|
350
197
|
Layout/SpaceInsideHashLiteralBraces:
|
351
198
|
Exclude:
|
352
199
|
- 'lib/trailblazer/operation/auto_inject.rb'
|
353
|
-
- '
|
354
|
-
- 'test/docs/contract_test.rb'
|
200
|
+
- 'test/deprecation/context_test.rb'
|
355
201
|
- 'test/docs/fast_test.rb'
|
356
202
|
- '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
203
|
- 'test/test_helper.rb'
|
364
204
|
|
365
|
-
# Offense count:
|
205
|
+
# Offense count: 89
|
366
206
|
# Cop supports --auto-correct.
|
367
207
|
Layout/SpaceInsideParens:
|
368
|
-
|
208
|
+
Exclude:
|
209
|
+
- 'lib/trailblazer/deprecation/call.rb'
|
210
|
+
- 'lib/trailblazer/deprecation/context.rb'
|
211
|
+
- 'test/deprecation/call_test.rb'
|
212
|
+
- 'test/deprecation/context_test.rb'
|
213
|
+
- 'test/docs/fast_test.rb'
|
214
|
+
- 'test/docs/operation_test.rb'
|
215
|
+
- 'test/docs/trace_test.rb'
|
216
|
+
- 'test/variables_test.rb'
|
369
217
|
|
370
|
-
# Offense count:
|
218
|
+
# Offense count: 1
|
371
219
|
# Cop supports --auto-correct.
|
372
|
-
# Configuration parameters: EnforcedStyle
|
220
|
+
# Configuration parameters: EnforcedStyle.
|
373
221
|
# SupportedStyles: final_newline, final_blank_line
|
374
222
|
Layout/TrailingBlankLines:
|
375
223
|
Exclude:
|
376
224
|
- '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
225
|
|
387
|
-
# Offense count:
|
388
|
-
|
389
|
-
Lint/AssignmentInCondition:
|
226
|
+
# Offense count: 2
|
227
|
+
Lint/NestedMethodDefinition:
|
390
228
|
Exclude:
|
391
|
-
- '
|
229
|
+
- 'test/benchmark.rb'
|
392
230
|
|
393
231
|
# Offense count: 1
|
394
|
-
|
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:
|
232
|
+
Lint/ReturnInVoidContext:
|
411
233
|
Exclude:
|
412
|
-
- '
|
413
|
-
- 'test/docs/nested_test.rb'
|
414
|
-
- 'test/docs/representer_test.rb'
|
234
|
+
- 'lib/trailblazer/deprecation/context.rb'
|
415
235
|
|
416
236
|
# Offense count: 1
|
417
|
-
|
237
|
+
# Configuration parameters: IgnoreImplicitReferences.
|
238
|
+
Lint/ShadowedArgument:
|
418
239
|
Exclude:
|
419
|
-
- '
|
240
|
+
- 'lib/trailblazer/deprecation/call.rb'
|
420
241
|
|
421
242
|
# Offense count: 1
|
422
243
|
Lint/ShadowingOuterLocalVariable:
|
423
244
|
Exclude:
|
424
|
-
- 'lib/trailblazer/
|
245
|
+
- 'lib/trailblazer/deprecation/context.rb'
|
425
246
|
|
426
|
-
# Offense count:
|
247
|
+
# Offense count: 2
|
427
248
|
# Cop supports --auto-correct.
|
428
249
|
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
429
250
|
Lint/UnusedBlockArgument:
|
430
251
|
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
252
|
- 'test/test_helper.rb'
|
440
253
|
|
441
|
-
# Offense count:
|
254
|
+
# Offense count: 9
|
442
255
|
# Cop supports --auto-correct.
|
443
256
|
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
|
444
257
|
Lint/UnusedMethodArgument:
|
445
258
|
Exclude:
|
259
|
+
- 'lib/trailblazer/deprecation/call.rb'
|
446
260
|
- '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
261
|
- 'test/docs/fast_test.rb'
|
454
|
-
- 'test/docs/
|
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'
|
262
|
+
- 'test/docs/trace_test.rb'
|
461
263
|
|
462
264
|
# Offense count: 4
|
463
265
|
Lint/UselessAssignment:
|
464
266
|
Exclude:
|
465
|
-
- 'lib/trailblazer/operation/
|
466
|
-
- 'test/
|
467
|
-
- 'test/
|
468
|
-
- 'test/operation_test.rb'
|
267
|
+
- 'lib/trailblazer/operation/input_output.rb'
|
268
|
+
- 'test/deprecation/call_test.rb'
|
269
|
+
- 'test/deprecation/context_test.rb'
|
469
270
|
|
470
271
|
# Offense count: 1
|
471
|
-
Lint/Void:
|
472
|
-
Exclude:
|
473
|
-
- 'test/docs/representer_test.rb'
|
474
|
-
|
475
|
-
# Offense count: 3
|
476
272
|
Metrics/AbcSize:
|
477
273
|
Max: 18
|
478
274
|
|
479
|
-
# Offense count: 3
|
480
|
-
# Configuration parameters: CountComments, ExcludedMethods.
|
481
|
-
Metrics/BlockLength:
|
482
|
-
Max: 32
|
483
|
-
|
484
275
|
# Offense count: 1
|
485
276
|
Metrics/CyclomaticComplexity:
|
486
277
|
Max: 10
|
487
278
|
|
488
|
-
# Offense count:
|
489
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
490
|
-
# URISchemes: http, https
|
491
|
-
Metrics/LineLength:
|
492
|
-
Max: 222
|
493
|
-
|
494
|
-
# Offense count: 3
|
279
|
+
# Offense count: 4
|
495
280
|
# Configuration parameters: CountComments.
|
496
281
|
Metrics/MethodLength:
|
497
282
|
Max: 16
|
@@ -500,36 +285,42 @@ Metrics/MethodLength:
|
|
500
285
|
Metrics/PerceivedComplexity:
|
501
286
|
Max: 11
|
502
287
|
|
503
|
-
# Offense count:
|
504
|
-
|
288
|
+
# Offense count: 16
|
289
|
+
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
290
|
+
Naming/UncommunicativeBlockParamName:
|
505
291
|
Exclude:
|
506
|
-
- '
|
292
|
+
- 'test/variables_test.rb'
|
507
293
|
|
508
|
-
# Offense count:
|
509
|
-
# Configuration parameters:
|
510
|
-
#
|
511
|
-
Naming/
|
512
|
-
|
294
|
+
# Offense count: 42
|
295
|
+
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
296
|
+
# AllowedNames: io, id
|
297
|
+
Naming/UncommunicativeMethodParamName:
|
298
|
+
Exclude:
|
299
|
+
- 'test/benchmark.rb'
|
300
|
+
- 'test/deprecation/call_test.rb'
|
301
|
+
- 'test/deprecation/context_test.rb'
|
302
|
+
- 'test/docs/auto_inject_test.rb'
|
303
|
+
- 'test/docs/fast_test.rb'
|
304
|
+
- 'test/docs/operation_test.rb'
|
305
|
+
- 'test/docs/trace_test.rb'
|
306
|
+
- 'test/variables_test.rb'
|
513
307
|
|
514
|
-
# Offense count:
|
515
|
-
#
|
516
|
-
|
517
|
-
# SupportedStyles: prefer_alias, prefer_alias_method
|
518
|
-
Style/Alias:
|
308
|
+
# Offense count: 2
|
309
|
+
# Configuration parameters: AllowedChars.
|
310
|
+
Style/AsciiComments:
|
519
311
|
Exclude:
|
520
|
-
- 'test/
|
312
|
+
- 'test/benchmark.rb'
|
521
313
|
|
522
|
-
# Offense count:
|
314
|
+
# Offense count: 12
|
523
315
|
# Cop supports --auto-correct.
|
524
316
|
Style/BlockComments:
|
525
317
|
Exclude:
|
526
|
-
- 'test/docs/contract_test.rb'
|
527
|
-
- 'test/docs/macro_test.rb'
|
528
318
|
- 'test/docs/operation_test.rb'
|
319
|
+
- 'test/variables_test.rb'
|
529
320
|
|
530
|
-
# Offense count:
|
321
|
+
# Offense count: 2
|
531
322
|
# Cop supports --auto-correct.
|
532
|
-
# Configuration parameters: EnforcedStyle,
|
323
|
+
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods.
|
533
324
|
# SupportedStyles: line_count_based, semantic, braces_for_chaining
|
534
325
|
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
535
326
|
# FunctionalMethods: let, let!, subject, watch
|
@@ -538,40 +329,30 @@ Style/BlockDelimiters:
|
|
538
329
|
Exclude:
|
539
330
|
- 'lib/trailblazer/operation/auto_inject.rb'
|
540
331
|
- '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
332
|
|
545
|
-
# Offense count:
|
333
|
+
# Offense count: 1
|
546
334
|
# Cop supports --auto-correct.
|
547
|
-
# Configuration parameters: EnforcedStyle
|
335
|
+
# Configuration parameters: EnforcedStyle.
|
548
336
|
# SupportedStyles: braces, no_braces, context_dependent
|
549
337
|
Style/BracesAroundHashParameters:
|
550
338
|
Exclude:
|
551
|
-
- '
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
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.
|
339
|
+
- 'test/docs/operation_test.rb'
|
340
|
+
|
341
|
+
# Offense count: 12
|
342
|
+
# Cop supports --auto-correct.
|
343
|
+
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
568
344
|
# SupportedStyles: nested, compact
|
569
345
|
Style/ClassAndModuleChildren:
|
570
|
-
|
346
|
+
Exclude:
|
347
|
+
- 'lib/trailblazer/operation/auto_inject.rb'
|
348
|
+
- 'lib/trailblazer/operation/input_output.rb'
|
349
|
+
- 'lib/trailblazer/operation/module.rb'
|
350
|
+
- 'test/docs/fast_test.rb'
|
351
|
+
- 'test/docs/operation_test.rb'
|
571
352
|
|
572
353
|
# Offense count: 1
|
573
354
|
# Cop supports --auto-correct.
|
574
|
-
# Configuration parameters: EnforcedStyle
|
355
|
+
# Configuration parameters: EnforcedStyle.
|
575
356
|
# SupportedStyles: is_a?, kind_of?
|
576
357
|
Style/ClassCheck:
|
577
358
|
Exclude:
|
@@ -583,58 +364,30 @@ Style/ClassCheck:
|
|
583
364
|
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
|
584
365
|
Style/CommentAnnotation:
|
585
366
|
Exclude:
|
586
|
-
- 'test/
|
367
|
+
- 'test/variables_test.rb'
|
587
368
|
|
588
|
-
# Offense count:
|
369
|
+
# Offense count: 2
|
589
370
|
Style/CommentedKeyword:
|
590
371
|
Exclude:
|
591
|
-
- 'lib/trailblazer/operation/
|
592
|
-
- 'lib/trailblazer/operation/guard.rb'
|
593
|
-
- 'lib/trailblazer/operation/model.rb'
|
372
|
+
- 'lib/trailblazer/operation/deprecations.rb'
|
594
373
|
- '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
374
|
|
604
|
-
# Offense count:
|
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
|
375
|
+
# Offense count: 8
|
613
376
|
Style/Documentation:
|
614
|
-
Enabled: false
|
615
|
-
|
616
|
-
# Offense count: 2
|
617
|
-
Style/DoubleNegation:
|
618
377
|
Exclude:
|
619
|
-
- '
|
620
|
-
- 'test
|
378
|
+
- 'spec/**/*'
|
379
|
+
- 'test/**/*'
|
380
|
+
- 'lib/trailblazer/deprecation/context.rb'
|
381
|
+
- 'lib/trailblazer/operation/auto_inject.rb'
|
382
|
+
- 'lib/trailblazer/operation/deprecations.rb'
|
383
|
+
- 'lib/trailblazer/operation/module.rb'
|
384
|
+
- 'lib/trailblazer/operation/test.rb'
|
621
385
|
|
622
386
|
# Offense count: 1
|
623
387
|
# Cop supports --auto-correct.
|
624
|
-
|
625
|
-
# SupportedStyles: empty, nil, both
|
626
|
-
Style/EmptyElse:
|
388
|
+
Style/ExpandPathArguments:
|
627
389
|
Exclude:
|
628
|
-
- '
|
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'
|
390
|
+
- 'trailblazer.gemspec'
|
638
391
|
|
639
392
|
# Offense count: 1
|
640
393
|
# Configuration parameters: MinBodyLength.
|
@@ -642,173 +395,114 @@ Style/GuardClause:
|
|
642
395
|
Exclude:
|
643
396
|
- 'test/docs/fast_test.rb'
|
644
397
|
|
645
|
-
# Offense count:
|
398
|
+
# Offense count: 6
|
646
399
|
# Cop supports --auto-correct.
|
647
|
-
# Configuration parameters: EnforcedStyle,
|
400
|
+
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
648
401
|
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
649
402
|
Style/HashSyntax:
|
650
403
|
Exclude:
|
651
404
|
- 'Rakefile'
|
652
|
-
- 'test/docs/
|
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'
|
405
|
+
- 'test/docs/operation_test.rb'
|
669
406
|
|
670
|
-
# Offense count:
|
407
|
+
# Offense count: 61
|
671
408
|
# Cop supports --auto-correct.
|
672
|
-
# Configuration parameters:
|
409
|
+
# Configuration parameters: .
|
673
410
|
# SupportedStyles: call, braces
|
674
411
|
Style/LambdaCall:
|
675
|
-
|
412
|
+
EnforcedStyle: braces
|
676
413
|
|
677
414
|
# Offense count: 1
|
678
415
|
Style/MethodMissing:
|
679
416
|
Exclude:
|
680
417
|
- 'lib/trailblazer/operation/module.rb'
|
681
418
|
|
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
419
|
# Offense count: 1
|
691
420
|
# Cop supports --auto-correct.
|
692
421
|
Style/MutableConstant:
|
693
422
|
Exclude:
|
694
423
|
- 'lib/trailblazer/version.rb'
|
695
424
|
|
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
425
|
# Offense count: 2
|
705
426
|
Style/OptionalArguments:
|
706
427
|
Exclude:
|
707
428
|
- 'lib/trailblazer/dsl.rb'
|
708
429
|
|
709
|
-
# Offense count:
|
430
|
+
# Offense count: 1
|
710
431
|
# Cop supports --auto-correct.
|
711
432
|
Style/ParallelAssignment:
|
712
433
|
Exclude:
|
713
|
-
- 'lib/trailblazer/
|
714
|
-
- 'test/docs/pundit_test.rb'
|
715
|
-
- 'test/operation/pipedream_test.rb'
|
716
|
-
- 'test/operation/pundit_test.rb'
|
434
|
+
- 'lib/trailblazer/deprecation/call.rb'
|
717
435
|
|
718
|
-
# Offense count:
|
436
|
+
# Offense count: 40
|
719
437
|
# Cop supports --auto-correct.
|
720
438
|
# Configuration parameters: PreferredDelimiters.
|
721
439
|
Style/PercentLiteralDelimiters:
|
722
|
-
|
440
|
+
Exclude:
|
441
|
+
- 'test/deprecation/call_test.rb'
|
442
|
+
- 'test/deprecation/context_test.rb'
|
443
|
+
- 'test/docs/fast_test.rb'
|
444
|
+
- 'test/docs/operation_test.rb'
|
445
|
+
- 'test/docs/trace_test.rb'
|
446
|
+
- 'test/variables_test.rb'
|
447
|
+
- 'trailblazer.gemspec'
|
723
448
|
|
724
|
-
# Offense count:
|
449
|
+
# Offense count: 2
|
725
450
|
# Cop supports --auto-correct.
|
726
451
|
# Configuration parameters: AllowMultipleReturnValues.
|
727
452
|
Style/RedundantReturn:
|
728
453
|
Exclude:
|
454
|
+
- 'lib/trailblazer/deprecation/call.rb'
|
729
455
|
- 'test/docs/fast_test.rb'
|
730
456
|
|
731
|
-
# Offense count:
|
732
|
-
# Cop supports --auto-correct.
|
733
|
-
Style/SelfAssignment:
|
734
|
-
Exclude:
|
735
|
-
- 'Rakefile'
|
736
|
-
|
737
|
-
# Offense count: 3
|
457
|
+
# Offense count: 8
|
738
458
|
# Cop supports --auto-correct.
|
739
459
|
# Configuration parameters: AllowAsExpressionSeparator.
|
740
460
|
Style/Semicolon:
|
741
461
|
Exclude:
|
742
|
-
- '
|
743
|
-
- 'test/docs/nested_test.rb'
|
744
|
-
- 'test/operation/dsl/representer_test.rb'
|
462
|
+
- 'test/docs/fast_test.rb'
|
745
463
|
|
746
|
-
# Offense count:
|
464
|
+
# Offense count: 20
|
747
465
|
# Cop supports --auto-correct.
|
748
466
|
# Configuration parameters: AllowIfMethodIsEmpty.
|
749
467
|
Style/SingleLineMethods:
|
750
468
|
Exclude:
|
751
|
-
- 'lib/trailblazer/operation/nested.rb'
|
752
469
|
- 'test/docs/fast_test.rb'
|
753
|
-
- 'test/docs/guard_test.rb'
|
754
470
|
- '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
471
|
- 'test/test_helper.rb'
|
765
472
|
|
766
473
|
# Offense count: 1
|
767
474
|
# Cop supports --auto-correct.
|
768
|
-
# Configuration parameters: EnforcedStyle
|
475
|
+
# Configuration parameters: EnforcedStyle.
|
769
476
|
# SupportedStyles: use_perl_names, use_english_names
|
770
477
|
Style/SpecialGlobalVars:
|
771
478
|
Exclude:
|
772
479
|
- 'trailblazer.gemspec'
|
773
480
|
|
774
|
-
# Offense count:
|
481
|
+
# Offense count: 274
|
775
482
|
# Cop supports --auto-correct.
|
776
|
-
# Configuration parameters: EnforcedStyle,
|
483
|
+
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
777
484
|
# SupportedStyles: single_quotes, double_quotes
|
778
485
|
Style/StringLiterals:
|
779
486
|
Enabled: false
|
780
487
|
|
781
|
-
# Offense count:
|
488
|
+
# Offense count: 1
|
782
489
|
# Cop supports --auto-correct.
|
783
|
-
# Configuration parameters:
|
784
|
-
#
|
785
|
-
Style/
|
490
|
+
# Configuration parameters: EnforcedStyleForMultiline.
|
491
|
+
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
492
|
+
Style/TrailingCommaInHashLiteral:
|
786
493
|
Exclude:
|
787
|
-
- 'test/
|
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
|
494
|
+
- 'test/variables_test.rb'
|
797
495
|
|
798
|
-
|
799
|
-
# Cop supports --auto-correct.
|
800
|
-
# Configuration parameters: IgnoredMethods.
|
801
|
-
# IgnoredMethods: respond_to, define_method
|
802
|
-
Style/SymbolProc:
|
496
|
+
Style/TrailingCommaInLiteral:
|
803
497
|
Exclude:
|
804
|
-
- 'test/
|
498
|
+
- 'test/variables_test.rb'
|
805
499
|
|
806
|
-
# Offense count:
|
500
|
+
# Offense count: 2
|
807
501
|
# Cop supports --auto-correct.
|
808
502
|
# Configuration parameters: AllowNamedUnderscoreVariables.
|
809
503
|
Style/TrailingUnderscoreVariable:
|
810
504
|
Exclude:
|
811
|
-
- 'lib/trailblazer/
|
505
|
+
- 'lib/trailblazer/deprecation/context.rb'
|
812
506
|
|
813
507
|
# Offense count: 2
|
814
508
|
# Cop supports --auto-correct.
|
@@ -816,10 +510,8 @@ Style/UnneededPercentQ:
|
|
816
510
|
Exclude:
|
817
511
|
- 'trailblazer.gemspec'
|
818
512
|
|
819
|
-
# Offense count:
|
820
|
-
#
|
821
|
-
#
|
822
|
-
|
823
|
-
|
824
|
-
EnforcedStyle: percent
|
825
|
-
MinSize: 3
|
513
|
+
# Offense count: 119
|
514
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
515
|
+
# URISchemes: http, https
|
516
|
+
Metrics/LineLength:
|
517
|
+
Max: 235
|