trailblazer 2.0.7 → 2.1.0
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 +5 -5
- data/.gitignore +1 -0
- data/.rubocop-https---raw-githubusercontent-com-trailblazer-meta-master-rubocop-yml +101 -0
- data/.rubocop.yml +20 -0
- data/.rubocop_todo.yml +556 -0
- data/.travis.yml +6 -10
- data/CHANGES.md +83 -1
- data/COMM-LICENSE +46 -75
- data/CONTRIBUTING.md +179 -0
- data/Gemfile +0 -27
- data/{LICENSE.txt → LICENSE} +4 -4
- data/README.md +39 -138
- data/Rakefile +2 -19
- data/lib/trailblazer.rb +3 -17
- data/lib/trailblazer/version.rb +3 -1
- data/test/test_helper.rb +12 -3
- data/trailblazer.gemspec +10 -14
- metadata +22 -147
- data/doc/Trb-The-Stack.png +0 -0
- data/doc/operation-2017.png +0 -0
- data/doc/trb.jpg +0 -0
- data/lib/trailblazer/dsl.rb +0 -47
- data/lib/trailblazer/operation/auto_inject.rb +0 -47
- data/lib/trailblazer/operation/callback.rb +0 -35
- data/lib/trailblazer/operation/contract.rb +0 -46
- data/lib/trailblazer/operation/guard.rb +0 -18
- data/lib/trailblazer/operation/model.rb +0 -60
- data/lib/trailblazer/operation/module.rb +0 -29
- data/lib/trailblazer/operation/nested.rb +0 -113
- data/lib/trailblazer/operation/persist.rb +0 -10
- data/lib/trailblazer/operation/policy.rb +0 -35
- data/lib/trailblazer/operation/procedural/contract.rb +0 -15
- data/lib/trailblazer/operation/procedural/validate.rb +0 -22
- data/lib/trailblazer/operation/pundit.rb +0 -38
- data/lib/trailblazer/operation/representer.rb +0 -31
- data/lib/trailblazer/operation/rescue.rb +0 -21
- data/lib/trailblazer/operation/test.rb +0 -17
- data/lib/trailblazer/operation/validate.rb +0 -68
- data/lib/trailblazer/operation/wrap.rb +0 -25
- data/test/docs/auto_inject_test.rb +0 -30
- data/test/docs/contract_test.rb +0 -525
- data/test/docs/dry_test.rb +0 -31
- data/test/docs/fast_test.rb +0 -164
- data/test/docs/guard_test.rb +0 -169
- data/test/docs/macro_test.rb +0 -36
- data/test/docs/model_test.rb +0 -75
- data/test/docs/nested_test.rb +0 -334
- data/test/docs/operation_test.rb +0 -408
- 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 -183
- data/test/gemfiles/Gemfile.ruby-1.9 +0 -3
- data/test/gemfiles/Gemfile.ruby-2.0 +0 -12
- data/test/gemfiles/Gemfile.ruby-2.3 +0 -12
- data/test/module_test.rb +0 -100
- data/test/operation/callback_test.rb +0 -70
- data/test/operation/contract_test.rb +0 -420
- data/test/operation/dsl/callback_test.rb +0 -106
- data/test/operation/dsl/contract_test.rb +0 -294
- data/test/operation/dsl/representer_test.rb +0 -169
- data/test/operation/model_test.rb +0 -60
- data/test/operation/params_test.rb +0 -36
- data/test/operation/persist_test.rb +0 -44
- data/test/operation/pipedream_test.rb +0 -59
- data/test/operation/pipetree_test.rb +0 -104
- data/test/operation/present_test.rb +0 -24
- data/test/operation/pundit_test.rb +0 -104
- data/test/operation/representer_test.rb +0 -254
- data/test/operation/resolver_test.rb +0 -47
- data/test/operation_test.rb +0 -143
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1880885128b035e5a00ad877be0d017d39577ce7d501bd6aeae8367c4fc590cb
|
4
|
+
data.tar.gz: 799e2dc57477bb87b9712f9d86e56656d0b81d2dba5d6f57b24412d645e00fb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22d9fe5656cc10be8ddbcf7943dfda73688b0c2f131c3075fbbc229ddb43f936d75b08b481c11c1dd7b290b94f2cb79e0a517e92bd5a4858595c224de3221c7c
|
7
|
+
data.tar.gz: 15bf42c25fba517d1071470bcfecb265c9fcfc6d4111d24258bbe155ebbed53cb8dd3e72f9b9f70e3860074137efde9883d2acc256f7dbbf63d24a7eba145261
|
data/.gitignore
CHANGED
@@ -0,0 +1,101 @@
|
|
1
|
+
AllCops:
|
2
|
+
DisplayCopNames: true
|
3
|
+
Layout/CaseIndentation:
|
4
|
+
IndentOneStep: true
|
5
|
+
Layout/FirstArrayElementLineBreak:
|
6
|
+
Enabled: true
|
7
|
+
Layout/FirstHashElementLineBreak:
|
8
|
+
Enabled: true
|
9
|
+
Layout/FirstMethodArgumentLineBreak:
|
10
|
+
Enabled: true
|
11
|
+
Layout/FirstMethodParameterLineBreak:
|
12
|
+
Enabled: true
|
13
|
+
Layout/MultilineAssignmentLayout:
|
14
|
+
Enabled: true
|
15
|
+
EnforcedStyle: same_line
|
16
|
+
Layout/SpaceInsideHashLiteralBraces:
|
17
|
+
EnforcedStyle: no_space
|
18
|
+
Metrics/LineLength:
|
19
|
+
Max: 130
|
20
|
+
Metrics/ParameterLists:
|
21
|
+
Max: 5
|
22
|
+
Naming/VariableNumber:
|
23
|
+
EnforcedStyle: snake_case
|
24
|
+
Style/AndOr:
|
25
|
+
EnforcedStyle: conditionals
|
26
|
+
Style/AutoResourceCleanup:
|
27
|
+
Enabled: true
|
28
|
+
Style/CollectionMethods:
|
29
|
+
Enabled: true
|
30
|
+
Style/Documentation:
|
31
|
+
Enabled: false
|
32
|
+
Style/EmptyLiteral:
|
33
|
+
Enabled: false
|
34
|
+
Style/EmptyMethod:
|
35
|
+
EnforcedStyle: expanded
|
36
|
+
Style/FormatStringToken:
|
37
|
+
EnforcedStyle: template
|
38
|
+
Style/ImplicitRuntimeError:
|
39
|
+
Enabled: true
|
40
|
+
Style/MethodCalledOnDoEndBlock:
|
41
|
+
Enabled: true
|
42
|
+
Style/MethodDefParentheses:
|
43
|
+
EnforcedStyle: require_parentheses
|
44
|
+
Style/MissingElse:
|
45
|
+
Enabled: true
|
46
|
+
EnforcedStyle: case
|
47
|
+
Style/NumericLiterals:
|
48
|
+
Enabled: false
|
49
|
+
Style/OptionHash:
|
50
|
+
Enabled: true
|
51
|
+
Style/PercentLiteralDelimiters:
|
52
|
+
PreferredDelimiters:
|
53
|
+
"%w": "[]"
|
54
|
+
"%W": "[]"
|
55
|
+
"%i": "[]"
|
56
|
+
"%I": "[]"
|
57
|
+
"%r": "()"
|
58
|
+
Style/ReturnNil:
|
59
|
+
Enabled: true
|
60
|
+
Style/SafeNavigation:
|
61
|
+
Enabled: false
|
62
|
+
Style/Send:
|
63
|
+
Enabled: true
|
64
|
+
Style/SignalException:
|
65
|
+
EnforcedStyle: semantic
|
66
|
+
Style/StringLiterals:
|
67
|
+
EnforcedStyle: double_quotes
|
68
|
+
Style/StringLiteralsInInterpolation:
|
69
|
+
EnforcedStyle: double_quotes
|
70
|
+
Style/StringMethods:
|
71
|
+
Enabled: true
|
72
|
+
Style/SymbolArray:
|
73
|
+
Enabled: true
|
74
|
+
# this allows in rspec to have expect { } with multiple lines
|
75
|
+
Style/BlockDelimiters:
|
76
|
+
EnforcedStyle: braces_for_chaining
|
77
|
+
Layout/EndOfLine:
|
78
|
+
Enabled: false
|
79
|
+
# don't need these checks in test folders
|
80
|
+
Metrics/ModuleLength:
|
81
|
+
Exclude:
|
82
|
+
- "spec/**/*"
|
83
|
+
- "test/**/*"
|
84
|
+
Metrics/BlockLength:
|
85
|
+
Exclude:
|
86
|
+
- "spec/**/*"
|
87
|
+
- "test/**/*"
|
88
|
+
- "*.gemspec" # definitely not in the gemspec
|
89
|
+
Metrics/MethodLength:
|
90
|
+
Max: 20
|
91
|
+
Lint/UnreachableCode:
|
92
|
+
Description: 'Unreachable code.'
|
93
|
+
Enabled: false
|
94
|
+
Lint/Void:
|
95
|
+
Enabled: false
|
96
|
+
Layout/AlignHash:
|
97
|
+
EnforcedLastArgumentHashStyle: ignore_implicit
|
98
|
+
Metrics/AbcSize:
|
99
|
+
Max: 25
|
100
|
+
Style/LambdaCall:
|
101
|
+
Enabled: false
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
inherit_from:
|
2
|
+
- https://raw.githubusercontent.com/trailblazer/meta/master/rubocop.yml
|
3
|
+
- .rubocop_todo.yml
|
4
|
+
|
5
|
+
# Trailblazer uses constant named methods for macros.
|
6
|
+
# Ignore the false positives in these files.
|
7
|
+
Naming/MethodName:
|
8
|
+
Exclude:
|
9
|
+
- 'test/docs/macro_test.rb'
|
10
|
+
- 'lib/trailblazer/operation/model.rb'
|
11
|
+
- 'lib/trailblazer/operation/contract.rb'
|
12
|
+
- 'lib/trailblazer/operation/auto_inject.rb'
|
13
|
+
- 'lib/trailblazer/operation/wrap.rb'
|
14
|
+
- 'lib/trailblazer/operation/validate.rb'
|
15
|
+
- 'lib/trailblazer/operation/pundit.rb'
|
16
|
+
- 'lib/trailblazer/operation/persist.rb'
|
17
|
+
- 'lib/trailblazer/operation/rescue.rb'
|
18
|
+
- 'lib/trailblazer/operation/callback.rb'
|
19
|
+
- 'lib/trailblazer/operation/nested.rb'
|
20
|
+
- 'lib/trailblazer/operation/guard.rb'
|
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,556 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2018-06-20 07:55:52 +0800 using RuboCop version 0.57.2.
|
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: 9
|
10
|
+
# Configuration parameters: Include.
|
11
|
+
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
|
12
|
+
Bundler/DuplicatedGem:
|
13
|
+
Exclude:
|
14
|
+
- 'Gemfile'
|
15
|
+
|
16
|
+
# Offense count: 4
|
17
|
+
# Cop supports --auto-correct.
|
18
|
+
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
|
19
|
+
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
|
20
|
+
Bundler/OrderedGems:
|
21
|
+
Exclude:
|
22
|
+
- 'Gemfile'
|
23
|
+
|
24
|
+
# Offense count: 1
|
25
|
+
# Cop supports --auto-correct.
|
26
|
+
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
|
27
|
+
# Include: **/*.gemspec
|
28
|
+
Gemspec/OrderedDependencies:
|
29
|
+
Exclude:
|
30
|
+
- 'trailblazer.gemspec'
|
31
|
+
|
32
|
+
# Offense count: 1
|
33
|
+
# Configuration parameters: Include.
|
34
|
+
# Include: **/*.gemspec
|
35
|
+
Gemspec/RequiredRubyVersion:
|
36
|
+
Exclude:
|
37
|
+
- 'trailblazer.gemspec'
|
38
|
+
|
39
|
+
# Offense count: 1
|
40
|
+
# Cop supports --auto-correct.
|
41
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
42
|
+
# SupportedStyles: outdent, indent
|
43
|
+
Layout/AccessModifierIndentation:
|
44
|
+
Exclude:
|
45
|
+
- 'lib/trailblazer/dsl.rb'
|
46
|
+
|
47
|
+
# Offense count: 1
|
48
|
+
# Cop supports --auto-correct.
|
49
|
+
Layout/BlockEndNewline:
|
50
|
+
Exclude:
|
51
|
+
- 'lib/trailblazer/operation/module.rb'
|
52
|
+
|
53
|
+
# Offense count: 19
|
54
|
+
# Cop supports --auto-correct.
|
55
|
+
Layout/CommentIndentation:
|
56
|
+
Exclude:
|
57
|
+
- 'test/docs/fast_test.rb'
|
58
|
+
- 'test/docs/operation_test.rb'
|
59
|
+
- 'test/docs/trace_test.rb'
|
60
|
+
- 'test/variables_test.rb'
|
61
|
+
|
62
|
+
# Offense count: 5
|
63
|
+
# Cop supports --auto-correct.
|
64
|
+
# Configuration parameters: EnforcedStyle.
|
65
|
+
# SupportedStyles: leading, trailing
|
66
|
+
Layout/DotPosition:
|
67
|
+
Exclude:
|
68
|
+
- 'test/variables_test.rb'
|
69
|
+
|
70
|
+
# Offense count: 7
|
71
|
+
# Cop supports --auto-correct.
|
72
|
+
# Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines.
|
73
|
+
Layout/EmptyLineBetweenDefs:
|
74
|
+
Exclude:
|
75
|
+
- 'test/docs/fast_test.rb'
|
76
|
+
- 'test/test_helper.rb'
|
77
|
+
|
78
|
+
# Offense count: 17
|
79
|
+
# Cop supports --auto-correct.
|
80
|
+
Layout/EmptyLines:
|
81
|
+
Exclude:
|
82
|
+
- 'test/benchmark.rb'
|
83
|
+
- 'test/docs/fast_test.rb'
|
84
|
+
- 'test/docs/operation_test.rb'
|
85
|
+
- 'test/dsl/contract_test.rb'
|
86
|
+
- 'test/module_test.rb'
|
87
|
+
|
88
|
+
# Offense count: 2
|
89
|
+
# Cop supports --auto-correct.
|
90
|
+
Layout/EmptyLinesAroundAccessModifier:
|
91
|
+
Exclude:
|
92
|
+
- 'lib/trailblazer/dsl.rb'
|
93
|
+
- 'lib/trailblazer/operation/test.rb'
|
94
|
+
|
95
|
+
# Offense count: 2
|
96
|
+
# Cop supports --auto-correct.
|
97
|
+
# Configuration parameters: EnforcedStyle.
|
98
|
+
# SupportedStyles: empty_lines, no_empty_lines
|
99
|
+
Layout/EmptyLinesAroundBlockBody:
|
100
|
+
Exclude:
|
101
|
+
- 'lib/trailblazer/operation/module.rb'
|
102
|
+
- 'test/dsl/contract_test.rb'
|
103
|
+
|
104
|
+
# Offense count: 1
|
105
|
+
# Cop supports --auto-correct.
|
106
|
+
Layout/EmptyLinesAroundMethodBody:
|
107
|
+
Exclude:
|
108
|
+
- 'lib/trailblazer/operation/test.rb'
|
109
|
+
|
110
|
+
# Offense count: 24
|
111
|
+
# Configuration parameters: EnforcedStyle.
|
112
|
+
# SupportedStyles: native, lf, crlf
|
113
|
+
Layout/EndOfLine:
|
114
|
+
Enabled: false
|
115
|
+
|
116
|
+
# Offense count: 16
|
117
|
+
# Cop supports --auto-correct.
|
118
|
+
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
|
119
|
+
Layout/ExtraSpacing:
|
120
|
+
Exclude:
|
121
|
+
- 'lib/trailblazer/deprecation/context.rb'
|
122
|
+
- 'test/benchmark.rb'
|
123
|
+
- 'test/docs/fast_test.rb'
|
124
|
+
- 'test/docs/operation_test.rb'
|
125
|
+
- 'test/dsl/contract_test.rb'
|
126
|
+
- 'test/variables_test.rb'
|
127
|
+
|
128
|
+
# Offense count: 1
|
129
|
+
# Cop supports --auto-correct.
|
130
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
131
|
+
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
132
|
+
Layout/IndentHash:
|
133
|
+
Exclude:
|
134
|
+
- 'test/variables_test.rb'
|
135
|
+
|
136
|
+
# Offense count: 10
|
137
|
+
# Cop supports --auto-correct.
|
138
|
+
# Configuration parameters: EnforcedStyle.
|
139
|
+
# SupportedStyles: normal, rails
|
140
|
+
Layout/IndentationConsistency:
|
141
|
+
Exclude:
|
142
|
+
- 'test/docs/operation_test.rb'
|
143
|
+
|
144
|
+
# Offense count: 12
|
145
|
+
# Cop supports --auto-correct.
|
146
|
+
Layout/LeadingCommentSpace:
|
147
|
+
Exclude:
|
148
|
+
- 'test/docs/fast_test.rb'
|
149
|
+
- 'test/docs/operation_test.rb'
|
150
|
+
- 'test/dsl/contract_test.rb'
|
151
|
+
- 'test/variables_test.rb'
|
152
|
+
- 'trailblazer.gemspec'
|
153
|
+
|
154
|
+
# Offense count: 8
|
155
|
+
# Cop supports --auto-correct.
|
156
|
+
Layout/SpaceAfterColon:
|
157
|
+
Exclude:
|
158
|
+
- 'test/docs/fast_test.rb'
|
159
|
+
|
160
|
+
# Offense count: 42
|
161
|
+
# Cop supports --auto-correct.
|
162
|
+
Layout/SpaceAfterComma:
|
163
|
+
Exclude:
|
164
|
+
- 'lib/trailblazer/deprecation/context.rb'
|
165
|
+
- 'test/docs/fast_test.rb'
|
166
|
+
|
167
|
+
# Offense count: 5
|
168
|
+
# Cop supports --auto-correct.
|
169
|
+
# Configuration parameters: .
|
170
|
+
# SupportedStyles: space, no_space
|
171
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
172
|
+
EnforcedStyle: no_space
|
173
|
+
|
174
|
+
# Offense count: 16
|
175
|
+
# Cop supports --auto-correct.
|
176
|
+
# Configuration parameters: AllowForAlignment.
|
177
|
+
Layout/SpaceAroundOperators:
|
178
|
+
Exclude:
|
179
|
+
- 'test/benchmark.rb'
|
180
|
+
- 'test/deprecation/call_test.rb'
|
181
|
+
- 'test/deprecation/context_test.rb'
|
182
|
+
- 'test/docs/operation_test.rb'
|
183
|
+
- 'test/dsl/contract_test.rb'
|
184
|
+
- 'test/variables_test.rb'
|
185
|
+
|
186
|
+
# Offense count: 3
|
187
|
+
# Cop supports --auto-correct.
|
188
|
+
Layout/SpaceBeforeComma:
|
189
|
+
Exclude:
|
190
|
+
- 'test/variables_test.rb'
|
191
|
+
|
192
|
+
# Offense count: 4
|
193
|
+
# Cop supports --auto-correct.
|
194
|
+
Layout/SpaceBeforeComment:
|
195
|
+
Exclude:
|
196
|
+
- 'lib/trailblazer/dsl.rb'
|
197
|
+
- 'test/dsl/contract_test.rb'
|
198
|
+
- 'trailblazer.gemspec'
|
199
|
+
|
200
|
+
# Offense count: 4
|
201
|
+
# Cop supports --auto-correct.
|
202
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
|
203
|
+
# SupportedStyles: space, no_space, compact
|
204
|
+
# SupportedStylesForEmptyBrackets: space, no_space
|
205
|
+
Layout/SpaceInsideArrayLiteralBrackets:
|
206
|
+
Exclude:
|
207
|
+
- 'lib/trailblazer/deprecation/context.rb'
|
208
|
+
- 'test/benchmark.rb'
|
209
|
+
|
210
|
+
# Offense count: 26
|
211
|
+
# Cop supports --auto-correct.
|
212
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
213
|
+
# SupportedStyles: space, no_space, compact
|
214
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
215
|
+
Layout/SpaceInsideHashLiteralBraces:
|
216
|
+
Exclude:
|
217
|
+
- 'lib/trailblazer/deprecation/call.rb'
|
218
|
+
- 'test/deprecation/call_test.rb'
|
219
|
+
- 'test/docs/fast_test.rb'
|
220
|
+
- 'test/docs/operation_test.rb'
|
221
|
+
|
222
|
+
# Offense count: 93
|
223
|
+
# Cop supports --auto-correct.
|
224
|
+
# Configuration parameters: EnforcedStyle.
|
225
|
+
# SupportedStyles: space, no_space
|
226
|
+
Layout/SpaceInsideParens:
|
227
|
+
Exclude:
|
228
|
+
- 'lib/trailblazer/deprecation/call.rb'
|
229
|
+
- 'lib/trailblazer/deprecation/context.rb'
|
230
|
+
- 'test/deprecation/call_test.rb'
|
231
|
+
- 'test/deprecation/context_test.rb'
|
232
|
+
- 'test/docs/fast_test.rb'
|
233
|
+
- 'test/docs/operation_test.rb'
|
234
|
+
- 'test/docs/trace_test.rb'
|
235
|
+
- 'test/dsl/contract_test.rb'
|
236
|
+
- 'test/variables_test.rb'
|
237
|
+
|
238
|
+
# Offense count: 1
|
239
|
+
# Cop supports --auto-correct.
|
240
|
+
# Configuration parameters: EnforcedStyle.
|
241
|
+
# SupportedStyles: final_newline, final_blank_line
|
242
|
+
Layout/TrailingBlankLines:
|
243
|
+
Exclude:
|
244
|
+
- 'lib/trailblazer/operation/module.rb'
|
245
|
+
|
246
|
+
# Offense count: 2
|
247
|
+
Lint/NestedMethodDefinition:
|
248
|
+
Exclude:
|
249
|
+
- 'test/benchmark.rb'
|
250
|
+
|
251
|
+
# Offense count: 1
|
252
|
+
Lint/ReturnInVoidContext:
|
253
|
+
Exclude:
|
254
|
+
- 'lib/trailblazer/deprecation/context.rb'
|
255
|
+
|
256
|
+
# Offense count: 1
|
257
|
+
# Configuration parameters: IgnoreImplicitReferences.
|
258
|
+
Lint/ShadowedArgument:
|
259
|
+
Exclude:
|
260
|
+
- 'lib/trailblazer/deprecation/call.rb'
|
261
|
+
|
262
|
+
# Offense count: 1
|
263
|
+
Lint/ShadowingOuterLocalVariable:
|
264
|
+
Exclude:
|
265
|
+
- 'lib/trailblazer/deprecation/context.rb'
|
266
|
+
|
267
|
+
# Offense count: 2
|
268
|
+
# Cop supports --auto-correct.
|
269
|
+
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
270
|
+
Lint/UnusedBlockArgument:
|
271
|
+
Exclude:
|
272
|
+
- 'test/test_helper.rb'
|
273
|
+
|
274
|
+
# Offense count: 9
|
275
|
+
# Cop supports --auto-correct.
|
276
|
+
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
|
277
|
+
Lint/UnusedMethodArgument:
|
278
|
+
Exclude:
|
279
|
+
- 'lib/trailblazer/deprecation/call.rb'
|
280
|
+
- 'lib/trailblazer/dsl.rb'
|
281
|
+
- 'test/docs/fast_test.rb'
|
282
|
+
- 'test/docs/trace_test.rb'
|
283
|
+
|
284
|
+
# Offense count: 3
|
285
|
+
Lint/UselessAssignment:
|
286
|
+
Exclude:
|
287
|
+
- 'test/deprecation/call_test.rb'
|
288
|
+
- 'test/deprecation/context_test.rb'
|
289
|
+
|
290
|
+
# Offense count: 1
|
291
|
+
Metrics/AbcSize:
|
292
|
+
Max: 18
|
293
|
+
|
294
|
+
# Offense count: 2
|
295
|
+
# Configuration parameters: CountComments, ExcludedMethods.
|
296
|
+
Metrics/BlockLength:
|
297
|
+
Max: 32
|
298
|
+
|
299
|
+
# Offense count: 1
|
300
|
+
Metrics/CyclomaticComplexity:
|
301
|
+
Max: 10
|
302
|
+
|
303
|
+
# Offense count: 30
|
304
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
305
|
+
# URISchemes: http, https
|
306
|
+
Metrics/LineLength:
|
307
|
+
Max: 290
|
308
|
+
|
309
|
+
# Offense count: 3
|
310
|
+
# Configuration parameters: CountComments.
|
311
|
+
Metrics/MethodLength:
|
312
|
+
Max: 16
|
313
|
+
|
314
|
+
# Offense count: 1
|
315
|
+
Metrics/PerceivedComplexity:
|
316
|
+
Max: 11
|
317
|
+
|
318
|
+
# Offense count: 10
|
319
|
+
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
320
|
+
# AllowedNames: io, id, to, by, on, in, at
|
321
|
+
Naming/UncommunicativeMethodParamName:
|
322
|
+
Exclude:
|
323
|
+
- 'test/benchmark.rb'
|
324
|
+
- 'test/docs/fast_test.rb'
|
325
|
+
|
326
|
+
# Offense count: 2
|
327
|
+
# Configuration parameters: AllowedChars.
|
328
|
+
Style/AsciiComments:
|
329
|
+
Exclude:
|
330
|
+
- 'test/benchmark.rb'
|
331
|
+
|
332
|
+
# Offense count: 12
|
333
|
+
# Cop supports --auto-correct.
|
334
|
+
Style/BlockComments:
|
335
|
+
Exclude:
|
336
|
+
- 'test/docs/operation_test.rb'
|
337
|
+
- 'test/variables_test.rb'
|
338
|
+
|
339
|
+
# Offense count: 3
|
340
|
+
# Cop supports --auto-correct.
|
341
|
+
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods.
|
342
|
+
# SupportedStyles: line_count_based, semantic, braces_for_chaining
|
343
|
+
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
344
|
+
# FunctionalMethods: let, let!, subject, watch
|
345
|
+
# IgnoredMethods: lambda, proc, it
|
346
|
+
Style/BlockDelimiters:
|
347
|
+
Exclude:
|
348
|
+
- 'lib/trailblazer/operation/auto_inject.rb'
|
349
|
+
- 'lib/trailblazer/operation/module.rb'
|
350
|
+
- 'test/dsl/contract_test.rb'
|
351
|
+
|
352
|
+
# Offense count: 2
|
353
|
+
# Cop supports --auto-correct.
|
354
|
+
# Configuration parameters: EnforcedStyle.
|
355
|
+
# SupportedStyles: braces, no_braces, context_dependent
|
356
|
+
Style/BracesAroundHashParameters:
|
357
|
+
Exclude:
|
358
|
+
- 'test/docs/operation_test.rb'
|
359
|
+
- 'test/dsl/contract_test.rb'
|
360
|
+
|
361
|
+
# Offense count: 11
|
362
|
+
# Cop supports --auto-correct.
|
363
|
+
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
364
|
+
# SupportedStyles: nested, compact
|
365
|
+
Style/ClassAndModuleChildren:
|
366
|
+
Exclude:
|
367
|
+
- 'lib/trailblazer/operation/auto_inject.rb'
|
368
|
+
- 'lib/trailblazer/operation/module.rb'
|
369
|
+
- 'test/docs/fast_test.rb'
|
370
|
+
- 'test/docs/operation_test.rb'
|
371
|
+
|
372
|
+
# Offense count: 1
|
373
|
+
# Cop supports --auto-correct.
|
374
|
+
# Configuration parameters: EnforcedStyle.
|
375
|
+
# SupportedStyles: is_a?, kind_of?
|
376
|
+
Style/ClassCheck:
|
377
|
+
Exclude:
|
378
|
+
- 'lib/trailblazer/dsl.rb'
|
379
|
+
|
380
|
+
# Offense count: 1
|
381
|
+
# Cop supports --auto-correct.
|
382
|
+
# Configuration parameters: PreferredMethods.
|
383
|
+
Style/CollectionMethods:
|
384
|
+
Exclude:
|
385
|
+
- 'lib/trailblazer/deprecation/context.rb'
|
386
|
+
|
387
|
+
# Offense count: 1
|
388
|
+
# Cop supports --auto-correct.
|
389
|
+
# Configuration parameters: Keywords.
|
390
|
+
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
|
391
|
+
Style/CommentAnnotation:
|
392
|
+
Exclude:
|
393
|
+
- 'test/variables_test.rb'
|
394
|
+
|
395
|
+
# Offense count: 2
|
396
|
+
Style/CommentedKeyword:
|
397
|
+
Exclude:
|
398
|
+
- 'lib/trailblazer/operation/deprecations.rb'
|
399
|
+
- 'lib/trailblazer/operation/module.rb'
|
400
|
+
|
401
|
+
# Offense count: 1
|
402
|
+
# Cop supports --auto-correct.
|
403
|
+
# Configuration parameters: EnforcedStyle.
|
404
|
+
# SupportedStyles: compact, expanded
|
405
|
+
Style/EmptyMethod:
|
406
|
+
Exclude:
|
407
|
+
- 'test/docs/fast_test.rb'
|
408
|
+
|
409
|
+
# Offense count: 1
|
410
|
+
# Cop supports --auto-correct.
|
411
|
+
Style/ExpandPathArguments:
|
412
|
+
Exclude:
|
413
|
+
- 'trailblazer.gemspec'
|
414
|
+
|
415
|
+
# Offense count: 1
|
416
|
+
# Configuration parameters: MinBodyLength.
|
417
|
+
Style/GuardClause:
|
418
|
+
Exclude:
|
419
|
+
- 'test/docs/fast_test.rb'
|
420
|
+
|
421
|
+
# Offense count: 6
|
422
|
+
# Cop supports --auto-correct.
|
423
|
+
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
424
|
+
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
425
|
+
Style/HashSyntax:
|
426
|
+
Exclude:
|
427
|
+
- 'Rakefile'
|
428
|
+
- 'test/docs/operation_test.rb'
|
429
|
+
|
430
|
+
# Offense count: 1
|
431
|
+
Style/ImplicitRuntimeError:
|
432
|
+
Exclude:
|
433
|
+
- 'lib/trailblazer/operation/test.rb'
|
434
|
+
|
435
|
+
# Offense count: 70
|
436
|
+
# Cop supports --auto-correct.
|
437
|
+
# Configuration parameters: .
|
438
|
+
# SupportedStyles: call, braces
|
439
|
+
Style/LambdaCall:
|
440
|
+
EnforcedStyle: braces
|
441
|
+
|
442
|
+
# Offense count: 1
|
443
|
+
Style/MethodMissingSuper:
|
444
|
+
Exclude:
|
445
|
+
- 'lib/trailblazer/operation/module.rb'
|
446
|
+
|
447
|
+
# Offense count: 1
|
448
|
+
Style/MissingRespondToMissing:
|
449
|
+
Exclude:
|
450
|
+
- 'lib/trailblazer/operation/module.rb'
|
451
|
+
|
452
|
+
# Offense count: 1
|
453
|
+
# Cop supports --auto-correct.
|
454
|
+
Style/MutableConstant:
|
455
|
+
Exclude:
|
456
|
+
- 'lib/trailblazer/version.rb'
|
457
|
+
|
458
|
+
# Offense count: 2
|
459
|
+
Style/OptionalArguments:
|
460
|
+
Exclude:
|
461
|
+
- 'lib/trailblazer/dsl.rb'
|
462
|
+
|
463
|
+
# Offense count: 1
|
464
|
+
# Cop supports --auto-correct.
|
465
|
+
Style/ParallelAssignment:
|
466
|
+
Exclude:
|
467
|
+
- 'lib/trailblazer/deprecation/call.rb'
|
468
|
+
|
469
|
+
# Offense count: 47
|
470
|
+
# Cop supports --auto-correct.
|
471
|
+
# Configuration parameters: PreferredDelimiters.
|
472
|
+
Style/PercentLiteralDelimiters:
|
473
|
+
Exclude:
|
474
|
+
- 'test/deprecation/call_test.rb'
|
475
|
+
- 'test/deprecation/context_test.rb'
|
476
|
+
- 'test/docs/fast_test.rb'
|
477
|
+
- 'test/docs/operation_test.rb'
|
478
|
+
- 'test/docs/trace_test.rb'
|
479
|
+
- 'test/dsl/contract_test.rb'
|
480
|
+
- 'test/variables_test.rb'
|
481
|
+
- 'trailblazer.gemspec'
|
482
|
+
|
483
|
+
# Offense count: 2
|
484
|
+
# Cop supports --auto-correct.
|
485
|
+
# Configuration parameters: AllowMultipleReturnValues.
|
486
|
+
Style/RedundantReturn:
|
487
|
+
Exclude:
|
488
|
+
- 'lib/trailblazer/deprecation/call.rb'
|
489
|
+
- 'test/docs/fast_test.rb'
|
490
|
+
|
491
|
+
# Offense count: 8
|
492
|
+
# Cop supports --auto-correct.
|
493
|
+
# Configuration parameters: AllowAsExpressionSeparator.
|
494
|
+
Style/Semicolon:
|
495
|
+
Exclude:
|
496
|
+
- 'test/docs/fast_test.rb'
|
497
|
+
|
498
|
+
# Offense count: 1
|
499
|
+
Style/Send:
|
500
|
+
Exclude:
|
501
|
+
- 'lib/trailblazer/operation/module.rb'
|
502
|
+
|
503
|
+
# Offense count: 1
|
504
|
+
# Cop supports --auto-correct.
|
505
|
+
# Configuration parameters: EnforcedStyle.
|
506
|
+
# SupportedStyles: only_raise, only_fail, semantic
|
507
|
+
Style/SignalException:
|
508
|
+
Exclude:
|
509
|
+
- 'lib/trailblazer/operation/test.rb'
|
510
|
+
|
511
|
+
# Offense count: 20
|
512
|
+
# Cop supports --auto-correct.
|
513
|
+
# Configuration parameters: AllowIfMethodIsEmpty.
|
514
|
+
Style/SingleLineMethods:
|
515
|
+
Exclude:
|
516
|
+
- 'test/docs/fast_test.rb'
|
517
|
+
- 'test/docs/operation_test.rb'
|
518
|
+
- 'test/test_helper.rb'
|
519
|
+
|
520
|
+
# Offense count: 14
|
521
|
+
# Cop supports --auto-correct.
|
522
|
+
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
523
|
+
# SupportedStyles: single_quotes, double_quotes
|
524
|
+
Style/StringLiterals:
|
525
|
+
Exclude:
|
526
|
+
- 'Gemfile'
|
527
|
+
- 'Rakefile'
|
528
|
+
- 'trailblazer.gemspec'
|
529
|
+
|
530
|
+
# Offense count: 1
|
531
|
+
# Cop supports --auto-correct.
|
532
|
+
# Configuration parameters: EnforcedStyleForMultiline.
|
533
|
+
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
534
|
+
Style/TrailingCommaInHashLiteral:
|
535
|
+
Exclude:
|
536
|
+
- 'test/variables_test.rb'
|
537
|
+
|
538
|
+
# Offense count: 2
|
539
|
+
# Cop supports --auto-correct.
|
540
|
+
# Configuration parameters: AllowNamedUnderscoreVariables.
|
541
|
+
Style/TrailingUnderscoreVariable:
|
542
|
+
Exclude:
|
543
|
+
- 'lib/trailblazer/deprecation/context.rb'
|
544
|
+
|
545
|
+
# Offense count: 2
|
546
|
+
# Cop supports --auto-correct.
|
547
|
+
Style/UnneededPercentQ:
|
548
|
+
Exclude:
|
549
|
+
- 'trailblazer.gemspec'
|
550
|
+
|
551
|
+
# Offense count: 1
|
552
|
+
# Cop supports --auto-correct.
|
553
|
+
# Configuration parameters: MinSize, WordRegex.
|
554
|
+
# SupportedStyles: percent, brackets
|
555
|
+
Style/WordArray:
|
556
|
+
EnforcedStyle: brackets
|