comma 4.2.0 → 4.3.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 +4 -4
- data/.rubocop.yml +10 -1
- data/.rubocop_todo.yml +3 -364
- data/.travis.yml +36 -55
- data/Appraisals +14 -1
- data/Gemfile +2 -0
- data/Gemfile.lock +19 -16
- data/README.md +2 -2
- data/Rakefile +2 -0
- data/comma.gemspec +13 -11
- data/gemfiles/{active4.1.16.gemfile → active4.2.11.1.gemfile} +2 -2
- data/gemfiles/{active4.2.8.gemfile.lock → active4.2.11.1.gemfile.lock} +43 -38
- data/gemfiles/{active4.0.13.gemfile → active5.0.7.2.gemfile} +2 -2
- data/gemfiles/{active5.0.1.gemfile.lock → active5.0.7.2.gemfile.lock} +44 -40
- data/gemfiles/{active5.1.0.gemfile → active5.1.7.gemfile} +2 -2
- data/gemfiles/{active5.1.0.gemfile.lock → active5.1.7.gemfile.lock} +44 -40
- data/gemfiles/{active4.2.8.gemfile → active5.2.3.gemfile} +2 -2
- data/gemfiles/active5.2.3.gemfile.lock +108 -0
- data/gemfiles/{active5.0.1.gemfile → active6.0.0.gemfile} +2 -2
- data/gemfiles/{active5.2.0.gemfile.lock → active6.0.0.gemfile.lock} +31 -29
- data/gemfiles/{rails4.1.16.gemfile → rails4.2.11.1.gemfile} +1 -1
- data/gemfiles/{rails4.2.8.gemfile.lock → rails4.2.11.1.gemfile.lock} +84 -80
- data/gemfiles/{rails4.0.13.gemfile → rails5.0.7.2.gemfile} +1 -1
- data/gemfiles/rails5.0.7.2.gemfile.lock +198 -0
- data/gemfiles/{rails5.1.0.gemfile → rails5.1.7.gemfile} +1 -1
- data/gemfiles/rails5.1.7.gemfile.lock +198 -0
- data/gemfiles/{rails5.2.0.gemfile → rails5.2.3.gemfile} +1 -1
- data/gemfiles/{rails5.2.0.gemfile.lock → rails5.2.3.gemfile.lock} +82 -80
- data/gemfiles/{rails4.2.8.gemfile → rails6.0.0.gemfile} +1 -1
- data/gemfiles/rails6.0.0.gemfile.lock +237 -0
- data/init.rb +2 -0
- data/lib/comma.rb +23 -33
- data/lib/comma/array.rb +2 -0
- data/lib/comma/data_extractor.rb +5 -5
- data/lib/comma/data_mapper_collection.rb +9 -3
- data/lib/comma/extractor.rb +3 -5
- data/lib/comma/generator.rb +11 -11
- data/lib/comma/header_extractor.rb +18 -14
- data/lib/comma/mongoid.rb +10 -7
- data/lib/comma/object.rb +5 -1
- data/lib/comma/relation.rb +16 -10
- data/lib/comma/version.rb +3 -1
- data/spec/comma/comma_spec.rb +68 -47
- data/spec/comma/data_extractor_spec.rb +6 -10
- data/spec/comma/header_extractor_spec.rb +2 -8
- data/spec/comma/rails/active_record_spec.rb +28 -26
- data/spec/comma/rails/data_mapper_collection_spec.rb +4 -3
- data/spec/comma/rails/mongoid_spec.rb +8 -7
- data/spec/controllers/users_controller_spec.rb +48 -47
- data/spec/non_rails_app/ruby_classes.rb +13 -6
- data/spec/rails_app/active_record/config.rb +3 -1
- data/spec/rails_app/active_record/models.rb +4 -2
- data/spec/rails_app/data_mapper/config.rb +2 -0
- data/spec/rails_app/mongoid/config.rb +4 -2
- data/spec/rails_app/rails_app.rb +12 -11
- data/spec/rails_app/tmp/.gitkeep +0 -0
- data/spec/spec_helper.rb +7 -3
- metadata +27 -30
- data/gemfiles/active4.0.13.gemfile.lock +0 -107
- data/gemfiles/active4.1.16.gemfile.lock +0 -106
- data/gemfiles/active5.2.0.gemfile +0 -10
- data/gemfiles/rails4.0.13.gemfile.lock +0 -158
- data/gemfiles/rails4.1.16.gemfile.lock +0 -162
- data/gemfiles/rails5.0.1.gemfile +0 -11
- data/gemfiles/rails5.0.1.gemfile.lock +0 -194
- data/gemfiles/rails5.1.0.gemfile.lock +0 -194
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cf7285c1a29ce4bdcded81d2b665722fd3ccec1ac004b5e9876d2e2b3850c5d
|
4
|
+
data.tar.gz: df207352976ad2a0dadd2c6dc8f863089eeb285701261dd4e636818fd904a0ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71ca924db46f66ac2f79ba17c21045369845668c3b804ea0e7c2c04d3f803b921727d70c52c60c6896398574be6a726cacf57a1be3e7905dc556899b57bda825
|
7
|
+
data.tar.gz: f8d5063d39e18e8c6231654a6b3215b1d19dabbb75bd3d924f7c9e7dfb59dd91149b2b076e91acee39756b92367053324cdd4907f3d5818ee55f99984ecb0233
|
data/.rubocop.yml
CHANGED
@@ -2,9 +2,18 @@ inherit_from: .rubocop_todo.yml
|
|
2
2
|
|
3
3
|
AllCops:
|
4
4
|
DisplayCopNames: true
|
5
|
+
TargetRubyVersion: 2.3
|
5
6
|
Exclude:
|
6
7
|
- 'gemfiles/**/*'
|
7
8
|
|
8
|
-
|
9
|
+
Metrics/LineLength:
|
10
|
+
IgnoreCopDirectives: true
|
11
|
+
Max: 120
|
12
|
+
|
13
|
+
Naming/FileName:
|
9
14
|
Exclude:
|
10
15
|
- 'Appraisals'
|
16
|
+
|
17
|
+
Naming/VariableNumber:
|
18
|
+
EnforcedStyle: snake_case
|
19
|
+
|
data/.rubocop_todo.yml
CHANGED
@@ -6,83 +6,15 @@
|
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
8
|
|
9
|
-
# Offense count: 1
|
10
|
-
Lint/AmbiguousOperator:
|
11
|
-
Exclude:
|
12
|
-
- 'lib/comma/extractor.rb'
|
13
|
-
|
14
|
-
# Offense count: 1
|
15
|
-
# Cop supports --auto-correct.
|
16
|
-
# Configuration parameters: AlignWith, SupportedStyles, AutoCorrect.
|
17
|
-
# SupportedStyles: keyword, variable, start_of_line
|
18
|
-
Lint/EndAlignment:
|
19
|
-
Exclude:
|
20
|
-
- 'lib/comma.rb'
|
21
|
-
|
22
|
-
# Offense count: 3
|
23
|
-
Lint/HandleExceptions:
|
24
|
-
Exclude:
|
25
|
-
- 'lib/comma/mongoid.rb'
|
26
|
-
- 'spec/spec_helper.rb'
|
27
|
-
|
28
|
-
# Offense count: 1
|
29
|
-
# Cop supports --auto-correct.
|
30
|
-
Lint/UnneededSplatExpansion:
|
31
|
-
Exclude:
|
32
|
-
- 'spec/spec_helper.rb'
|
33
|
-
|
34
|
-
# Offense count: 5
|
35
|
-
# Cop supports --auto-correct.
|
36
|
-
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
37
|
-
Lint/UnusedBlockArgument:
|
38
|
-
Exclude:
|
39
|
-
- 'lib/comma/data_extractor.rb'
|
40
|
-
- 'lib/comma/header_extractor.rb'
|
41
|
-
- 'spec/comma/data_extractor_spec.rb'
|
42
|
-
|
43
|
-
# Offense count: 6
|
44
|
-
# Cop supports --auto-correct.
|
45
|
-
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
|
46
|
-
Lint/UnusedMethodArgument:
|
47
|
-
Exclude:
|
48
|
-
- 'lib/comma/data_extractor.rb'
|
49
|
-
- 'lib/comma/header_extractor.rb'
|
50
|
-
|
51
|
-
# Offense count: 5
|
52
|
-
Lint/UselessAssignment:
|
53
|
-
Exclude:
|
54
|
-
- 'lib/comma.rb'
|
55
|
-
- 'spec/comma/comma_spec.rb'
|
56
|
-
|
57
|
-
# Offense count: 19
|
58
|
-
Lint/Void:
|
59
|
-
Exclude:
|
60
|
-
- 'spec/controllers/users_controller_spec.rb'
|
61
|
-
|
62
9
|
# Offense count: 2
|
63
10
|
Metrics/AbcSize:
|
64
11
|
Max: 21
|
65
12
|
|
66
|
-
# Offense count: 80
|
67
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
|
68
|
-
# URISchemes: http, https
|
69
|
-
Metrics/LineLength:
|
70
|
-
Max: 223
|
71
|
-
|
72
13
|
# Offense count: 3
|
73
14
|
# Configuration parameters: CountComments.
|
74
15
|
Metrics/MethodLength:
|
75
16
|
Max: 17
|
76
17
|
|
77
|
-
# Offense count: 2
|
78
|
-
# Cop supports --auto-correct.
|
79
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
80
|
-
# SupportedStyles: always, conditionals
|
81
|
-
Style/AndOr:
|
82
|
-
Exclude:
|
83
|
-
- 'lib/comma.rb'
|
84
|
-
- 'lib/comma/generator.rb'
|
85
|
-
|
86
18
|
# Offense count: 15
|
87
19
|
# Cop supports --auto-correct.
|
88
20
|
# Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
|
@@ -96,39 +28,6 @@ Style/BlockDelimiters:
|
|
96
28
|
- 'spec/comma/data_extractor_spec.rb'
|
97
29
|
- 'spec/comma/header_extractor_spec.rb'
|
98
30
|
|
99
|
-
# Offense count: 1
|
100
|
-
# Cop supports --auto-correct.
|
101
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
102
|
-
# SupportedStyles: braces, no_braces, context_dependent
|
103
|
-
Style/BracesAroundHashParameters:
|
104
|
-
Exclude:
|
105
|
-
- 'spec/comma/rails/active_record_spec.rb'
|
106
|
-
|
107
|
-
# Offense count: 1
|
108
|
-
# Cop supports --auto-correct.
|
109
|
-
# Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep, IndentationWidth.
|
110
|
-
# SupportedStyles: case, end
|
111
|
-
Style/CaseIndentation:
|
112
|
-
Exclude:
|
113
|
-
- 'lib/comma.rb'
|
114
|
-
|
115
|
-
# Offense count: 3
|
116
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
117
|
-
# SupportedStyles: nested, compact
|
118
|
-
Style/ClassAndModuleChildren:
|
119
|
-
Exclude:
|
120
|
-
- 'lib/comma/data_mapper_collection.rb'
|
121
|
-
- 'lib/comma/mongoid.rb'
|
122
|
-
- 'lib/comma/relation.rb'
|
123
|
-
|
124
|
-
# Offense count: 1
|
125
|
-
# Cop supports --auto-correct.
|
126
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly.
|
127
|
-
# SupportedStyles: assign_to_condition, assign_inside_condition
|
128
|
-
Style/ConditionalAssignment:
|
129
|
-
Exclude:
|
130
|
-
- 'lib/comma.rb'
|
131
|
-
|
132
31
|
# Offense count: 11
|
133
32
|
Style/Documentation:
|
134
33
|
Exclude:
|
@@ -144,279 +43,19 @@ Style/Documentation:
|
|
144
43
|
- 'lib/comma/object.rb'
|
145
44
|
- 'lib/comma/relation.rb'
|
146
45
|
|
147
|
-
|
148
|
-
# Cop supports --auto-correct.
|
149
|
-
Style/EmptyLines:
|
150
|
-
Exclude:
|
151
|
-
- 'spec/comma/comma_spec.rb'
|
152
|
-
|
153
|
-
# Offense count: 45
|
154
|
-
# Cop supports --auto-correct.
|
155
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
156
|
-
# SupportedStyles: empty_lines, no_empty_lines
|
157
|
-
Style/EmptyLinesAroundBlockBody:
|
158
|
-
Exclude:
|
159
|
-
- 'spec/comma/comma_spec.rb'
|
160
|
-
- 'spec/comma/data_extractor_spec.rb'
|
161
|
-
- 'spec/comma/header_extractor_spec.rb'
|
162
|
-
- 'spec/comma/rails/active_record_spec.rb'
|
163
|
-
- 'spec/comma/rails/data_mapper_collection_spec.rb'
|
164
|
-
- 'spec/comma/rails/mongoid_spec.rb'
|
165
|
-
- 'spec/controllers/users_controller_spec.rb'
|
166
|
-
|
167
|
-
# Offense count: 7
|
168
|
-
# Cop supports --auto-correct.
|
169
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
170
|
-
# SupportedStyles: empty_lines, no_empty_lines
|
171
|
-
Style/EmptyLinesAroundClassBody:
|
46
|
+
Style/MethodMissingSuper:
|
172
47
|
Exclude:
|
173
48
|
- 'lib/comma/data_extractor.rb'
|
174
|
-
- 'lib/comma/extractor.rb'
|
175
|
-
- 'lib/comma/generator.rb'
|
176
49
|
- 'lib/comma/header_extractor.rb'
|
177
|
-
- 'spec/rails_app/rails_app.rb'
|
178
50
|
|
179
|
-
|
180
|
-
# Cop supports --auto-correct.
|
181
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
182
|
-
# SupportedStyles: empty_lines, no_empty_lines
|
183
|
-
Style/EmptyLinesAroundModuleBody:
|
51
|
+
Style/MissingRespondToMissing:
|
184
52
|
Exclude:
|
185
53
|
- 'lib/comma/data_extractor.rb'
|
186
|
-
- 'lib/comma/extractor.rb'
|
187
|
-
- 'lib/comma/generator.rb'
|
188
|
-
|
189
|
-
# Offense count: 1
|
190
|
-
# Cop supports --auto-correct.
|
191
|
-
Style/EmptyLiteral:
|
192
|
-
Exclude:
|
193
|
-
- 'spec/comma/comma_spec.rb'
|
194
|
-
|
195
|
-
# Offense count: 3
|
196
|
-
# Cop supports --auto-correct.
|
197
|
-
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
|
198
|
-
Style/ExtraSpacing:
|
199
|
-
Exclude:
|
200
|
-
- 'spec/controllers/users_controller_spec.rb'
|
201
|
-
|
202
|
-
# Offense count: 29
|
203
|
-
# Cop supports --auto-correct.
|
204
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
205
|
-
# SupportedStyles: when_needed, always
|
206
|
-
Style/FrozenStringLiteralComment:
|
207
|
-
Enabled: false
|
208
|
-
|
209
|
-
# Offense count: 2
|
210
|
-
# Configuration parameters: MinBodyLength.
|
211
|
-
Style/GuardClause:
|
212
|
-
Exclude:
|
213
|
-
- 'lib/comma/generator.rb'
|
214
54
|
- 'lib/comma/header_extractor.rb'
|
215
55
|
|
216
|
-
# Offense count: 94
|
217
|
-
# Cop supports --auto-correct.
|
218
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
219
|
-
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
220
|
-
Style/HashSyntax:
|
221
|
-
Exclude:
|
222
|
-
- 'lib/comma.rb'
|
223
|
-
- 'spec/comma/comma_spec.rb'
|
224
|
-
- 'spec/comma/rails/active_record_spec.rb'
|
225
|
-
- 'spec/comma/rails/data_mapper_collection_spec.rb'
|
226
|
-
- 'spec/comma/rails/mongoid_spec.rb'
|
227
|
-
- 'spec/controllers/users_controller_spec.rb'
|
228
|
-
- 'spec/non_rails_app/ruby_classes.rb'
|
229
|
-
- 'spec/rails_app/mongoid/config.rb'
|
230
|
-
- 'spec/rails_app/rails_app.rb'
|
231
|
-
|
232
|
-
# Offense count: 2
|
233
|
-
# Cop supports --auto-correct.
|
234
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
235
|
-
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
236
|
-
Style/IndentHash:
|
237
|
-
Exclude:
|
238
|
-
- 'lib/comma.rb'
|
239
|
-
|
240
|
-
# Offense count: 10
|
241
|
-
# Cop supports --auto-correct.
|
242
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
243
|
-
# SupportedStyles: line_count_dependent, lambda, literal
|
244
|
-
Style/Lambda:
|
245
|
-
Exclude:
|
246
|
-
- 'spec/comma/comma_spec.rb'
|
247
|
-
- 'spec/comma/data_extractor_spec.rb'
|
248
|
-
- 'spec/comma/rails/active_record_spec.rb'
|
249
|
-
|
250
|
-
# Offense count: 7
|
251
|
-
# Cop supports --auto-correct.
|
252
|
-
Style/LeadingCommentSpace:
|
253
|
-
Exclude:
|
254
|
-
- 'lib/comma.rb'
|
255
|
-
- 'lib/comma/mongoid.rb'
|
256
|
-
- 'spec/comma/rails/active_record_spec.rb'
|
257
|
-
- 'spec/controllers/users_controller_spec.rb'
|
258
|
-
|
259
|
-
# Offense count: 3
|
260
|
-
Style/MethodMissing:
|
261
|
-
Exclude:
|
262
|
-
- 'lib/comma/data_extractor.rb'
|
263
|
-
- 'lib/comma/header_extractor.rb'
|
264
|
-
|
265
|
-
# Offense count: 2
|
266
|
-
# Cop supports --auto-correct.
|
267
|
-
Style/MutableConstant:
|
268
|
-
Exclude:
|
269
|
-
- 'lib/comma.rb'
|
270
|
-
- 'lib/comma/version.rb'
|
271
|
-
|
272
|
-
# Offense count: 2
|
273
|
-
# Cop supports --auto-correct.
|
274
|
-
Style/ParallelAssignment:
|
275
|
-
Exclude:
|
276
|
-
- 'spec/non_rails_app/ruby_classes.rb'
|
277
|
-
|
278
|
-
# Offense count: 4
|
279
|
-
# Cop supports --auto-correct.
|
280
|
-
# Configuration parameters: PreferredDelimiters.
|
281
|
-
Style/PercentLiteralDelimiters:
|
282
|
-
Exclude:
|
283
|
-
- 'comma.gemspec'
|
284
|
-
- 'spec/spec_helper.rb'
|
285
|
-
|
286
|
-
# Offense count: 1
|
287
|
-
# Cop supports --auto-correct.
|
288
|
-
Style/PreferredHashMethods:
|
289
|
-
Exclude:
|
290
|
-
- 'lib/comma/generator.rb'
|
291
|
-
|
292
|
-
# Offense count: 5
|
293
|
-
# Cop supports --auto-correct.
|
294
|
-
Style/RedundantSelf:
|
295
|
-
Exclude:
|
296
|
-
- 'lib/comma/header_extractor.rb'
|
297
|
-
- 'spec/comma/rails/active_record_spec.rb'
|
298
|
-
|
299
|
-
# Offense count: 1
|
300
|
-
# Cop supports --auto-correct.
|
301
|
-
Style/RescueModifier:
|
302
|
-
Exclude:
|
303
|
-
- 'lib/comma/header_extractor.rb'
|
304
|
-
|
305
|
-
# Offense count: 1
|
306
|
-
# Cop supports --auto-correct.
|
307
|
-
# Configuration parameters: AllowIfMethodIsEmpty.
|
308
|
-
Style/SingleLineMethods:
|
309
|
-
Exclude:
|
310
|
-
- 'spec/non_rails_app/ruby_classes.rb'
|
311
|
-
|
312
|
-
# Offense count: 6
|
313
|
-
# Cop supports --auto-correct.
|
314
|
-
Style/SpaceAfterComma:
|
315
|
-
Exclude:
|
316
|
-
- 'spec/controllers/users_controller_spec.rb'
|
317
|
-
|
318
|
-
# Offense count: 12
|
319
|
-
# Cop supports --auto-correct.
|
320
|
-
# Configuration parameters: AllowForAlignment.
|
321
|
-
Style/SpaceAroundOperators:
|
322
|
-
Exclude:
|
323
|
-
- 'spec/controllers/users_controller_spec.rb'
|
324
|
-
|
325
|
-
# Offense count: 3
|
326
|
-
# Cop supports --auto-correct.
|
327
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
328
|
-
# SupportedStyles: space, no_space
|
329
|
-
Style/SpaceBeforeBlockBraces:
|
330
|
-
Exclude:
|
331
|
-
- 'lib/comma/generator.rb'
|
332
|
-
- 'spec/comma/comma_spec.rb'
|
333
|
-
|
334
|
-
# Offense count: 1
|
335
|
-
# Cop supports --auto-correct.
|
336
|
-
Style/SpaceBeforeComma:
|
337
|
-
Exclude:
|
338
|
-
- 'spec/spec_helper.rb'
|
339
|
-
|
340
|
-
# Offense count: 1
|
341
|
-
# Cop supports --auto-correct.
|
342
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
343
|
-
# SupportedStyles: space, no_space
|
344
|
-
Style/SpaceInsideBlockBraces:
|
345
|
-
Exclude:
|
346
|
-
- 'spec/comma/comma_spec.rb'
|
347
|
-
|
348
|
-
# Offense count: 16
|
349
|
-
# Cop supports --auto-correct.
|
350
|
-
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
|
351
|
-
# SupportedStyles: space, no_space, compact
|
352
|
-
Style/SpaceInsideHashLiteralBraces:
|
353
|
-
Exclude:
|
354
|
-
- 'spec/comma/rails/active_record_spec.rb'
|
355
|
-
- 'spec/controllers/users_controller_spec.rb'
|
356
|
-
- 'spec/rails_app/active_record/config.rb'
|
357
|
-
- 'spec/rails_app/rails_app.rb'
|
358
|
-
|
359
|
-
# Offense count: 1
|
360
|
-
# Cop supports --auto-correct.
|
361
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
362
|
-
# SupportedStyles: use_perl_names, use_english_names
|
363
|
-
Style/SpecialGlobalVars:
|
364
|
-
Exclude:
|
365
|
-
- 'comma.gemspec'
|
366
|
-
|
367
|
-
# Offense count: 33
|
368
|
-
# Cop supports --auto-correct.
|
369
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
|
370
|
-
# SupportedStyles: single_quotes, double_quotes
|
371
|
-
Style/StringLiterals:
|
372
|
-
Exclude:
|
373
|
-
- 'comma.gemspec'
|
374
|
-
- 'lib/comma.rb'
|
375
|
-
- 'lib/comma/relation.rb'
|
376
|
-
- 'spec/comma/comma_spec.rb'
|
377
|
-
- 'spec/comma/rails/active_record_spec.rb'
|
378
|
-
- 'spec/comma/rails/data_mapper_collection_spec.rb'
|
379
|
-
- 'spec/comma/rails/mongoid_spec.rb'
|
380
|
-
- 'spec/controllers/users_controller_spec.rb'
|
381
|
-
- 'spec/rails_app/active_record/models.rb'
|
382
|
-
|
383
|
-
# Offense count: 1
|
384
|
-
# Cop supports --auto-correct.
|
385
|
-
# Configuration parameters: IgnoredMethods.
|
386
|
-
# IgnoredMethods: respond_to, define_method
|
387
|
-
Style/SymbolProc:
|
388
|
-
Exclude:
|
389
|
-
- 'spec/comma/data_extractor_spec.rb'
|
390
|
-
|
391
|
-
# Offense count: 1
|
392
|
-
# Cop supports --auto-correct.
|
393
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
394
|
-
# SupportedStyles: final_newline, final_blank_line
|
395
|
-
Style/TrailingBlankLines:
|
396
|
-
Exclude:
|
397
|
-
- 'lib/comma/mongoid.rb'
|
398
|
-
|
399
|
-
# Offense count: 2
|
400
|
-
# Cop supports --auto-correct.
|
401
|
-
Style/TrailingWhitespace:
|
402
|
-
Exclude:
|
403
|
-
- 'lib/comma/header_extractor.rb'
|
404
|
-
|
405
|
-
# Offense count: 2
|
406
|
-
# Cop supports --auto-correct.
|
407
|
-
Style/UnneededPercentQ:
|
408
|
-
Exclude:
|
409
|
-
- 'comma.gemspec'
|
410
|
-
|
411
56
|
# Offense count: 2
|
412
57
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
413
58
|
# SupportedStyles: snake_case, camelCase
|
414
|
-
|
59
|
+
Naming/VariableName:
|
415
60
|
Exclude:
|
416
61
|
- 'spec/comma/comma_spec.rb'
|
417
|
-
|
418
|
-
# Offense count: 6
|
419
|
-
# Configuration parameters: SupportedStyles.
|
420
|
-
# SupportedStyles: snake_case, normalcase, non_integer
|
421
|
-
Style/VariableNumber:
|
422
|
-
Enabled: false
|
data/.travis.yml
CHANGED
@@ -5,66 +5,47 @@ services: mongodb
|
|
5
5
|
language: ruby
|
6
6
|
cache: bundler
|
7
7
|
rvm:
|
8
|
-
- 2.
|
9
|
-
- 2.
|
10
|
-
- 2.
|
11
|
-
- 2.
|
12
|
-
- 2.5.1
|
13
|
-
- rbx-2
|
14
|
-
- jruby
|
8
|
+
- 2.3.8
|
9
|
+
- 2.4.6
|
10
|
+
- 2.5.5
|
11
|
+
- 2.6.2
|
15
12
|
gemfile:
|
16
|
-
- gemfiles/active4.1.
|
17
|
-
- gemfiles/
|
18
|
-
- gemfiles/active5.
|
19
|
-
- gemfiles/active5.
|
20
|
-
- gemfiles/
|
21
|
-
- gemfiles/rails4.1.
|
22
|
-
- gemfiles/
|
23
|
-
- gemfiles/rails5.
|
24
|
-
- gemfiles/rails5.
|
25
|
-
- gemfiles/
|
13
|
+
- gemfiles/active4.2.11.1.gemfile
|
14
|
+
- gemfiles/active5.0.7.2.gemfile
|
15
|
+
- gemfiles/active5.1.7.gemfile
|
16
|
+
- gemfiles/active5.2.3.gemfile
|
17
|
+
- gemfiles/active6.0.0.gemfile
|
18
|
+
- gemfiles/rails4.2.11.1.gemfile
|
19
|
+
- gemfiles/rails5.0.7.2.gemfile
|
20
|
+
- gemfiles/rails5.1.7.gemfile
|
21
|
+
- gemfiles/rails5.2.3.gemfile
|
22
|
+
- gemfiles/rails6.0.0.gemfile
|
26
23
|
matrix:
|
27
24
|
exclude:
|
28
|
-
- rvm: 2.
|
29
|
-
gemfile: gemfiles/
|
30
|
-
- rvm: 2.
|
31
|
-
gemfile: gemfiles/
|
32
|
-
- rvm: 2.
|
33
|
-
gemfile: gemfiles/
|
34
|
-
- rvm: 2.
|
35
|
-
gemfile: gemfiles/
|
36
|
-
- rvm: 2.
|
37
|
-
gemfile: gemfiles/
|
38
|
-
- rvm: 2.
|
39
|
-
gemfile: gemfiles/
|
40
|
-
- rvm: 2.
|
41
|
-
gemfile: gemfiles/
|
42
|
-
- rvm: 2.
|
43
|
-
gemfile: gemfiles/
|
44
|
-
- rvm: 2.
|
45
|
-
gemfile: gemfiles/active4.1.
|
46
|
-
- rvm: 2.
|
47
|
-
gemfile: gemfiles/
|
48
|
-
- rvm: 2.4.4
|
49
|
-
gemfile: gemfiles/rails4.1.16.gemfile
|
50
|
-
- rvm: 2.4.4
|
51
|
-
gemfile: gemfiles/rails4.2.8.gemfile
|
52
|
-
- rvm: 2.5.1
|
53
|
-
gemfile: gemfiles/active4.1.16.gemfile
|
54
|
-
- rvm: 2.5.1
|
55
|
-
gemfile: gemfiles/active4.2.8.gemfile
|
56
|
-
- rvm: 2.5.1
|
57
|
-
gemfile: gemfiles/rails4.1.16.gemfile
|
58
|
-
- rvm: 2.5.1
|
59
|
-
gemfile: gemfiles/rails4.2.8.gemfile
|
60
|
-
allow_failures:
|
61
|
-
- rvm: rbx-2
|
62
|
-
- rvm: jruby
|
25
|
+
- rvm: 2.3.8
|
26
|
+
gemfile: gemfiles/active6.0.0.gemfile
|
27
|
+
- rvm: 2.3.8
|
28
|
+
gemfile: gemfiles/rails6.0.0.gemfile
|
29
|
+
- rvm: 2.4.6
|
30
|
+
gemfile: gemfiles/active4.2.11.1.gemfile
|
31
|
+
- rvm: 2.4.6
|
32
|
+
gemfile: gemfiles/active6.0.0.gemfile
|
33
|
+
- rvm: 2.4.6
|
34
|
+
gemfile: gemfiles/rails4.2.11.1.gemfile
|
35
|
+
- rvm: 2.4.6
|
36
|
+
gemfile: gemfiles/rails6.0.0.gemfile
|
37
|
+
- rvm: 2.5.5
|
38
|
+
gemfile: gemfiles/active4.2.11.1.gemfile
|
39
|
+
- rvm: 2.5.5
|
40
|
+
gemfile: gemfiles/rails4.2.11.1.gemfile
|
41
|
+
- rvm: 2.6.2
|
42
|
+
gemfile: gemfiles/active4.2.11.1.gemfile
|
43
|
+
- rvm: 2.6.2
|
44
|
+
gemfile: gemfiles/rails4.2.11.1.gemfile
|
63
45
|
fast_finish: true
|
64
|
-
bundler_args: ""
|
65
|
-
# Need to update because there is a bug in bundler that Travis CI uses.
|
66
46
|
before_install:
|
67
|
-
- gem
|
47
|
+
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
|
48
|
+
- gem install bundler -v '< 2'
|
68
49
|
script:
|
69
50
|
- bundle exec rake rubocop
|
70
51
|
- bundle exec rake spec
|