comma 4.0.1 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +10 -0
- data/.rubocop_todo.yml +422 -0
- data/.travis.yml +32 -19
- data/Appraisals +7 -7
- data/Gemfile +3 -2
- data/Gemfile.lock +18 -3
- data/Rakefile +5 -5
- data/comma.gemspec +2 -1
- data/gemfiles/active4.0.13.gemfile +1 -0
- data/gemfiles/active4.0.13.gemfile.lock +15 -1
- data/gemfiles/active4.1.16.gemfile +1 -0
- data/gemfiles/active4.1.16.gemfile.lock +19 -4
- data/gemfiles/{active5.0.0.1.gemfile → active4.2.8.gemfile} +3 -2
- data/gemfiles/{active4.2.7.1.gemfile.lock → active4.2.8.gemfile.lock} +45 -31
- data/gemfiles/active5.0.1.gemfile +10 -0
- data/gemfiles/{active5.0.0.1.gemfile.lock → active5.0.1.gemfile.lock} +45 -30
- data/gemfiles/active5.1.0.gemfile +10 -0
- data/gemfiles/active5.1.0.gemfile.lock +104 -0
- data/gemfiles/rails4.0.13.gemfile +1 -0
- data/gemfiles/rails4.0.13.gemfile.lock +15 -1
- data/gemfiles/rails4.1.16.gemfile +1 -0
- data/gemfiles/rails4.1.16.gemfile.lock +19 -4
- data/gemfiles/{rails4.2.7.1.gemfile → rails4.2.8.gemfile} +2 -1
- data/gemfiles/{rails4.2.7.1.gemfile.lock → rails4.2.8.gemfile.lock} +81 -69
- data/gemfiles/{rails5.0.0.1.gemfile → rails5.0.1.gemfile} +2 -1
- data/gemfiles/{rails5.0.0.1.gemfile.lock → rails5.0.1.gemfile.lock} +83 -70
- data/gemfiles/{active4.2.7.1.gemfile → rails5.1.0.gemfile} +4 -2
- data/gemfiles/rails5.1.0.gemfile.lock +194 -0
- data/lib/comma/version.rb +1 -1
- data/spec/comma/comma_spec.rb +42 -40
- data/spec/comma/data_extractor_spec.rb +1 -1
- data/spec/comma/header_extractor_spec.rb +1 -1
- data/spec/comma/rails/active_record_spec.rb +5 -5
- data/spec/comma/rails/data_mapper_collection_spec.rb +1 -1
- data/spec/controllers/users_controller_spec.rb +41 -30
- data/spec/rails_app/active_record/models.rb +8 -1
- data/spec/rails_app/rails_app.rb +27 -3
- metadata +19 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4dd3a4c6d04f89ab76f02535338b58404c28f796
|
4
|
+
data.tar.gz: 6de4be3fa7a3445774dca45a0a1a853236c5d1fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3eadfe100b0b1018904d340e119770f5dc19dd5f542a088e77ba75cb1befc9bd591566219683e8c11452436a2faa84527d782ef85f113d29e30d7ab0276df80
|
7
|
+
data.tar.gz: e8b9d98ad277c624ce9173662edc5fa2e7b8c2de6cb15387c4ce30ca61014e7f9bc052084868e3a17a097563702c0b2591fd6108b1b33519107bec606bb0f79d
|
data/.rubocop.yml
ADDED
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,422 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2016-10-11 00:30:58 +0900 using RuboCop version 0.43.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
|
+
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
|
+
# Offense count: 2
|
63
|
+
Metrics/AbcSize:
|
64
|
+
Max: 21
|
65
|
+
|
66
|
+
# Offense count: 80
|
67
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
|
68
|
+
# URISchemes: http, https
|
69
|
+
Metrics/LineLength:
|
70
|
+
Max: 223
|
71
|
+
|
72
|
+
# Offense count: 3
|
73
|
+
# Configuration parameters: CountComments.
|
74
|
+
Metrics/MethodLength:
|
75
|
+
Max: 17
|
76
|
+
|
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
|
+
# Offense count: 15
|
87
|
+
# Cop supports --auto-correct.
|
88
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
|
89
|
+
# SupportedStyles: line_count_based, semantic, braces_for_chaining
|
90
|
+
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
91
|
+
# FunctionalMethods: let, let!, subject, watch
|
92
|
+
# IgnoredMethods: lambda, proc, it
|
93
|
+
Style/BlockDelimiters:
|
94
|
+
Exclude:
|
95
|
+
- 'spec/comma/comma_spec.rb'
|
96
|
+
- 'spec/comma/data_extractor_spec.rb'
|
97
|
+
- 'spec/comma/header_extractor_spec.rb'
|
98
|
+
|
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
|
+
# Offense count: 11
|
133
|
+
Style/Documentation:
|
134
|
+
Exclude:
|
135
|
+
- 'spec/**/*'
|
136
|
+
- 'test/**/*'
|
137
|
+
- 'lib/comma/array.rb'
|
138
|
+
- 'lib/comma/data_extractor.rb'
|
139
|
+
- 'lib/comma/data_mapper_collection.rb'
|
140
|
+
- 'lib/comma/extractor.rb'
|
141
|
+
- 'lib/comma/generator.rb'
|
142
|
+
- 'lib/comma/header_extractor.rb'
|
143
|
+
- 'lib/comma/mongoid.rb'
|
144
|
+
- 'lib/comma/object.rb'
|
145
|
+
- 'lib/comma/relation.rb'
|
146
|
+
|
147
|
+
# Offense count: 1
|
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:
|
172
|
+
Exclude:
|
173
|
+
- 'lib/comma/data_extractor.rb'
|
174
|
+
- 'lib/comma/extractor.rb'
|
175
|
+
- 'lib/comma/generator.rb'
|
176
|
+
- 'lib/comma/header_extractor.rb'
|
177
|
+
- 'spec/rails_app/rails_app.rb'
|
178
|
+
|
179
|
+
# Offense count: 4
|
180
|
+
# Cop supports --auto-correct.
|
181
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
182
|
+
# SupportedStyles: empty_lines, no_empty_lines
|
183
|
+
Style/EmptyLinesAroundModuleBody:
|
184
|
+
Exclude:
|
185
|
+
- '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
|
+
- 'lib/comma/header_extractor.rb'
|
215
|
+
|
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
|
+
# Offense count: 2
|
412
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
413
|
+
# SupportedStyles: snake_case, camelCase
|
414
|
+
Style/VariableName:
|
415
|
+
Exclude:
|
416
|
+
- '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
@@ -1,38 +1,51 @@
|
|
1
|
+
sudo: false
|
2
|
+
|
1
3
|
services: mongodb
|
2
4
|
|
3
5
|
language: ruby
|
4
6
|
cache: bundler
|
5
7
|
rvm:
|
6
|
-
- 2.
|
7
|
-
- 2.
|
8
|
-
- 2.
|
9
|
-
- 2.
|
8
|
+
- 2.1.10
|
9
|
+
- 2.2.7
|
10
|
+
- 2.3.4
|
11
|
+
- 2.4.1
|
10
12
|
- rbx-2
|
11
13
|
- jruby
|
12
14
|
gemfile:
|
13
|
-
- gemfiles/active4.0.13.gemfile
|
14
15
|
- gemfiles/active4.1.16.gemfile
|
15
|
-
- gemfiles/active4.2.
|
16
|
-
- gemfiles/active5.0.
|
17
|
-
- gemfiles/
|
16
|
+
- gemfiles/active4.2.8.gemfile
|
17
|
+
- gemfiles/active5.0.1.gemfile
|
18
|
+
- gemfiles/active5.1.0.gemfile
|
18
19
|
- gemfiles/rails4.1.16.gemfile
|
19
|
-
- gemfiles/rails4.2.
|
20
|
-
- gemfiles/rails5.0.
|
20
|
+
- gemfiles/rails4.2.8.gemfile
|
21
|
+
- gemfiles/rails5.0.1.gemfile
|
22
|
+
- gemfiles/rails5.1.0.gemfile
|
21
23
|
matrix:
|
22
24
|
exclude:
|
23
|
-
- rvm: 2.
|
24
|
-
gemfile: gemfiles/active5.0.
|
25
|
-
- rvm: 2.1
|
26
|
-
gemfile: gemfiles/active5.
|
27
|
-
- rvm: 2.
|
28
|
-
gemfile: gemfiles/rails5.0.
|
29
|
-
- rvm: 2.1
|
30
|
-
gemfile: gemfiles/rails5.
|
25
|
+
- rvm: 2.1.10
|
26
|
+
gemfile: gemfiles/active5.0.1.gemfile
|
27
|
+
- rvm: 2.1.10
|
28
|
+
gemfile: gemfiles/active5.1.0.gemfile
|
29
|
+
- rvm: 2.1.10
|
30
|
+
gemfile: gemfiles/rails5.0.1.gemfile
|
31
|
+
- rvm: 2.1.10
|
32
|
+
gemfile: gemfiles/rails5.1.0.gemfile
|
33
|
+
- rvm: 2.4.1
|
34
|
+
gemfile: gemfiles/active4.1.16.gemfile
|
35
|
+
- rvm: 2.4.1
|
36
|
+
gemfile: gemfiles/active4.2.8.gemfile
|
37
|
+
- rvm: 2.4.1
|
38
|
+
gemfile: gemfiles/rails4.1.16.gemfile
|
39
|
+
- rvm: 2.4.1
|
40
|
+
gemfile: gemfiles/rails4.2.8.gemfile
|
31
41
|
allow_failures:
|
32
42
|
- rvm: rbx-2
|
33
43
|
- rvm: jruby
|
34
44
|
fast_finish: true
|
45
|
+
bundler_args: ""
|
35
46
|
# Need to update because there is a bug in bundler that Travis CI uses.
|
36
47
|
before_install:
|
37
48
|
- gem update bundler
|
38
|
-
script:
|
49
|
+
script:
|
50
|
+
- bundle exec rake rubocop
|
51
|
+
- bundle exec rake spec
|