trailblazer-rails 2.1.4 → 2.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +15 -15
- data/.rubocop.yml +9 -9
- data/.rubocop_todo.yml +294 -294
- data/.ruby-version +1 -1
- data/.travis.yml +18 -16
- data/CHANGES.md +146 -141
- data/Gemfile +25 -4
- data/LICENSE.txt +21 -21
- data/README.md +39 -39
- data/lib/trailblazer/rails/cell.rb +21 -21
- data/lib/trailblazer/rails/controller.rb +57 -55
- data/lib/trailblazer/rails/railtie.rb +30 -30
- data/lib/trailblazer/rails/railtie/extend_application_controller.rb +28 -28
- data/lib/trailblazer/rails/railtie/loader.rb +51 -56
- data/lib/trailblazer/rails/test/integration.rb +6 -6
- data/lib/trailblazer/rails/version.rb +5 -5
- data/trailblazer-rails.gemspec +28 -27
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b721beaf03b4a5f8e7597aed6d8d3404880e7a89
|
4
|
+
data.tar.gz: ad3ff717861512419ed87a3a7469fc9ff23bf09b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb8c9b09aba722a15ae62866455ed055916d55a7648085d993aa473da2da515d8f4c6135f88b1a0302ae5958191c2c210ed6ad83d3d5ca5d850697f53fa45008
|
7
|
+
data.tar.gz: 9d8fd2524b92b92cb443f189f7fd095eae1dd95edcc14673371fcaae18d54c80e34135a112b9d44af5c1f5189e60969082984248f3321c393194a34d005b2489
|
data/.gitignore
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
.idea
|
2
|
-
.rakeTasks
|
3
|
-
.bundle/
|
4
|
-
/.yardoc
|
5
|
-
/Gemfile.lock
|
6
|
-
/_yardoc/
|
7
|
-
/coverage/
|
8
|
-
/doc/
|
9
|
-
/pkg/
|
10
|
-
/spec/reports/
|
11
|
-
/tmp/
|
12
|
-
test/**/*.log
|
13
|
-
test/**/Gemfile.lock
|
14
|
-
*.iml
|
15
|
-
*.sqlite3
|
1
|
+
.idea
|
2
|
+
.rakeTasks
|
3
|
+
.bundle/
|
4
|
+
/.yardoc
|
5
|
+
/Gemfile.lock
|
6
|
+
/_yardoc/
|
7
|
+
/coverage/
|
8
|
+
/doc/
|
9
|
+
/pkg/
|
10
|
+
/spec/reports/
|
11
|
+
/tmp/
|
12
|
+
test/**/*.log
|
13
|
+
test/**/Gemfile.lock
|
14
|
+
*.iml
|
15
|
+
*.sqlite3
|
data/.rubocop.yml
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
inherit_from: .rubocop_todo.yml
|
2
|
-
|
3
|
-
Style/ClassCheck:
|
4
|
-
Exclude:
|
5
|
-
- 'lib/trailblazer/rails/cell.rb'
|
6
|
-
|
7
|
-
Metrics/AbcSize:
|
8
|
-
Exclude:
|
9
|
-
- 'lib/trailblazer/rails/controller.rb'
|
1
|
+
inherit_from: .rubocop_todo.yml
|
2
|
+
|
3
|
+
Style/ClassCheck:
|
4
|
+
Exclude:
|
5
|
+
- 'lib/trailblazer/rails/cell.rb'
|
6
|
+
|
7
|
+
Metrics/AbcSize:
|
8
|
+
Exclude:
|
9
|
+
- 'lib/trailblazer/rails/controller.rb'
|
data/.rubocop_todo.yml
CHANGED
@@ -1,294 +1,294 @@
|
|
1
|
-
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config`
|
3
|
-
# on 2018-04-05 15:17:59 +0800 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: 9
|
10
|
-
# Cop supports --auto-correct.
|
11
|
-
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
|
12
|
-
# Include: **/Gemfile, **/gems.rb
|
13
|
-
Bundler/OrderedGems:
|
14
|
-
Exclude:
|
15
|
-
- 'test/rails5.0/Gemfile'
|
16
|
-
- 'test/rails5.1/Gemfile'
|
17
|
-
- 'test/rails5.2/Gemfile'
|
18
|
-
|
19
|
-
# Offense count: 2
|
20
|
-
# Cop supports --auto-correct.
|
21
|
-
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
|
22
|
-
# Include: **/*.gemspec
|
23
|
-
Gemspec/OrderedDependencies:
|
24
|
-
Exclude:
|
25
|
-
- 'trailblazer-rails.gemspec'
|
26
|
-
|
27
|
-
# Offense count: 2
|
28
|
-
# Cop supports --auto-correct.
|
29
|
-
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
30
|
-
# SupportedStyles: outdent, indent
|
31
|
-
Layout/AccessModifierIndentation:
|
32
|
-
Exclude:
|
33
|
-
- 'lib/trailblazer/rails/controller.rb'
|
34
|
-
- 'test/rails5.0/app/controllers/params_controller.rb'
|
35
|
-
|
36
|
-
# Offense count: 5
|
37
|
-
# Cop supports --auto-correct.
|
38
|
-
Layout/EmptyLines:
|
39
|
-
Exclude:
|
40
|
-
- 'test/rails5.2/Gemfile'
|
41
|
-
- 'test/test_helper.rb'
|
42
|
-
|
43
|
-
# Offense count: 4
|
44
|
-
# Cop supports --auto-correct.
|
45
|
-
Layout/EmptyLinesAroundAccessModifier:
|
46
|
-
Exclude:
|
47
|
-
- 'lib/trailblazer/rails/controller.rb'
|
48
|
-
- 'test/rails5.0/app/controllers/params_controller.rb'
|
49
|
-
- 'test/rails5.1/app/controllers/params_controller.rb'
|
50
|
-
- 'test/rails5.2/app/controllers/params_controller.rb'
|
51
|
-
|
52
|
-
# Offense count: 9
|
53
|
-
# Cop supports --auto-correct.
|
54
|
-
# Configuration parameters: EnforcedStyle.
|
55
|
-
# SupportedStyles: empty_lines, no_empty_lines
|
56
|
-
Layout/EmptyLinesAroundBlockBody:
|
57
|
-
Exclude:
|
58
|
-
- 'test/rails5.0/config/routes.rb'
|
59
|
-
- 'test/rails5.0/db/schema.rb'
|
60
|
-
- 'test/rails5.1/config/routes.rb'
|
61
|
-
- 'test/rails5.1/db/schema.rb'
|
62
|
-
- 'test/rails5.2/config/routes.rb'
|
63
|
-
- 'test/rails5.2/db/schema.rb'
|
64
|
-
|
65
|
-
# Offense count: 3
|
66
|
-
# Cop supports --auto-correct.
|
67
|
-
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
|
68
|
-
Layout/ExtraSpacing:
|
69
|
-
Exclude:
|
70
|
-
- 'test/rails5.0/bin/setup'
|
71
|
-
- 'test/rails5.1/bin/setup'
|
72
|
-
- 'test/rails5.2/bin/setup'
|
73
|
-
|
74
|
-
# Offense count: 2
|
75
|
-
# Cop supports --auto-correct.
|
76
|
-
# Configuration parameters: EnforcedStyle.
|
77
|
-
# SupportedStyles: normal, rails
|
78
|
-
Layout/IndentationConsistency:
|
79
|
-
Exclude:
|
80
|
-
- 'test/rails5.1/app/controllers/params_controller.rb'
|
81
|
-
- 'test/rails5.2/app/controllers/params_controller.rb'
|
82
|
-
|
83
|
-
# Offense count: 3
|
84
|
-
# Cop supports --auto-correct.
|
85
|
-
Layout/LeadingCommentSpace:
|
86
|
-
Exclude:
|
87
|
-
- 'test/rails5.0/Gemfile'
|
88
|
-
- 'test/rails5.1/Gemfile'
|
89
|
-
- 'test/rails5.2/Gemfile'
|
90
|
-
|
91
|
-
# Offense count: 2
|
92
|
-
# Cop supports --auto-correct.
|
93
|
-
Layout/SpaceAfterColon:
|
94
|
-
Exclude:
|
95
|
-
- 'test/rails5.1/app/controllers/args_controller.rb'
|
96
|
-
- 'test/rails5.2/app/controllers/args_controller.rb'
|
97
|
-
|
98
|
-
# Offense count: 3
|
99
|
-
# Cop supports --auto-correct.
|
100
|
-
Layout/SpaceBeforeComment:
|
101
|
-
Exclude:
|
102
|
-
- 'test/rails5.0/Gemfile'
|
103
|
-
- 'test/rails5.1/Gemfile'
|
104
|
-
- 'test/rails5.2/Gemfile'
|
105
|
-
|
106
|
-
# Offense count: 6
|
107
|
-
# Cop supports --auto-correct.
|
108
|
-
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
109
|
-
# SupportedStyles: space, no_space
|
110
|
-
# SupportedStylesForEmptyBraces: space, no_space
|
111
|
-
Layout/SpaceInsideBlockBraces:
|
112
|
-
Exclude:
|
113
|
-
- 'test/rails5.0/app/concepts/params/operation/with_args.rb'
|
114
|
-
- 'test/rails5.1/app/concepts/params/operation/with_args.rb'
|
115
|
-
- 'test/rails5.2/app/concepts/params/operation/with_args.rb'
|
116
|
-
|
117
|
-
# Offense count: 51
|
118
|
-
# Cop supports --auto-correct.
|
119
|
-
Layout/SpaceInsideParens:
|
120
|
-
Exclude:
|
121
|
-
- 'test/rails5.0/app/concepts/song/operation/create.rb'
|
122
|
-
- 'test/rails5.0/app/concepts/song/operation/show.rb'
|
123
|
-
- 'test/rails5.0/app/controllers/artists_controller.rb'
|
124
|
-
- 'test/rails5.0/app/controllers/params_controller.rb'
|
125
|
-
- 'test/rails5.1/app/concepts/song/operation/create.rb'
|
126
|
-
- 'test/rails5.1/app/concepts/song/operation/show.rb'
|
127
|
-
- 'test/rails5.1/app/controllers/artists_controller.rb'
|
128
|
-
- 'test/rails5.1/app/controllers/params_controller.rb'
|
129
|
-
- 'test/rails5.2/app/concepts/song/operation/create.rb'
|
130
|
-
- 'test/rails5.2/app/concepts/song/operation/show.rb'
|
131
|
-
- 'test/rails5.2/app/controllers/artists_controller.rb'
|
132
|
-
- 'test/rails5.2/app/controllers/params_controller.rb'
|
133
|
-
|
134
|
-
# Offense count: 3
|
135
|
-
# Cop supports --auto-correct.
|
136
|
-
# Configuration parameters: EnforcedStyle.
|
137
|
-
# SupportedStyles: space, no_space
|
138
|
-
Layout/SpaceInsideStringInterpolation:
|
139
|
-
Exclude:
|
140
|
-
- 'test/rails5.0/app/concepts/params/operation/with_args.rb'
|
141
|
-
- 'test/rails5.1/app/concepts/params/operation/with_args.rb'
|
142
|
-
- 'test/rails5.2/app/concepts/params/operation/with_args.rb'
|
143
|
-
|
144
|
-
# Offense count: 1
|
145
|
-
# Cop supports --auto-correct.
|
146
|
-
Lint/DeprecatedClassMethods:
|
147
|
-
Exclude:
|
148
|
-
- 'test/test_helper.rb'
|
149
|
-
|
150
|
-
# Offense count: 1
|
151
|
-
Lint/ParenthesesAsGroupedExpression:
|
152
|
-
Exclude:
|
153
|
-
- 'test/test_helper.rb'
|
154
|
-
|
155
|
-
# Offense count: 1
|
156
|
-
# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
|
157
|
-
Lint/UselessAccessModifier:
|
158
|
-
Exclude:
|
159
|
-
- 'lib/trailblazer/rails/cell.rb'
|
160
|
-
|
161
|
-
# Offense count: 1
|
162
|
-
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
|
163
|
-
# 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
|
164
|
-
Naming/FileName:
|
165
|
-
Exclude:
|
166
|
-
- 'lib/trailblazer-rails.rb'
|
167
|
-
|
168
|
-
# Offense count: 3
|
169
|
-
# Cop supports --auto-correct.
|
170
|
-
# Configuration parameters: EnforcedStyle.
|
171
|
-
# SupportedStyles: braces, no_braces, context_dependent
|
172
|
-
Style/BracesAroundHashParameters:
|
173
|
-
Exclude:
|
174
|
-
- 'test/rails5.0/app/controllers/args_controller.rb'
|
175
|
-
- 'test/rails5.1/app/controllers/args_controller.rb'
|
176
|
-
- 'test/rails5.2/app/controllers/args_controller.rb'
|
177
|
-
|
178
|
-
# Offense count: 23
|
179
|
-
# Configuration parameters: EnforcedStyle.
|
180
|
-
# SupportedStyles: nested, compact
|
181
|
-
Style/ClassAndModuleChildren:
|
182
|
-
Enabled: false
|
183
|
-
|
184
|
-
# Offense count: 1
|
185
|
-
# Cop supports --auto-correct.
|
186
|
-
Style/ColonMethodCall:
|
187
|
-
Exclude:
|
188
|
-
- 'test/test_helper.rb'
|
189
|
-
|
190
|
-
# Offense count: 10
|
191
|
-
Style/Documentation:
|
192
|
-
Exclude:
|
193
|
-
- 'spec/**/*'
|
194
|
-
- 'test/**/*'
|
195
|
-
- 'lib/trailblazer/operation/responder.rb'
|
196
|
-
- 'lib/trailblazer/rails.rb'
|
197
|
-
- 'lib/trailblazer/rails/cell.rb'
|
198
|
-
- 'lib/trailblazer/rails/controller.rb'
|
199
|
-
- 'lib/trailblazer/rails/form.rb'
|
200
|
-
- 'lib/trailblazer/rails/railtie.rb'
|
201
|
-
|
202
|
-
# Offense count: 134
|
203
|
-
# Cop supports --auto-correct.
|
204
|
-
# Configuration parameters: EnforcedStyle.
|
205
|
-
# SupportedStyles: when_needed, always, never
|
206
|
-
Style/FrozenStringLiteralComment:
|
207
|
-
Enabled: false
|
208
|
-
|
209
|
-
# Offense count: 7
|
210
|
-
# Cop supports --auto-correct.
|
211
|
-
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
212
|
-
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
213
|
-
Style/HashSyntax:
|
214
|
-
Exclude:
|
215
|
-
- 'Rakefile'
|
216
|
-
- 'test/rails5.0/app/controllers/args_controller.rb'
|
217
|
-
- 'test/rails5.0/app/controllers/params_controller.rb'
|
218
|
-
- 'test/rails5.1/app/controllers/args_controller.rb'
|
219
|
-
- 'test/rails5.1/app/controllers/params_controller.rb'
|
220
|
-
- 'test/rails5.2/app/controllers/args_controller.rb'
|
221
|
-
- 'test/rails5.2/app/controllers/params_controller.rb'
|
222
|
-
|
223
|
-
# Offense count: 2
|
224
|
-
# Cop supports --auto-correct.
|
225
|
-
# Configuration parameters: EnforcedStyle.
|
226
|
-
# SupportedStyles: line_count_dependent, lambda, literal
|
227
|
-
Style/Lambda:
|
228
|
-
Exclude:
|
229
|
-
- 'lib/trailblazer/rails/railtie.rb'
|
230
|
-
|
231
|
-
# Offense count: 6
|
232
|
-
# Cop supports --auto-correct.
|
233
|
-
# Configuration parameters: .
|
234
|
-
# SupportedStyles: call, braces
|
235
|
-
Style/LambdaCall:
|
236
|
-
EnforcedStyle: braces
|
237
|
-
|
238
|
-
# Offense count: 1
|
239
|
-
# Cop supports --auto-correct.
|
240
|
-
Style/MutableConstant:
|
241
|
-
Exclude:
|
242
|
-
- 'lib/trailblazer/rails/version.rb'
|
243
|
-
|
244
|
-
# Offense count: 3
|
245
|
-
# Cop supports --auto-correct.
|
246
|
-
# Configuration parameters: Strict.
|
247
|
-
Style/NumericLiterals:
|
248
|
-
MinDigits: 15
|
249
|
-
|
250
|
-
# Offense count: 10
|
251
|
-
# Cop supports --auto-correct.
|
252
|
-
# Configuration parameters: PreferredDelimiters.
|
253
|
-
Style/PercentLiteralDelimiters:
|
254
|
-
Exclude:
|
255
|
-
- 'test/rails5.0/app/concepts/params/operation/with_args.rb'
|
256
|
-
- 'test/rails5.0/test/integration/artists_controller_test.rb'
|
257
|
-
- 'test/rails5.1/app/concepts/params/operation/with_args.rb'
|
258
|
-
- 'test/rails5.1/test/integration/artists_controller_test.rb'
|
259
|
-
- 'test/rails5.2/app/concepts/params/operation/with_args.rb'
|
260
|
-
- 'test/rails5.2/test/integration/artists_controller_test.rb'
|
261
|
-
- 'trailblazer-rails.gemspec'
|
262
|
-
|
263
|
-
# Offense count: 2
|
264
|
-
# Cop supports --auto-correct.
|
265
|
-
Style/RedundantSelf:
|
266
|
-
Exclude:
|
267
|
-
- 'lib/trailblazer/rails/controller.rb'
|
268
|
-
|
269
|
-
# Offense count: 279
|
270
|
-
# Cop supports --auto-correct.
|
271
|
-
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
272
|
-
# SupportedStyles: single_quotes, double_quotes
|
273
|
-
Style/StringLiterals:
|
274
|
-
Enabled: false
|
275
|
-
|
276
|
-
# Offense count: 1
|
277
|
-
# Cop supports --auto-correct.
|
278
|
-
# Configuration parameters: IgnoredMethods.
|
279
|
-
# IgnoredMethods: respond_to, define_method
|
280
|
-
Style/SymbolProc:
|
281
|
-
Exclude:
|
282
|
-
- 'lib/trailblazer/rails/railtie.rb'
|
283
|
-
|
284
|
-
# Offense count: 1
|
285
|
-
# Cop supports --auto-correct.
|
286
|
-
Style/UnneededPercentQ:
|
287
|
-
Exclude:
|
288
|
-
- 'trailblazer-rails.gemspec'
|
289
|
-
|
290
|
-
# Offense count: 66
|
291
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
292
|
-
# URISchemes: http, https
|
293
|
-
Metrics/LineLength:
|
294
|
-
Max: 127
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2018-04-05 15:17:59 +0800 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: 9
|
10
|
+
# Cop supports --auto-correct.
|
11
|
+
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
|
12
|
+
# Include: **/Gemfile, **/gems.rb
|
13
|
+
Bundler/OrderedGems:
|
14
|
+
Exclude:
|
15
|
+
- 'test/rails5.0/Gemfile'
|
16
|
+
- 'test/rails5.1/Gemfile'
|
17
|
+
- 'test/rails5.2/Gemfile'
|
18
|
+
|
19
|
+
# Offense count: 2
|
20
|
+
# Cop supports --auto-correct.
|
21
|
+
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
|
22
|
+
# Include: **/*.gemspec
|
23
|
+
Gemspec/OrderedDependencies:
|
24
|
+
Exclude:
|
25
|
+
- 'trailblazer-rails.gemspec'
|
26
|
+
|
27
|
+
# Offense count: 2
|
28
|
+
# Cop supports --auto-correct.
|
29
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
30
|
+
# SupportedStyles: outdent, indent
|
31
|
+
Layout/AccessModifierIndentation:
|
32
|
+
Exclude:
|
33
|
+
- 'lib/trailblazer/rails/controller.rb'
|
34
|
+
- 'test/rails5.0/app/controllers/params_controller.rb'
|
35
|
+
|
36
|
+
# Offense count: 5
|
37
|
+
# Cop supports --auto-correct.
|
38
|
+
Layout/EmptyLines:
|
39
|
+
Exclude:
|
40
|
+
- 'test/rails5.2/Gemfile'
|
41
|
+
- 'test/test_helper.rb'
|
42
|
+
|
43
|
+
# Offense count: 4
|
44
|
+
# Cop supports --auto-correct.
|
45
|
+
Layout/EmptyLinesAroundAccessModifier:
|
46
|
+
Exclude:
|
47
|
+
- 'lib/trailblazer/rails/controller.rb'
|
48
|
+
- 'test/rails5.0/app/controllers/params_controller.rb'
|
49
|
+
- 'test/rails5.1/app/controllers/params_controller.rb'
|
50
|
+
- 'test/rails5.2/app/controllers/params_controller.rb'
|
51
|
+
|
52
|
+
# Offense count: 9
|
53
|
+
# Cop supports --auto-correct.
|
54
|
+
# Configuration parameters: EnforcedStyle.
|
55
|
+
# SupportedStyles: empty_lines, no_empty_lines
|
56
|
+
Layout/EmptyLinesAroundBlockBody:
|
57
|
+
Exclude:
|
58
|
+
- 'test/rails5.0/config/routes.rb'
|
59
|
+
- 'test/rails5.0/db/schema.rb'
|
60
|
+
- 'test/rails5.1/config/routes.rb'
|
61
|
+
- 'test/rails5.1/db/schema.rb'
|
62
|
+
- 'test/rails5.2/config/routes.rb'
|
63
|
+
- 'test/rails5.2/db/schema.rb'
|
64
|
+
|
65
|
+
# Offense count: 3
|
66
|
+
# Cop supports --auto-correct.
|
67
|
+
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
|
68
|
+
Layout/ExtraSpacing:
|
69
|
+
Exclude:
|
70
|
+
- 'test/rails5.0/bin/setup'
|
71
|
+
- 'test/rails5.1/bin/setup'
|
72
|
+
- 'test/rails5.2/bin/setup'
|
73
|
+
|
74
|
+
# Offense count: 2
|
75
|
+
# Cop supports --auto-correct.
|
76
|
+
# Configuration parameters: EnforcedStyle.
|
77
|
+
# SupportedStyles: normal, rails
|
78
|
+
Layout/IndentationConsistency:
|
79
|
+
Exclude:
|
80
|
+
- 'test/rails5.1/app/controllers/params_controller.rb'
|
81
|
+
- 'test/rails5.2/app/controllers/params_controller.rb'
|
82
|
+
|
83
|
+
# Offense count: 3
|
84
|
+
# Cop supports --auto-correct.
|
85
|
+
Layout/LeadingCommentSpace:
|
86
|
+
Exclude:
|
87
|
+
- 'test/rails5.0/Gemfile'
|
88
|
+
- 'test/rails5.1/Gemfile'
|
89
|
+
- 'test/rails5.2/Gemfile'
|
90
|
+
|
91
|
+
# Offense count: 2
|
92
|
+
# Cop supports --auto-correct.
|
93
|
+
Layout/SpaceAfterColon:
|
94
|
+
Exclude:
|
95
|
+
- 'test/rails5.1/app/controllers/args_controller.rb'
|
96
|
+
- 'test/rails5.2/app/controllers/args_controller.rb'
|
97
|
+
|
98
|
+
# Offense count: 3
|
99
|
+
# Cop supports --auto-correct.
|
100
|
+
Layout/SpaceBeforeComment:
|
101
|
+
Exclude:
|
102
|
+
- 'test/rails5.0/Gemfile'
|
103
|
+
- 'test/rails5.1/Gemfile'
|
104
|
+
- 'test/rails5.2/Gemfile'
|
105
|
+
|
106
|
+
# Offense count: 6
|
107
|
+
# Cop supports --auto-correct.
|
108
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
109
|
+
# SupportedStyles: space, no_space
|
110
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
111
|
+
Layout/SpaceInsideBlockBraces:
|
112
|
+
Exclude:
|
113
|
+
- 'test/rails5.0/app/concepts/params/operation/with_args.rb'
|
114
|
+
- 'test/rails5.1/app/concepts/params/operation/with_args.rb'
|
115
|
+
- 'test/rails5.2/app/concepts/params/operation/with_args.rb'
|
116
|
+
|
117
|
+
# Offense count: 51
|
118
|
+
# Cop supports --auto-correct.
|
119
|
+
Layout/SpaceInsideParens:
|
120
|
+
Exclude:
|
121
|
+
- 'test/rails5.0/app/concepts/song/operation/create.rb'
|
122
|
+
- 'test/rails5.0/app/concepts/song/operation/show.rb'
|
123
|
+
- 'test/rails5.0/app/controllers/artists_controller.rb'
|
124
|
+
- 'test/rails5.0/app/controllers/params_controller.rb'
|
125
|
+
- 'test/rails5.1/app/concepts/song/operation/create.rb'
|
126
|
+
- 'test/rails5.1/app/concepts/song/operation/show.rb'
|
127
|
+
- 'test/rails5.1/app/controllers/artists_controller.rb'
|
128
|
+
- 'test/rails5.1/app/controllers/params_controller.rb'
|
129
|
+
- 'test/rails5.2/app/concepts/song/operation/create.rb'
|
130
|
+
- 'test/rails5.2/app/concepts/song/operation/show.rb'
|
131
|
+
- 'test/rails5.2/app/controllers/artists_controller.rb'
|
132
|
+
- 'test/rails5.2/app/controllers/params_controller.rb'
|
133
|
+
|
134
|
+
# Offense count: 3
|
135
|
+
# Cop supports --auto-correct.
|
136
|
+
# Configuration parameters: EnforcedStyle.
|
137
|
+
# SupportedStyles: space, no_space
|
138
|
+
Layout/SpaceInsideStringInterpolation:
|
139
|
+
Exclude:
|
140
|
+
- 'test/rails5.0/app/concepts/params/operation/with_args.rb'
|
141
|
+
- 'test/rails5.1/app/concepts/params/operation/with_args.rb'
|
142
|
+
- 'test/rails5.2/app/concepts/params/operation/with_args.rb'
|
143
|
+
|
144
|
+
# Offense count: 1
|
145
|
+
# Cop supports --auto-correct.
|
146
|
+
Lint/DeprecatedClassMethods:
|
147
|
+
Exclude:
|
148
|
+
- 'test/test_helper.rb'
|
149
|
+
|
150
|
+
# Offense count: 1
|
151
|
+
Lint/ParenthesesAsGroupedExpression:
|
152
|
+
Exclude:
|
153
|
+
- 'test/test_helper.rb'
|
154
|
+
|
155
|
+
# Offense count: 1
|
156
|
+
# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
|
157
|
+
Lint/UselessAccessModifier:
|
158
|
+
Exclude:
|
159
|
+
- 'lib/trailblazer/rails/cell.rb'
|
160
|
+
|
161
|
+
# Offense count: 1
|
162
|
+
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
|
163
|
+
# 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
|
164
|
+
Naming/FileName:
|
165
|
+
Exclude:
|
166
|
+
- 'lib/trailblazer-rails.rb'
|
167
|
+
|
168
|
+
# Offense count: 3
|
169
|
+
# Cop supports --auto-correct.
|
170
|
+
# Configuration parameters: EnforcedStyle.
|
171
|
+
# SupportedStyles: braces, no_braces, context_dependent
|
172
|
+
Style/BracesAroundHashParameters:
|
173
|
+
Exclude:
|
174
|
+
- 'test/rails5.0/app/controllers/args_controller.rb'
|
175
|
+
- 'test/rails5.1/app/controllers/args_controller.rb'
|
176
|
+
- 'test/rails5.2/app/controllers/args_controller.rb'
|
177
|
+
|
178
|
+
# Offense count: 23
|
179
|
+
# Configuration parameters: EnforcedStyle.
|
180
|
+
# SupportedStyles: nested, compact
|
181
|
+
Style/ClassAndModuleChildren:
|
182
|
+
Enabled: false
|
183
|
+
|
184
|
+
# Offense count: 1
|
185
|
+
# Cop supports --auto-correct.
|
186
|
+
Style/ColonMethodCall:
|
187
|
+
Exclude:
|
188
|
+
- 'test/test_helper.rb'
|
189
|
+
|
190
|
+
# Offense count: 10
|
191
|
+
Style/Documentation:
|
192
|
+
Exclude:
|
193
|
+
- 'spec/**/*'
|
194
|
+
- 'test/**/*'
|
195
|
+
- 'lib/trailblazer/operation/responder.rb'
|
196
|
+
- 'lib/trailblazer/rails.rb'
|
197
|
+
- 'lib/trailblazer/rails/cell.rb'
|
198
|
+
- 'lib/trailblazer/rails/controller.rb'
|
199
|
+
- 'lib/trailblazer/rails/form.rb'
|
200
|
+
- 'lib/trailblazer/rails/railtie.rb'
|
201
|
+
|
202
|
+
# Offense count: 134
|
203
|
+
# Cop supports --auto-correct.
|
204
|
+
# Configuration parameters: EnforcedStyle.
|
205
|
+
# SupportedStyles: when_needed, always, never
|
206
|
+
Style/FrozenStringLiteralComment:
|
207
|
+
Enabled: false
|
208
|
+
|
209
|
+
# Offense count: 7
|
210
|
+
# Cop supports --auto-correct.
|
211
|
+
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
212
|
+
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
213
|
+
Style/HashSyntax:
|
214
|
+
Exclude:
|
215
|
+
- 'Rakefile'
|
216
|
+
- 'test/rails5.0/app/controllers/args_controller.rb'
|
217
|
+
- 'test/rails5.0/app/controllers/params_controller.rb'
|
218
|
+
- 'test/rails5.1/app/controllers/args_controller.rb'
|
219
|
+
- 'test/rails5.1/app/controllers/params_controller.rb'
|
220
|
+
- 'test/rails5.2/app/controllers/args_controller.rb'
|
221
|
+
- 'test/rails5.2/app/controllers/params_controller.rb'
|
222
|
+
|
223
|
+
# Offense count: 2
|
224
|
+
# Cop supports --auto-correct.
|
225
|
+
# Configuration parameters: EnforcedStyle.
|
226
|
+
# SupportedStyles: line_count_dependent, lambda, literal
|
227
|
+
Style/Lambda:
|
228
|
+
Exclude:
|
229
|
+
- 'lib/trailblazer/rails/railtie.rb'
|
230
|
+
|
231
|
+
# Offense count: 6
|
232
|
+
# Cop supports --auto-correct.
|
233
|
+
# Configuration parameters: .
|
234
|
+
# SupportedStyles: call, braces
|
235
|
+
Style/LambdaCall:
|
236
|
+
EnforcedStyle: braces
|
237
|
+
|
238
|
+
# Offense count: 1
|
239
|
+
# Cop supports --auto-correct.
|
240
|
+
Style/MutableConstant:
|
241
|
+
Exclude:
|
242
|
+
- 'lib/trailblazer/rails/version.rb'
|
243
|
+
|
244
|
+
# Offense count: 3
|
245
|
+
# Cop supports --auto-correct.
|
246
|
+
# Configuration parameters: Strict.
|
247
|
+
Style/NumericLiterals:
|
248
|
+
MinDigits: 15
|
249
|
+
|
250
|
+
# Offense count: 10
|
251
|
+
# Cop supports --auto-correct.
|
252
|
+
# Configuration parameters: PreferredDelimiters.
|
253
|
+
Style/PercentLiteralDelimiters:
|
254
|
+
Exclude:
|
255
|
+
- 'test/rails5.0/app/concepts/params/operation/with_args.rb'
|
256
|
+
- 'test/rails5.0/test/integration/artists_controller_test.rb'
|
257
|
+
- 'test/rails5.1/app/concepts/params/operation/with_args.rb'
|
258
|
+
- 'test/rails5.1/test/integration/artists_controller_test.rb'
|
259
|
+
- 'test/rails5.2/app/concepts/params/operation/with_args.rb'
|
260
|
+
- 'test/rails5.2/test/integration/artists_controller_test.rb'
|
261
|
+
- 'trailblazer-rails.gemspec'
|
262
|
+
|
263
|
+
# Offense count: 2
|
264
|
+
# Cop supports --auto-correct.
|
265
|
+
Style/RedundantSelf:
|
266
|
+
Exclude:
|
267
|
+
- 'lib/trailblazer/rails/controller.rb'
|
268
|
+
|
269
|
+
# Offense count: 279
|
270
|
+
# Cop supports --auto-correct.
|
271
|
+
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
272
|
+
# SupportedStyles: single_quotes, double_quotes
|
273
|
+
Style/StringLiterals:
|
274
|
+
Enabled: false
|
275
|
+
|
276
|
+
# Offense count: 1
|
277
|
+
# Cop supports --auto-correct.
|
278
|
+
# Configuration parameters: IgnoredMethods.
|
279
|
+
# IgnoredMethods: respond_to, define_method
|
280
|
+
Style/SymbolProc:
|
281
|
+
Exclude:
|
282
|
+
- 'lib/trailblazer/rails/railtie.rb'
|
283
|
+
|
284
|
+
# Offense count: 1
|
285
|
+
# Cop supports --auto-correct.
|
286
|
+
Style/UnneededPercentQ:
|
287
|
+
Exclude:
|
288
|
+
- 'trailblazer-rails.gemspec'
|
289
|
+
|
290
|
+
# Offense count: 66
|
291
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
292
|
+
# URISchemes: http, https
|
293
|
+
Metrics/LineLength:
|
294
|
+
Max: 127
|