trailblazer-activity 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +16 -0
- data/.rubocop_todo.yml +902 -0
- data/CHANGES.md +4 -0
- data/Gemfile +2 -0
- data/Rakefile +3 -0
- data/lib/trailblazer/activity/version.rb +1 -1
- data/lib/trailblazer/wrap/call_task.rb +4 -4
- data/lib/trailblazer/wrap/runner.rb +1 -1
- data/lib/trailblazer/wrap/trace.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45961f74078de84b48e1d65403b6924e82fef026
|
4
|
+
data.tar.gz: 29aab14192b6de4e418ac9668b3aa306c785420f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e5ec16c9bbf0c3f7ce34bf2b80d544cc51dd750c21a5f4516413b5ce83121642fa8ad5cf47cd6790168f479a57adcc0252da9c0beafdc82ce0802e1ea213965
|
7
|
+
data.tar.gz: e38ad33a55650947db2df5aa87b785d78d6c1f92603afcfe26352dfb36f92454a017e5ea08148249afb1524b4fa5464ff1c4f48bc01f0947700619d358f767b6
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
inherit_from: .rubocop_todo.yml
|
2
|
+
|
3
|
+
# Trailblazer uses constant named methods for macros.
|
4
|
+
# Ignore the false positives in these files.
|
5
|
+
Naming/MethodName:
|
6
|
+
Exclude:
|
7
|
+
- 'test/activity_test.rb'
|
8
|
+
- 'test/test_helper.rb'
|
9
|
+
- 'lib/trailblazer/activity/magnetic/structures.rb'
|
10
|
+
- 'lib/trailblazer/activity/magnetic/builder/introspection.rb'
|
11
|
+
- 'lib/trailblazer/activity/magnetic/builder/path.rb'
|
12
|
+
- 'lib/trailblazer/activity/magnetic/builder/railway.rb'
|
13
|
+
- 'lib/trailblazer/activity/magnetic/builder/fast_track.rb'
|
14
|
+
- 'lib/trailblazer/activity/magnetic/builder.rb'
|
15
|
+
- 'lib/trailblazer/activity/introspection.rb'
|
16
|
+
- 'lib/trailblazer/activity/structures.rb'
|
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,902 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2017-12-21 11:46:28 +0100 using RuboCop version 0.52.0.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# Offense count: 1
|
10
|
+
# Cop supports --auto-correct.
|
11
|
+
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
|
12
|
+
# Include: **/Gemfile, **/gems.rb
|
13
|
+
Bundler/OrderedGems:
|
14
|
+
Exclude:
|
15
|
+
- 'Gemfile'
|
16
|
+
|
17
|
+
# Offense count: 1
|
18
|
+
# Cop supports --auto-correct.
|
19
|
+
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
|
20
|
+
# Include: **/*.gemspec
|
21
|
+
Gemspec/OrderedDependencies:
|
22
|
+
Exclude:
|
23
|
+
- 'trailblazer-activity.gemspec'
|
24
|
+
|
25
|
+
# Offense count: 1
|
26
|
+
# Configuration parameters: Include.
|
27
|
+
# Include: **/*.gemspec
|
28
|
+
Gemspec/RequiredRubyVersion:
|
29
|
+
Exclude:
|
30
|
+
- 'trailblazer-activity.gemspec'
|
31
|
+
|
32
|
+
# Offense count: 2
|
33
|
+
# Cop supports --auto-correct.
|
34
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
35
|
+
# SupportedStyles: outdent, indent
|
36
|
+
Layout/AccessModifierIndentation:
|
37
|
+
Exclude:
|
38
|
+
- 'lib/trailblazer/activity/heritage.rb'
|
39
|
+
- 'lib/trailblazer/circuit.rb'
|
40
|
+
|
41
|
+
# Offense count: 1
|
42
|
+
# Cop supports --auto-correct.
|
43
|
+
Layout/AlignArray:
|
44
|
+
Exclude:
|
45
|
+
- 'test/finalizer_test.rb'
|
46
|
+
|
47
|
+
# Offense count: 4
|
48
|
+
# Cop supports --auto-correct.
|
49
|
+
# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
50
|
+
# SupportedHashRocketStyles: key, separator, table
|
51
|
+
# SupportedColonStyles: key, separator, table
|
52
|
+
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
53
|
+
Layout/AlignHash:
|
54
|
+
Exclude:
|
55
|
+
- 'test/dsl/dsl_test.rb'
|
56
|
+
|
57
|
+
# Offense count: 7
|
58
|
+
# Cop supports --auto-correct.
|
59
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
60
|
+
# SupportedStyles: with_first_parameter, with_fixed_indentation
|
61
|
+
Layout/AlignParameters:
|
62
|
+
Exclude:
|
63
|
+
- 'lib/trailblazer/activity/magnetic/builder.rb'
|
64
|
+
- 'test/docs/activity_test.rb'
|
65
|
+
- 'test/dsl/dsl_test.rb'
|
66
|
+
- 'test/dsl/fast_track_test.rb'
|
67
|
+
- 'test/wrap/trace_test.rb'
|
68
|
+
|
69
|
+
# Offense count: 5
|
70
|
+
# Cop supports --auto-correct.
|
71
|
+
Layout/ClosingParenthesisIndentation:
|
72
|
+
Exclude:
|
73
|
+
- 'lib/trailblazer/activity/magnetic/builder.rb'
|
74
|
+
- 'test/docs/activity_test.rb'
|
75
|
+
- 'test/wrap/trace_test.rb'
|
76
|
+
- 'test/wrap/wrap_test.rb'
|
77
|
+
|
78
|
+
# Offense count: 22
|
79
|
+
# Cop supports --auto-correct.
|
80
|
+
Layout/CommentIndentation:
|
81
|
+
Exclude:
|
82
|
+
- 'lib/trailblazer/activity/introspection.rb'
|
83
|
+
- 'lib/trailblazer/activity/magnetic/builder.rb'
|
84
|
+
- 'lib/trailblazer/activity/magnetic/builder/path.rb'
|
85
|
+
- 'lib/trailblazer/activity/subprocess.rb'
|
86
|
+
- 'lib/trailblazer/activity/trace.rb'
|
87
|
+
- 'lib/trailblazer/activity/wrap.rb'
|
88
|
+
- 'test/dsl/adds_test.rb'
|
89
|
+
- 'test/dsl/dsl_test.rb'
|
90
|
+
- 'test/dsl/fast_track_test.rb'
|
91
|
+
- 'test/dsl/path_test.rb'
|
92
|
+
- 'test/wrap/trace_test.rb'
|
93
|
+
- 'test/wrap/wrap_test.rb'
|
94
|
+
|
95
|
+
# Offense count: 6
|
96
|
+
# Cop supports --auto-correct.
|
97
|
+
# Configuration parameters: EnforcedStyle.
|
98
|
+
# SupportedStyles: leading, trailing
|
99
|
+
Layout/DotPosition:
|
100
|
+
Exclude:
|
101
|
+
- 'lib/trailblazer/activity/introspection.rb'
|
102
|
+
- 'lib/trailblazer/activity/magnetic/dsl.rb'
|
103
|
+
- 'test/dsl/plus_poles_test.rb'
|
104
|
+
- 'test/subprocess_test.rb'
|
105
|
+
|
106
|
+
# Offense count: 4
|
107
|
+
# Cop supports --auto-correct.
|
108
|
+
# Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines.
|
109
|
+
Layout/EmptyLineBetweenDefs:
|
110
|
+
Exclude:
|
111
|
+
- 'lib/trailblazer/activity/introspection.rb'
|
112
|
+
- 'lib/trailblazer/activity/magnetic/builder/path.rb'
|
113
|
+
- 'lib/trailblazer/activity/present.rb'
|
114
|
+
|
115
|
+
# Offense count: 38
|
116
|
+
# Cop supports --auto-correct.
|
117
|
+
Layout/EmptyLines:
|
118
|
+
Exclude:
|
119
|
+
- 'lib/trailblazer/activity.rb'
|
120
|
+
- 'lib/trailblazer/activity/introspection.rb'
|
121
|
+
- 'lib/trailblazer/activity/magnetic/builder/path.rb'
|
122
|
+
- 'lib/trailblazer/activity/present.rb'
|
123
|
+
- 'lib/trailblazer/wrap/trace.rb'
|
124
|
+
- 'test/activity_test.rb'
|
125
|
+
- 'test/docs/activity_test.rb'
|
126
|
+
- 'test/dsl/adds_test.rb'
|
127
|
+
- 'test/dsl/dsl_test.rb'
|
128
|
+
- 'test/dsl/fast_track_test.rb'
|
129
|
+
- 'test/dsl/path_test.rb'
|
130
|
+
- 'test/dsl/plus_poles_test.rb'
|
131
|
+
- 'test/finalizer_test.rb'
|
132
|
+
- 'test/test_helper.rb'
|
133
|
+
- 'test/wrap/wrap_test.rb'
|
134
|
+
|
135
|
+
# Offense count: 3
|
136
|
+
# Cop supports --auto-correct.
|
137
|
+
Layout/EmptyLinesAroundAccessModifier:
|
138
|
+
Exclude:
|
139
|
+
- 'lib/trailblazer/activity/heritage.rb'
|
140
|
+
- 'lib/trailblazer/activity/trace.rb'
|
141
|
+
- 'lib/trailblazer/circuit.rb'
|
142
|
+
|
143
|
+
# Offense count: 5
|
144
|
+
# Cop supports --auto-correct.
|
145
|
+
Layout/EmptyLinesAroundArguments:
|
146
|
+
Exclude:
|
147
|
+
- 'test/dsl/railway_test.rb'
|
148
|
+
- 'test/finalizer_test.rb'
|
149
|
+
- 'test/wrap/wrap_test.rb'
|
150
|
+
|
151
|
+
# Offense count: 2
|
152
|
+
# Cop supports --auto-correct.
|
153
|
+
# Configuration parameters: EnforcedStyle.
|
154
|
+
# SupportedStyles: empty_lines, no_empty_lines
|
155
|
+
Layout/EmptyLinesAroundBlockBody:
|
156
|
+
Exclude:
|
157
|
+
- 'test/dsl/adds_test.rb'
|
158
|
+
- 'test/dsl/path_test.rb'
|
159
|
+
|
160
|
+
# Offense count: 6
|
161
|
+
# Cop supports --auto-correct.
|
162
|
+
# Configuration parameters: EnforcedStyle.
|
163
|
+
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
164
|
+
Layout/EmptyLinesAroundClassBody:
|
165
|
+
Exclude:
|
166
|
+
- 'lib/trailblazer/activity/magnetic.rb'
|
167
|
+
- 'lib/trailblazer/activity/magnetic/builder.rb'
|
168
|
+
- 'lib/trailblazer/activity/magnetic/builder/fast_track.rb'
|
169
|
+
- 'lib/trailblazer/activity/magnetic/builder/path.rb'
|
170
|
+
- 'lib/trailblazer/activity/magnetic/builder/railway.rb'
|
171
|
+
|
172
|
+
# Offense count: 1
|
173
|
+
# Cop supports --auto-correct.
|
174
|
+
Layout/EmptyLinesAroundMethodBody:
|
175
|
+
Exclude:
|
176
|
+
- 'lib/trailblazer/activity/magnetic/builder/path.rb'
|
177
|
+
|
178
|
+
# Offense count: 4
|
179
|
+
# Cop supports --auto-correct.
|
180
|
+
# Configuration parameters: EnforcedStyle.
|
181
|
+
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
182
|
+
Layout/EmptyLinesAroundModuleBody:
|
183
|
+
Exclude:
|
184
|
+
- 'lib/trailblazer/activity.rb'
|
185
|
+
- 'lib/trailblazer/activity/introspection.rb'
|
186
|
+
- 'lib/trailblazer/activity/magnetic/finalizer.rb'
|
187
|
+
|
188
|
+
# Offense count: 14
|
189
|
+
# Cop supports --auto-correct.
|
190
|
+
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
|
191
|
+
Layout/ExtraSpacing:
|
192
|
+
Exclude:
|
193
|
+
- 'lib/trailblazer/activity.rb'
|
194
|
+
- 'lib/trailblazer/activity/schema/dependencies.rb'
|
195
|
+
- 'lib/trailblazer/activity/subprocess.rb'
|
196
|
+
- 'lib/trailblazer/wrap/call_task.rb'
|
197
|
+
- 'lib/trailblazer/wrap/runner.rb'
|
198
|
+
- 'lib/trailblazer/wrap/trace.rb'
|
199
|
+
- 'test/circuit_test.rb'
|
200
|
+
- 'test/docs/activity_test.rb'
|
201
|
+
- 'test/finalizer_test.rb'
|
202
|
+
- 'test/subprocess_test.rb'
|
203
|
+
- 'test/wrap/wrap_test.rb'
|
204
|
+
|
205
|
+
# Offense count: 1
|
206
|
+
# Cop supports --auto-correct.
|
207
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
208
|
+
# SupportedStyles: consistent, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
|
209
|
+
Layout/FirstParameterIndentation:
|
210
|
+
Exclude:
|
211
|
+
- 'test/wrap/wrap_test.rb'
|
212
|
+
|
213
|
+
# Offense count: 16
|
214
|
+
# Cop supports --auto-correct.
|
215
|
+
# Configuration parameters: EnforcedStyle.
|
216
|
+
# SupportedStyles: normal, rails
|
217
|
+
Layout/IndentationConsistency:
|
218
|
+
Exclude:
|
219
|
+
- 'lib/trailblazer/activity/introspection.rb'
|
220
|
+
- 'test/dsl/adds_test.rb'
|
221
|
+
- 'test/dsl/path_test.rb'
|
222
|
+
- 'test/dsl/railway_test.rb'
|
223
|
+
- 'test/finalizer_test.rb'
|
224
|
+
- 'test/wrap/wrap_test.rb'
|
225
|
+
|
226
|
+
# Offense count: 4
|
227
|
+
# Cop supports --auto-correct.
|
228
|
+
# Configuration parameters: Width, IgnoredPatterns.
|
229
|
+
Layout/IndentationWidth:
|
230
|
+
Exclude:
|
231
|
+
- 'test/dsl/path_test.rb'
|
232
|
+
|
233
|
+
# Offense count: 1
|
234
|
+
# Cop supports --auto-correct.
|
235
|
+
Layout/InitialIndentation:
|
236
|
+
Exclude:
|
237
|
+
- 'lib/trailblazer/activity/structures.rb'
|
238
|
+
|
239
|
+
# Offense count: 20
|
240
|
+
# Cop supports --auto-correct.
|
241
|
+
Layout/LeadingCommentSpace:
|
242
|
+
Exclude:
|
243
|
+
- 'lib/trailblazer/activity.rb'
|
244
|
+
- 'lib/trailblazer/activity/introspection.rb'
|
245
|
+
- 'lib/trailblazer/activity/magnetic/builder.rb'
|
246
|
+
- 'lib/trailblazer/activity/schema/sequence.rb'
|
247
|
+
- 'test/dsl/adds_test.rb'
|
248
|
+
- 'test/dsl/dsl_test.rb'
|
249
|
+
- 'test/dsl/path_test.rb'
|
250
|
+
- 'test/wrap/wrap_test.rb'
|
251
|
+
|
252
|
+
# Offense count: 7
|
253
|
+
# Cop supports --auto-correct.
|
254
|
+
# Configuration parameters: EnforcedStyle.
|
255
|
+
# SupportedStyles: symmetrical, new_line, same_line
|
256
|
+
Layout/MultilineMethodCallBraceLayout:
|
257
|
+
Exclude:
|
258
|
+
- 'lib/trailblazer/activity/magnetic/builder.rb'
|
259
|
+
- 'test/docs/activity_test.rb'
|
260
|
+
- 'test/dsl/dsl_test.rb'
|
261
|
+
- 'test/dsl/path_test.rb'
|
262
|
+
- 'test/wrap/trace_test.rb'
|
263
|
+
|
264
|
+
# Offense count: 2
|
265
|
+
# Cop supports --auto-correct.
|
266
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
267
|
+
# SupportedStyles: aligned, indented, indented_relative_to_receiver
|
268
|
+
Layout/MultilineMethodCallIndentation:
|
269
|
+
Exclude:
|
270
|
+
- 'lib/trailblazer/activity/magnetic/dsl.rb'
|
271
|
+
|
272
|
+
# Offense count: 14
|
273
|
+
# Cop supports --auto-correct.
|
274
|
+
Layout/SpaceAfterColon:
|
275
|
+
Exclude:
|
276
|
+
- 'lib/trailblazer/activity/introspection.rb'
|
277
|
+
- 'lib/trailblazer/activity/magnetic/builder/path.rb'
|
278
|
+
- 'lib/trailblazer/activity/magnetic/builder/railway.rb'
|
279
|
+
- 'lib/trailblazer/activity/magnetic/dsl.rb'
|
280
|
+
- 'lib/trailblazer/activity/schema/sequence.rb'
|
281
|
+
- 'test/docs/activity_test.rb'
|
282
|
+
|
283
|
+
# Offense count: 2
|
284
|
+
# Cop supports --auto-correct.
|
285
|
+
Layout/SpaceAfterComma:
|
286
|
+
Exclude:
|
287
|
+
- 'lib/trailblazer/activity/magnetic/builder.rb'
|
288
|
+
- 'lib/trailblazer/activity/magnetic/dsl.rb'
|
289
|
+
|
290
|
+
# Offense count: 4
|
291
|
+
# Cop supports --auto-correct.
|
292
|
+
# Configuration parameters: EnforcedStyleInsidePipes.
|
293
|
+
# SupportedStylesInsidePipes: space, no_space
|
294
|
+
Layout/SpaceAroundBlockParameters:
|
295
|
+
Exclude:
|
296
|
+
- 'test/circuit_test.rb'
|
297
|
+
|
298
|
+
# Offense count: 29
|
299
|
+
# Cop supports --auto-correct.
|
300
|
+
# Configuration parameters: EnforcedStyle.
|
301
|
+
# SupportedStyles: space, no_space
|
302
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
303
|
+
Exclude:
|
304
|
+
- 'lib/trailblazer/activity.rb'
|
305
|
+
- 'lib/trailblazer/activity/introspection.rb'
|
306
|
+
- 'lib/trailblazer/activity/magnetic.rb'
|
307
|
+
- 'lib/trailblazer/activity/magnetic/builder.rb'
|
308
|
+
- 'lib/trailblazer/activity/magnetic/builder/fast_track.rb'
|
309
|
+
- 'lib/trailblazer/activity/magnetic/builder/path.rb'
|
310
|
+
- 'lib/trailblazer/activity/magnetic/builder/railway.rb'
|
311
|
+
- 'lib/trailblazer/activity/magnetic/dsl/plus_poles.rb'
|
312
|
+
- 'lib/trailblazer/activity/present.rb'
|
313
|
+
- 'lib/trailblazer/activity/structures.rb'
|
314
|
+
|
315
|
+
# Offense count: 102
|
316
|
+
# Cop supports --auto-correct.
|
317
|
+
# Configuration parameters: AllowForAlignment.
|
318
|
+
Layout/SpaceAroundOperators:
|
319
|
+
Exclude:
|
320
|
+
- 'lib/trailblazer/activity/magnetic/builder/fast_track.rb'
|
321
|
+
- 'lib/trailblazer/activity/magnetic/builder/path.rb'
|
322
|
+
- 'lib/trailblazer/activity/magnetic/dsl.rb'
|
323
|
+
- 'lib/trailblazer/activity/schema/dependencies.rb'
|
324
|
+
- 'lib/trailblazer/activity/schema/sequence.rb'
|
325
|
+
- 'lib/trailblazer/activity/subprocess.rb'
|
326
|
+
- 'lib/trailblazer/circuit.rb'
|
327
|
+
- 'lib/trailblazer/wrap/call_task.rb'
|
328
|
+
- 'test/circuit_test.rb'
|
329
|
+
- 'test/docs/activity_test.rb'
|
330
|
+
- 'test/dsl/adds_test.rb'
|
331
|
+
- 'test/dsl/fast_track_test.rb'
|
332
|
+
- 'test/finalizer_test.rb'
|
333
|
+
- 'test/subprocess_test.rb'
|
334
|
+
- 'test/wrap/wrap_test.rb'
|
335
|
+
|
336
|
+
# Offense count: 1
|
337
|
+
# Cop supports --auto-correct.
|
338
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
339
|
+
# SupportedStyles: space, no_space
|
340
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
341
|
+
Layout/SpaceBeforeBlockBraces:
|
342
|
+
Exclude:
|
343
|
+
- 'lib/trailblazer/activity/schema/dependencies.rb'
|
344
|
+
|
345
|
+
# Offense count: 1
|
346
|
+
# Cop supports --auto-correct.
|
347
|
+
Layout/SpaceBeforeComma:
|
348
|
+
Exclude:
|
349
|
+
- 'lib/trailblazer/activity/process.rb'
|
350
|
+
|
351
|
+
# Offense count: 10
|
352
|
+
# Cop supports --auto-correct.
|
353
|
+
Layout/SpaceBeforeComment:
|
354
|
+
Exclude:
|
355
|
+
- 'lib/trailblazer/activity.rb'
|
356
|
+
- 'test/dsl/dsl_test.rb'
|
357
|
+
- 'test/dsl/path_test.rb'
|
358
|
+
- 'test/wrap/wrap_test.rb'
|
359
|
+
|
360
|
+
# Offense count: 1
|
361
|
+
# Cop supports --auto-correct.
|
362
|
+
# Configuration parameters: AllowForAlignment.
|
363
|
+
Layout/SpaceBeforeFirstArg:
|
364
|
+
Exclude:
|
365
|
+
- 'test/docs/activity_test.rb'
|
366
|
+
|
367
|
+
# Offense count: 293
|
368
|
+
# Cop supports --auto-correct.
|
369
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
|
370
|
+
# SupportedStyles: space, no_space, compact
|
371
|
+
# SupportedStylesForEmptyBrackets: space, no_space
|
372
|
+
Layout/SpaceInsideArrayLiteralBrackets:
|
373
|
+
Enabled: false
|
374
|
+
|
375
|
+
# Offense count: 66
|
376
|
+
# Cop supports --auto-correct.
|
377
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
378
|
+
# SupportedStyles: space, no_space, compact
|
379
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
380
|
+
Layout/SpaceInsideHashLiteralBraces:
|
381
|
+
Exclude:
|
382
|
+
- 'test/activity_test.rb'
|
383
|
+
- 'test/circuit_test.rb'
|
384
|
+
- 'test/docs/activity_test.rb'
|
385
|
+
- 'test/dsl/adds_test.rb'
|
386
|
+
- 'test/dsl/path_test.rb'
|
387
|
+
- 'test/subprocess_test.rb'
|
388
|
+
- 'test/wrap/wrap_test.rb'
|
389
|
+
|
390
|
+
# Offense count: 355
|
391
|
+
# Cop supports --auto-correct.
|
392
|
+
Layout/SpaceInsideParens:
|
393
|
+
Enabled: false
|
394
|
+
|
395
|
+
# Offense count: 9
|
396
|
+
# Cop supports --auto-correct.
|
397
|
+
# Configuration parameters: EnforcedStyle.
|
398
|
+
# SupportedStyles: space, no_space
|
399
|
+
Layout/SpaceInsideReferenceBrackets:
|
400
|
+
Exclude:
|
401
|
+
- 'lib/trailblazer/activity.rb'
|
402
|
+
- 'lib/trailblazer/activity/magnetic/dsl/plus_poles.rb'
|
403
|
+
- 'lib/trailblazer/activity/magnetic/generate.rb'
|
404
|
+
|
405
|
+
# Offense count: 5
|
406
|
+
# Cop supports --auto-correct.
|
407
|
+
# Configuration parameters: EnforcedStyle.
|
408
|
+
# SupportedStyles: final_newline, final_blank_line
|
409
|
+
Layout/TrailingBlankLines:
|
410
|
+
Exclude:
|
411
|
+
- 'Gemfile'
|
412
|
+
- 'lib/trailblazer/activity/magnetic/builder.rb'
|
413
|
+
- 'test/activity_test.rb'
|
414
|
+
- 'test/dsl/adds_test.rb'
|
415
|
+
- 'test/dsl/dsl_test.rb'
|
416
|
+
|
417
|
+
# Offense count: 1
|
418
|
+
# Configuration parameters: AllowSafeAssignment.
|
419
|
+
Lint/AssignmentInCondition:
|
420
|
+
Exclude:
|
421
|
+
- 'lib/trailblazer/activity/magnetic/dsl/alterations.rb'
|
422
|
+
|
423
|
+
# Offense count: 4
|
424
|
+
# Cop supports --auto-correct.
|
425
|
+
# Configuration parameters: EnforcedStyleAlignWith.
|
426
|
+
# SupportedStylesAlignWith: either, start_of_block, start_of_line
|
427
|
+
Lint/BlockAlignment:
|
428
|
+
Exclude:
|
429
|
+
- 'test/dsl/adds_test.rb'
|
430
|
+
- 'test/dsl/path_test.rb'
|
431
|
+
|
432
|
+
# Offense count: 20
|
433
|
+
Lint/IneffectiveAccessModifier:
|
434
|
+
Exclude:
|
435
|
+
- 'lib/trailblazer/activity.rb'
|
436
|
+
- 'lib/trailblazer/activity/introspection.rb'
|
437
|
+
- 'lib/trailblazer/activity/magnetic/builder.rb'
|
438
|
+
- 'lib/trailblazer/activity/trace.rb'
|
439
|
+
- 'lib/trailblazer/wrap/runner.rb'
|
440
|
+
|
441
|
+
# Offense count: 3
|
442
|
+
Lint/ParenthesesAsGroupedExpression:
|
443
|
+
Exclude:
|
444
|
+
- 'test/wrap/wrap_test.rb'
|
445
|
+
|
446
|
+
# Offense count: 1
|
447
|
+
# Configuration parameters: IgnoreImplicitReferences.
|
448
|
+
Lint/ShadowedArgument:
|
449
|
+
Exclude:
|
450
|
+
- 'lib/trailblazer/activity/trace.rb'
|
451
|
+
|
452
|
+
# Offense count: 23
|
453
|
+
Lint/UnderscorePrefixedVariableName:
|
454
|
+
Exclude:
|
455
|
+
- 'lib/trailblazer/activity.rb'
|
456
|
+
- 'test/docs/activity_test.rb'
|
457
|
+
- 'test/dsl/dsl_test.rb'
|
458
|
+
- 'test/dsl/path_test.rb'
|
459
|
+
- 'test/subprocess_test.rb'
|
460
|
+
- 'test/wrap/wrap_test.rb'
|
461
|
+
|
462
|
+
# Offense count: 3
|
463
|
+
Lint/UnreachableCode:
|
464
|
+
Exclude:
|
465
|
+
- 'test/dsl/fast_track_test.rb'
|
466
|
+
- 'test/dsl/railway_test.rb'
|
467
|
+
|
468
|
+
# Offense count: 14
|
469
|
+
# Cop supports --auto-correct.
|
470
|
+
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
471
|
+
Lint/UnusedBlockArgument:
|
472
|
+
Exclude:
|
473
|
+
- 'lib/trailblazer/activity/magnetic/dsl/plus_poles.rb'
|
474
|
+
- 'lib/trailblazer/activity/schema/dependencies.rb'
|
475
|
+
- 'test/circuit_test.rb'
|
476
|
+
- 'test/docs/activity_test.rb'
|
477
|
+
- 'test/dsl/path_test.rb'
|
478
|
+
- 'test/introspection_test.rb'
|
479
|
+
|
480
|
+
# Offense count: 15
|
481
|
+
# Cop supports --auto-correct.
|
482
|
+
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
|
483
|
+
Lint/UnusedMethodArgument:
|
484
|
+
Exclude:
|
485
|
+
- 'lib/trailblazer/activity.rb'
|
486
|
+
- 'lib/trailblazer/activity/magnetic/builder.rb'
|
487
|
+
- 'lib/trailblazer/activity/magnetic/builder/path.rb'
|
488
|
+
- 'lib/trailblazer/activity/magnetic/builder/railway.rb'
|
489
|
+
- 'lib/trailblazer/activity/magnetic/dsl.rb'
|
490
|
+
- 'lib/trailblazer/activity/trace.rb'
|
491
|
+
- 'test/dsl/plus_poles_test.rb'
|
492
|
+
|
493
|
+
# Offense count: 5
|
494
|
+
# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
|
495
|
+
Lint/UselessAccessModifier:
|
496
|
+
Exclude:
|
497
|
+
- 'lib/trailblazer/activity.rb'
|
498
|
+
- 'lib/trailblazer/activity/introspection.rb'
|
499
|
+
- 'lib/trailblazer/activity/trace.rb'
|
500
|
+
- 'lib/trailblazer/wrap/runner.rb'
|
501
|
+
|
502
|
+
# Offense count: 53
|
503
|
+
Lint/UselessAssignment:
|
504
|
+
Exclude:
|
505
|
+
- 'lib/trailblazer/activity/introspection.rb'
|
506
|
+
- 'lib/trailblazer/activity/magnetic/builder.rb'
|
507
|
+
- 'lib/trailblazer/activity/magnetic/builder/block.rb'
|
508
|
+
- 'lib/trailblazer/wrap/runner.rb'
|
509
|
+
- 'lib/trailblazer/wrap/trace.rb'
|
510
|
+
- 'test/activity_test.rb'
|
511
|
+
- 'test/circuit_test.rb'
|
512
|
+
- 'test/docs/activity_test.rb'
|
513
|
+
- 'test/dsl/dsl_test.rb'
|
514
|
+
- 'test/dsl/fast_track_test.rb'
|
515
|
+
- 'test/dsl/merge_test.rb'
|
516
|
+
- 'test/dsl/path_test.rb'
|
517
|
+
- 'test/wrap/wrap_test.rb'
|
518
|
+
|
519
|
+
# Offense count: 9
|
520
|
+
Lint/Void:
|
521
|
+
Exclude:
|
522
|
+
- 'lib/trailblazer/activity/present.rb'
|
523
|
+
- 'test/docs/activity_test.rb'
|
524
|
+
|
525
|
+
# Offense count: 3
|
526
|
+
Metrics/AbcSize:
|
527
|
+
Max: 20
|
528
|
+
|
529
|
+
# Offense count: 22
|
530
|
+
# Configuration parameters: CountComments, ExcludedMethods.
|
531
|
+
Metrics/BlockLength:
|
532
|
+
Max: 113
|
533
|
+
|
534
|
+
# Offense count: 9
|
535
|
+
# Configuration parameters: CountComments.
|
536
|
+
Metrics/ClassLength:
|
537
|
+
Max: 394
|
538
|
+
|
539
|
+
# Offense count: 9
|
540
|
+
# Configuration parameters: CountComments.
|
541
|
+
Metrics/MethodLength:
|
542
|
+
Max: 24
|
543
|
+
|
544
|
+
# Offense count: 3
|
545
|
+
# Configuration parameters: CountKeywordArgs.
|
546
|
+
Metrics/ParameterLists:
|
547
|
+
Max: 8
|
548
|
+
|
549
|
+
# Offense count: 1
|
550
|
+
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
|
551
|
+
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
|
552
|
+
Naming/FileName:
|
553
|
+
Exclude:
|
554
|
+
- 'lib/trailblazer-activity.rb'
|
555
|
+
|
556
|
+
# Offense count: 7
|
557
|
+
# Configuration parameters: .
|
558
|
+
# SupportedStyles: snake_case, camelCase
|
559
|
+
Naming/MethodName:
|
560
|
+
EnforcedStyle: snake_case
|
561
|
+
Exclude:
|
562
|
+
|
563
|
+
# Offense count: 4
|
564
|
+
# Cop supports --auto-correct.
|
565
|
+
# Configuration parameters: EnabledForFlattenWithoutParams.
|
566
|
+
Performance/FlatMap:
|
567
|
+
Exclude:
|
568
|
+
- 'lib/trailblazer/activity/introspection.rb'
|
569
|
+
- 'lib/trailblazer/activity/magnetic/finalizer.rb'
|
570
|
+
- 'lib/trailblazer/activity/schema/dependencies.rb'
|
571
|
+
- 'lib/trailblazer/activity/trace.rb'
|
572
|
+
|
573
|
+
# Offense count: 6
|
574
|
+
# Cop supports --auto-correct.
|
575
|
+
# Configuration parameters: EnforcedStyle.
|
576
|
+
# SupportedStyles: always, conditionals
|
577
|
+
Style/AndOr:
|
578
|
+
Exclude:
|
579
|
+
- 'lib/trailblazer/activity/magnetic/dsl.rb'
|
580
|
+
- 'lib/trailblazer/activity/magnetic/generate.rb'
|
581
|
+
- 'lib/trailblazer/activity/schema/dependencies.rb'
|
582
|
+
- 'lib/trailblazer/activity/schema/sequence.rb'
|
583
|
+
- 'lib/trailblazer/circuit.rb'
|
584
|
+
|
585
|
+
# Offense count: 4
|
586
|
+
# Cop supports --auto-correct.
|
587
|
+
Style/BlockComments:
|
588
|
+
Exclude:
|
589
|
+
- 'test/docs/activity_test.rb'
|
590
|
+
- 'test/finalizer_test.rb'
|
591
|
+
|
592
|
+
# Offense count: 5
|
593
|
+
# Cop supports --auto-correct.
|
594
|
+
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods.
|
595
|
+
# SupportedStyles: line_count_based, semantic, braces_for_chaining
|
596
|
+
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
597
|
+
# FunctionalMethods: let, let!, subject, watch
|
598
|
+
# IgnoredMethods: lambda, proc, it
|
599
|
+
Style/BlockDelimiters:
|
600
|
+
Exclude:
|
601
|
+
- 'lib/trailblazer/activity/magnetic/dsl.rb'
|
602
|
+
- 'test/docs/activity_test.rb'
|
603
|
+
|
604
|
+
# Offense count: 21
|
605
|
+
# Cop supports --auto-correct.
|
606
|
+
# Configuration parameters: EnforcedStyle.
|
607
|
+
# SupportedStyles: braces, no_braces, context_dependent
|
608
|
+
Style/BracesAroundHashParameters:
|
609
|
+
Exclude:
|
610
|
+
- 'lib/trailblazer/activity/magnetic/builder/path.rb'
|
611
|
+
- 'test/docs/activity_test.rb'
|
612
|
+
- 'test/dsl/adds_test.rb'
|
613
|
+
- 'test/dsl/path_test.rb'
|
614
|
+
- 'test/finalizer_test.rb'
|
615
|
+
- 'test/subprocess_test.rb'
|
616
|
+
- 'test/wrap/wrap_test.rb'
|
617
|
+
|
618
|
+
# Offense count: 20
|
619
|
+
# Configuration parameters: EnforcedStyle.
|
620
|
+
# SupportedStyles: nested, compact
|
621
|
+
Style/ClassAndModuleChildren:
|
622
|
+
Enabled: false
|
623
|
+
|
624
|
+
# Offense count: 4
|
625
|
+
# Cop supports --auto-correct.
|
626
|
+
# Configuration parameters: EnforcedStyle.
|
627
|
+
# SupportedStyles: is_a?, kind_of?
|
628
|
+
Style/ClassCheck:
|
629
|
+
Exclude:
|
630
|
+
- 'lib/trailblazer/activity/introspection.rb'
|
631
|
+
- 'lib/trailblazer/activity/magnetic/dsl.rb'
|
632
|
+
- 'lib/trailblazer/activity/magnetic/finalizer.rb'
|
633
|
+
|
634
|
+
# Offense count: 1
|
635
|
+
# Cop supports --auto-correct.
|
636
|
+
Style/ColonMethodCall:
|
637
|
+
Exclude:
|
638
|
+
- 'test/dsl/plus_poles_test.rb'
|
639
|
+
|
640
|
+
# Offense count: 1
|
641
|
+
# Cop supports --auto-correct.
|
642
|
+
# Configuration parameters: Keywords.
|
643
|
+
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
|
644
|
+
Style/CommentAnnotation:
|
645
|
+
Exclude:
|
646
|
+
- 'test/circuit_test.rb'
|
647
|
+
|
648
|
+
# Offense count: 30
|
649
|
+
Style/CommentedKeyword:
|
650
|
+
Enabled: false
|
651
|
+
|
652
|
+
# Offense count: 31
|
653
|
+
Style/Documentation:
|
654
|
+
Enabled: false
|
655
|
+
|
656
|
+
# Offense count: 1
|
657
|
+
# Cop supports --auto-correct.
|
658
|
+
Style/EachWithObject:
|
659
|
+
Exclude:
|
660
|
+
- 'lib/trailblazer/activity/magnetic/dsl.rb'
|
661
|
+
|
662
|
+
# Offense count: 30
|
663
|
+
# Cop supports --auto-correct.
|
664
|
+
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
665
|
+
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
666
|
+
Style/HashSyntax:
|
667
|
+
Exclude:
|
668
|
+
- 'Rakefile'
|
669
|
+
- 'lib/trailblazer/activity/magnetic/builder/fast_track.rb'
|
670
|
+
- 'lib/trailblazer/activity/magnetic/builder/path.rb'
|
671
|
+
- 'lib/trailblazer/activity/magnetic/builder/railway.rb'
|
672
|
+
- 'test/docs/activity_test.rb'
|
673
|
+
- 'test/dsl/plus_poles_test.rb'
|
674
|
+
|
675
|
+
# Offense count: 2
|
676
|
+
Style/IdenticalConditionalBranches:
|
677
|
+
Exclude:
|
678
|
+
- 'lib/trailblazer/activity/present.rb'
|
679
|
+
|
680
|
+
# Offense count: 6
|
681
|
+
# Cop supports --auto-correct.
|
682
|
+
# Configuration parameters: EnforcedStyle.
|
683
|
+
# SupportedStyles: line_count_dependent, lambda, literal
|
684
|
+
Style/Lambda:
|
685
|
+
Exclude:
|
686
|
+
- 'test/circuit_test.rb'
|
687
|
+
- 'test/docs/activity_test.rb'
|
688
|
+
- 'test/wrap/wrap_test.rb'
|
689
|
+
|
690
|
+
# Offense count: 77
|
691
|
+
# Cop supports --auto-correct.
|
692
|
+
# Configuration parameters: .
|
693
|
+
# SupportedStyles: call, braces
|
694
|
+
Style/LambdaCall:
|
695
|
+
EnforcedStyle: braces
|
696
|
+
|
697
|
+
# Offense count: 1
|
698
|
+
Style/MultilineBlockChain:
|
699
|
+
Exclude:
|
700
|
+
- 'lib/trailblazer/activity/magnetic/dsl.rb'
|
701
|
+
|
702
|
+
# Offense count: 1
|
703
|
+
# Cop supports --auto-correct.
|
704
|
+
Style/MultilineIfModifier:
|
705
|
+
Exclude:
|
706
|
+
- 'lib/trailblazer/activity/magnetic/builder/fast_track.rb'
|
707
|
+
|
708
|
+
# Offense count: 1
|
709
|
+
Style/MultilineTernaryOperator:
|
710
|
+
Exclude:
|
711
|
+
- 'lib/trailblazer/activity/magnetic/finalizer.rb'
|
712
|
+
|
713
|
+
# Offense count: 1
|
714
|
+
# Cop supports --auto-correct.
|
715
|
+
Style/MutableConstant:
|
716
|
+
Exclude:
|
717
|
+
- 'lib/trailblazer/activity/version.rb'
|
718
|
+
|
719
|
+
# Offense count: 5
|
720
|
+
# Cop supports --auto-correct.
|
721
|
+
Style/ParallelAssignment:
|
722
|
+
Exclude:
|
723
|
+
- 'lib/trailblazer/activity/magnetic/builder.rb'
|
724
|
+
- 'lib/trailblazer/activity/magnetic/builder/railway.rb'
|
725
|
+
- 'lib/trailblazer/activity/magnetic/dsl.rb'
|
726
|
+
- 'test/activity_test.rb'
|
727
|
+
|
728
|
+
# Offense count: 65
|
729
|
+
# Cop supports --auto-correct.
|
730
|
+
# Configuration parameters: PreferredDelimiters.
|
731
|
+
Style/PercentLiteralDelimiters:
|
732
|
+
Exclude:
|
733
|
+
- 'lib/trailblazer/activity/introspection.rb'
|
734
|
+
- 'test/activity_test.rb'
|
735
|
+
- 'test/circuit_test.rb'
|
736
|
+
- 'test/dsl/adds_test.rb'
|
737
|
+
- 'test/dsl/dsl_test.rb'
|
738
|
+
- 'test/dsl/fast_track_test.rb'
|
739
|
+
- 'test/dsl/merge_test.rb'
|
740
|
+
- 'test/dsl/path_test.rb'
|
741
|
+
- 'test/dsl/plus_poles_test.rb'
|
742
|
+
- 'test/dsl/railway_test.rb'
|
743
|
+
- 'test/finalizer_test.rb'
|
744
|
+
- 'test/wrap/trace_test.rb'
|
745
|
+
- 'test/wrap/wrap_test.rb'
|
746
|
+
- 'trailblazer-activity.gemspec'
|
747
|
+
|
748
|
+
# Offense count: 3
|
749
|
+
# Cop supports --auto-correct.
|
750
|
+
# Configuration parameters: EnforcedStyle.
|
751
|
+
# SupportedStyles: compact, exploded
|
752
|
+
Style/RaiseArgs:
|
753
|
+
Exclude:
|
754
|
+
- 'lib/trailblazer/activity/schema/sequence.rb'
|
755
|
+
- 'lib/trailblazer/circuit.rb'
|
756
|
+
|
757
|
+
# Offense count: 16
|
758
|
+
# Cop supports --auto-correct.
|
759
|
+
# Configuration parameters: AllowMultipleReturnValues.
|
760
|
+
Style/RedundantReturn:
|
761
|
+
Exclude:
|
762
|
+
- 'lib/trailblazer/activity.rb'
|
763
|
+
- 'lib/trailblazer/activity/introspection.rb'
|
764
|
+
- 'lib/trailblazer/activity/magnetic/builder.rb'
|
765
|
+
- 'lib/trailblazer/activity/magnetic/dsl.rb'
|
766
|
+
- 'lib/trailblazer/activity/magnetic/finalizer.rb'
|
767
|
+
- 'lib/trailblazer/activity/structures.rb'
|
768
|
+
- 'lib/trailblazer/activity/trace.rb'
|
769
|
+
- 'test/dsl/path_test.rb'
|
770
|
+
- 'test/subprocess_test.rb'
|
771
|
+
|
772
|
+
# Offense count: 20
|
773
|
+
# Cop supports --auto-correct.
|
774
|
+
# Configuration parameters: AllowAsExpressionSeparator.
|
775
|
+
Style/Semicolon:
|
776
|
+
Exclude:
|
777
|
+
- 'lib/trailblazer/activity/magnetic/dsl.rb'
|
778
|
+
- 'test/circuit_test.rb'
|
779
|
+
- 'test/docs/activity_test.rb'
|
780
|
+
- 'test/subprocess_test.rb'
|
781
|
+
- 'test/wrap/wrap_test.rb'
|
782
|
+
|
783
|
+
# Offense count: 5
|
784
|
+
# Cop supports --auto-correct.
|
785
|
+
# Configuration parameters: EnforcedStyle.
|
786
|
+
# SupportedStyles: only_raise, only_fail, semantic
|
787
|
+
Style/SignalException:
|
788
|
+
Exclude:
|
789
|
+
- 'test/dsl/fast_track_test.rb'
|
790
|
+
- 'test/dsl/railway_test.rb'
|
791
|
+
|
792
|
+
# Offense count: 469
|
793
|
+
# Cop supports --auto-correct.
|
794
|
+
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
795
|
+
# SupportedStyles: single_quotes, double_quotes
|
796
|
+
Style/StringLiterals:
|
797
|
+
Enabled: false
|
798
|
+
|
799
|
+
# Offense count: 1
|
800
|
+
# Cop supports --auto-correct.
|
801
|
+
# Configuration parameters: EnforcedStyle.
|
802
|
+
# SupportedStyles: single_quotes, double_quotes
|
803
|
+
Style/StringLiteralsInInterpolation:
|
804
|
+
Exclude:
|
805
|
+
- 'lib/trailblazer/activity/introspection.rb'
|
806
|
+
|
807
|
+
# Offense count: 4
|
808
|
+
# Cop supports --auto-correct.
|
809
|
+
# Configuration parameters: MinSize.
|
810
|
+
# SupportedStyles: percent, brackets
|
811
|
+
Style/SymbolArray:
|
812
|
+
EnforcedStyle: brackets
|
813
|
+
|
814
|
+
# Offense count: 11
|
815
|
+
# Cop supports --auto-correct.
|
816
|
+
Style/SymbolLiteral:
|
817
|
+
Exclude:
|
818
|
+
- 'test/dsl/dsl_test.rb'
|
819
|
+
- 'test/dsl/path_test.rb'
|
820
|
+
|
821
|
+
# Offense count: 4
|
822
|
+
# Cop supports --auto-correct.
|
823
|
+
# Configuration parameters: IgnoredMethods.
|
824
|
+
# IgnoredMethods: respond_to, define_method
|
825
|
+
Style/SymbolProc:
|
826
|
+
Exclude:
|
827
|
+
- 'lib/trailblazer/activity/magnetic/dsl/plus_poles.rb'
|
828
|
+
- 'lib/trailblazer/activity/magnetic/finalizer.rb'
|
829
|
+
- 'lib/trailblazer/activity/schema/sequence.rb'
|
830
|
+
- 'lib/trailblazer/activity/trace.rb'
|
831
|
+
|
832
|
+
# Offense count: 8
|
833
|
+
# Cop supports --auto-correct.
|
834
|
+
# Configuration parameters: EnforcedStyleForMultiline.
|
835
|
+
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
836
|
+
Style/TrailingCommaInArguments:
|
837
|
+
Exclude:
|
838
|
+
- 'lib/trailblazer/activity/magnetic/builder/railway.rb'
|
839
|
+
- 'test/dsl/dsl_test.rb'
|
840
|
+
- 'test/dsl/fast_track_test.rb'
|
841
|
+
- 'test/dsl/path_test.rb'
|
842
|
+
- 'test/finalizer_test.rb'
|
843
|
+
|
844
|
+
# Offense count: 13
|
845
|
+
# Cop supports --auto-correct.
|
846
|
+
# Configuration parameters: EnforcedStyleForMultiline.
|
847
|
+
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
848
|
+
Style/TrailingCommaInLiteral:
|
849
|
+
Exclude:
|
850
|
+
- 'lib/trailblazer/activity/magnetic/builder.rb'
|
851
|
+
- 'lib/trailblazer/activity/magnetic/builder/railway.rb'
|
852
|
+
- 'lib/trailblazer/activity/magnetic/dsl.rb'
|
853
|
+
- 'lib/trailblazer/activity/trace.rb'
|
854
|
+
- 'test/docs/activity_test.rb'
|
855
|
+
- 'test/finalizer_test.rb'
|
856
|
+
- 'test/wrap/wrap_test.rb'
|
857
|
+
|
858
|
+
# Offense count: 36
|
859
|
+
# Cop supports --auto-correct.
|
860
|
+
# Configuration parameters: AllowNamedUnderscoreVariables.
|
861
|
+
Style/TrailingUnderscoreVariable:
|
862
|
+
Exclude:
|
863
|
+
- 'lib/trailblazer/activity/introspection.rb'
|
864
|
+
- 'lib/trailblazer/activity/magnetic/dsl.rb'
|
865
|
+
- 'lib/trailblazer/activity/magnetic/dsl/plus_poles.rb'
|
866
|
+
- 'lib/trailblazer/wrap/runner.rb'
|
867
|
+
- 'lib/trailblazer/wrap/trace.rb'
|
868
|
+
- 'test/activity_test.rb'
|
869
|
+
- 'test/docs/activity_test.rb'
|
870
|
+
- 'test/dsl/dsl_test.rb'
|
871
|
+
- 'test/dsl/fast_track_test.rb'
|
872
|
+
- 'test/dsl/path_test.rb'
|
873
|
+
- 'test/dsl/railway_test.rb'
|
874
|
+
- 'test/finalizer_test.rb'
|
875
|
+
- 'test/wrap/trace_test.rb'
|
876
|
+
- 'test/wrap/wrap_test.rb'
|
877
|
+
|
878
|
+
# Offense count: 1
|
879
|
+
# Cop supports --auto-correct.
|
880
|
+
# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, Whitelist.
|
881
|
+
# Whitelist: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym
|
882
|
+
Style/TrivialAccessors:
|
883
|
+
Exclude:
|
884
|
+
- 'lib/trailblazer/activity.rb'
|
885
|
+
|
886
|
+
# Offense count: 1
|
887
|
+
# Cop supports --auto-correct.
|
888
|
+
Style/UnneededInterpolation:
|
889
|
+
Exclude:
|
890
|
+
- 'lib/trailblazer/circuit.rb'
|
891
|
+
|
892
|
+
# Offense count: 2
|
893
|
+
# Cop supports --auto-correct.
|
894
|
+
Style/UnneededPercentQ:
|
895
|
+
Exclude:
|
896
|
+
- 'trailblazer-activity.gemspec'
|
897
|
+
|
898
|
+
# Offense count: 369
|
899
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
900
|
+
# URISchemes: http, https
|
901
|
+
Metrics/LineLength:
|
902
|
+
Max: 840
|
data/CHANGES.md
CHANGED
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require "bundler/gem_tasks"
|
2
2
|
require "rake/testtask"
|
3
|
+
require "rubocop/rake_task"
|
3
4
|
|
4
5
|
Rake::TestTask.new(:test) do |t|
|
5
6
|
t.libs << "test"
|
@@ -7,4 +8,6 @@ Rake::TestTask.new(:test) do |t|
|
|
7
8
|
t.test_files = FileList['test/dsl/*_test.rb', 'test/wrap/*_test.rb', "test/*_test.rb"]
|
8
9
|
end
|
9
10
|
|
11
|
+
RuboCop::RakeTask.new
|
12
|
+
|
10
13
|
task :default => :test
|
@@ -2,16 +2,16 @@ class Trailblazer::Activity
|
|
2
2
|
module Wrap
|
3
3
|
# TaskWrap step that calls the actual wrapped task and passes all `original_args` to it.
|
4
4
|
#
|
5
|
-
# It writes to wrap_ctx[:
|
5
|
+
# It writes to wrap_ctx[:return_signal], wrap_ctx[:return_args]
|
6
6
|
def self.call_task((wrap_ctx, original_args), **circuit_options)
|
7
7
|
task = wrap_ctx[:task]
|
8
8
|
|
9
9
|
# Call the actual task we're wrapping here.
|
10
10
|
# puts "~~~~wrap.call: #{task}"
|
11
|
-
|
11
|
+
return_signal, return_args = task.( *original_args ) # we lose :exec_context here.
|
12
12
|
|
13
|
-
# DISCUSS: do we want original_args here to be passed on, or the "effective"
|
14
|
-
wrap_ctx = wrap_ctx.merge(
|
13
|
+
# DISCUSS: do we want original_args here to be passed on, or the "effective" return_args which are different to original_args now?
|
14
|
+
wrap_ctx = wrap_ctx.merge( return_signal: return_signal, return_args: return_args )
|
15
15
|
|
16
16
|
[ Right, [ wrap_ctx, original_args ], **circuit_options ]
|
17
17
|
end
|
@@ -27,7 +27,7 @@ class Trailblazer::Activity
|
|
27
27
|
# don't return the wrap's end signal, but the one from call_task.
|
28
28
|
# return all original_args for the next "real" task in the circuit (this includes circuit_options).
|
29
29
|
|
30
|
-
[ wrap_ctx[:
|
30
|
+
[ wrap_ctx[:return_signal], wrap_ctx[:return_args] ]
|
31
31
|
end
|
32
32
|
|
33
33
|
private
|
@@ -16,7 +16,7 @@ class Trailblazer::Activity
|
|
16
16
|
def self.capture_return((wrap_config, original_args), **circuit_options)
|
17
17
|
(original_options, original_flow_options, _) = original_args[0]
|
18
18
|
|
19
|
-
original_flow_options[:stack] << Trailblazer::Activity::Trace::Entity.new( wrap_config[:task], :return, wrap_config[:
|
19
|
+
original_flow_options[:stack] << Trailblazer::Activity::Trace::Entity.new( wrap_config[:task], :return, wrap_config[:return_signal], {} )
|
20
20
|
|
21
21
|
original_flow_options[:stack].unindent!
|
22
22
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trailblazer-activity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Sutterer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hirb
|
@@ -89,6 +89,8 @@ extensions: []
|
|
89
89
|
extra_rdoc_files: []
|
90
90
|
files:
|
91
91
|
- ".gitignore"
|
92
|
+
- ".rubocop.yml"
|
93
|
+
- ".rubocop_todo.yml"
|
92
94
|
- ".travis.yml"
|
93
95
|
- CHANGES.md
|
94
96
|
- Gemfile
|
@@ -145,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
147
|
version: '0'
|
146
148
|
requirements: []
|
147
149
|
rubyforge_project:
|
148
|
-
rubygems_version: 2.6.
|
150
|
+
rubygems_version: 2.6.8
|
149
151
|
signing_key:
|
150
152
|
specification_version: 4
|
151
153
|
summary: The main element for Trailblazer's BPMN-compliant workflows.
|