nrb 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6eac69428b7b2b07970348f68f630fe0ab775275
4
- data.tar.gz: 76f0bff634dae9df1a549e3f33bf7614f51a98f5
3
+ metadata.gz: e875fc597a4c1423de334d523029854ded668fa2
4
+ data.tar.gz: b8a5bb4cea792a54b0375ea4863b853821458e86
5
5
  SHA512:
6
- metadata.gz: 49c0a03296a4ac0ff1ff61a793a307ce122534382757069b5fbbae6406bdd38d327660d1d0b04e02178abbdc835f0deb22c552955dbdd603a26d4b3ea3535d33
7
- data.tar.gz: b375a8ced1fa678b520df29e69b6cd6b8f15c9f456daf35d40143e783e9eeb4d32a87b5ea57ddb369e813552e4930f0a384e0765ee13605307fec6ec7be53db3
6
+ metadata.gz: aa936a29ededf3d93951da3fc616e7a7587a3a86acc23f8b98e78a9e8f6c06eaae7062460e635a99bd4f3ec79e1fc0a4fcd3f756dec9d98fea04a7f162258236
7
+ data.tar.gz: 0e6645ec9a5b4903826d84f4edd8c7f2af5018bd1348a14f3f47906974e86e546924687a66adf41b82d55ccf7fb30d08a0d032ceca6edea0f7f308ea0415cd71
data/.codeclimate.yml ADDED
@@ -0,0 +1,16 @@
1
+ ---
2
+ engines:
3
+ duplication:
4
+ enabled: true
5
+ config:
6
+ languages:
7
+ - ruby
8
+ fixme:
9
+ enabled: true
10
+ rubocop:
11
+ enabled: true
12
+ ratings:
13
+ paths:
14
+ - "**.rb"
15
+ exclude_paths:
16
+ - test/
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ /test/coverage
data/.rubocop.yml ADDED
@@ -0,0 +1,1100 @@
1
+ AllCops:
2
+ DisabledByDefault: true
3
+
4
+ #################### Lint ################################
5
+
6
+ Lint/AmbiguousOperator:
7
+ Description: >-
8
+ Checks for ambiguous operators in the first argument of a
9
+ method invocation without parentheses.
10
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-as-args'
11
+ Enabled: true
12
+
13
+ Lint/AmbiguousRegexpLiteral:
14
+ Description: >-
15
+ Checks for ambiguous regexp literals in the first argument of
16
+ a method invocation without parenthesis.
17
+ Enabled: true
18
+
19
+ Lint/AssignmentInCondition:
20
+ Description: "Don't use assignment in conditions."
21
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition'
22
+ Enabled: true
23
+
24
+ Lint/BlockAlignment:
25
+ Description: 'Align block ends correctly.'
26
+ Enabled: true
27
+
28
+ Lint/CircularArgumentReference:
29
+ Description: "Don't refer to the keyword argument in the default value."
30
+ Enabled: true
31
+
32
+ Lint/ConditionPosition:
33
+ Description: >-
34
+ Checks for condition placed in a confusing position relative to
35
+ the keyword.
36
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#same-line-condition'
37
+ Enabled: true
38
+
39
+ Lint/Debugger:
40
+ Description: 'Check for debugger calls.'
41
+ Enabled: true
42
+
43
+ Lint/DefEndAlignment:
44
+ Description: 'Align ends corresponding to defs correctly.'
45
+ Enabled: true
46
+
47
+ Lint/DeprecatedClassMethods:
48
+ Description: 'Check for deprecated class method calls.'
49
+ Enabled: true
50
+
51
+ Lint/DuplicateMethods:
52
+ Description: 'Check for duplicate methods calls.'
53
+ Enabled: true
54
+
55
+ Lint/EachWithObjectArgument:
56
+ Description: 'Check for immutable argument given to each_with_object.'
57
+ Enabled: true
58
+
59
+ Lint/ElseLayout:
60
+ Description: 'Check for odd code arrangement in an else block.'
61
+ Enabled: true
62
+
63
+ Lint/EmptyEnsure:
64
+ Description: 'Checks for empty ensure block.'
65
+ Enabled: true
66
+
67
+ Lint/EmptyInterpolation:
68
+ Description: 'Checks for empty string interpolation.'
69
+ Enabled: true
70
+
71
+ Lint/EndAlignment:
72
+ Description: 'Align ends correctly.'
73
+ Enabled: true
74
+
75
+ Lint/EndInMethod:
76
+ Description: 'END blocks should not be placed inside method definitions.'
77
+ Enabled: true
78
+
79
+ Lint/EnsureReturn:
80
+ Description: 'Do not use return in an ensure block.'
81
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-return-ensure'
82
+ Enabled: true
83
+
84
+ Lint/Eval:
85
+ Description: 'The use of eval represents a serious security risk.'
86
+ Enabled: true
87
+
88
+ Lint/FormatParameterMismatch:
89
+ Description: 'The number of parameters to format/sprint must match the fields.'
90
+ Enabled: true
91
+
92
+ Lint/HandleExceptions:
93
+ Description: "Don't suppress exception."
94
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions'
95
+ Enabled: true
96
+
97
+ Lint/InvalidCharacterLiteral:
98
+ Description: >-
99
+ Checks for invalid character literals with a non-escaped
100
+ whitespace character.
101
+ Enabled: true
102
+
103
+ Lint/LiteralInCondition:
104
+ Description: 'Checks of literals used in conditions.'
105
+ Enabled: true
106
+
107
+ Lint/LiteralInInterpolation:
108
+ Description: 'Checks for literals used in interpolation.'
109
+ Enabled: true
110
+
111
+ Lint/Loop:
112
+ Description: >-
113
+ Use Kernel#loop with break rather than begin/end/until or
114
+ begin/end/while for post-loop tests.
115
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#loop-with-break'
116
+ Enabled: true
117
+
118
+ Lint/NestedMethodDefinition:
119
+ Description: 'Do not use nested method definitions.'
120
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-methods'
121
+ Enabled: true
122
+
123
+ Lint/NonLocalExitFromIterator:
124
+ Description: 'Do not use return in iterator to cause non-local exit.'
125
+ Enabled: true
126
+
127
+ Lint/ParenthesesAsGroupedExpression:
128
+ Description: >-
129
+ Checks for method calls with a space before the opening
130
+ parenthesis.
131
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
132
+ Enabled: true
133
+
134
+ Lint/RequireParentheses:
135
+ Description: >-
136
+ Use parentheses in the method call to avoid confusion
137
+ about precedence.
138
+ Enabled: true
139
+
140
+ Lint/RescueException:
141
+ Description: 'Avoid rescuing the Exception class.'
142
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-blind-rescues'
143
+ Enabled: true
144
+
145
+ Lint/ShadowingOuterLocalVariable:
146
+ Description: >-
147
+ Do not use the same name as outer local variable
148
+ for block arguments or block local variables.
149
+ Enabled: true
150
+
151
+ Lint/StringConversionInInterpolation:
152
+ Description: 'Checks for Object#to_s usage in string interpolation.'
153
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-to-s'
154
+ Enabled: true
155
+
156
+ Lint/UnderscorePrefixedVariableName:
157
+ Description: 'Do not use prefix `_` for a variable that is used.'
158
+ Enabled: true
159
+
160
+ Lint/UnneededDisable:
161
+ Description: >-
162
+ Checks for rubocop:disable comments that can be removed.
163
+ Note: this cop is not disabled when disabling all cops.
164
+ It must be explicitly disabled.
165
+ Enabled: true
166
+
167
+ Lint/UnusedBlockArgument:
168
+ Description: 'Checks for unused block arguments.'
169
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
170
+ Enabled: true
171
+
172
+ Lint/UnusedMethodArgument:
173
+ Description: 'Checks for unused method arguments.'
174
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
175
+ Enabled: true
176
+
177
+ Lint/UnreachableCode:
178
+ Description: 'Unreachable code.'
179
+ Enabled: true
180
+
181
+ Lint/UselessAccessModifier:
182
+ Description: 'Checks for useless access modifiers.'
183
+ Enabled: true
184
+
185
+ Lint/UselessAssignment:
186
+ Description: 'Checks for useless assignment to a local variable.'
187
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
188
+ Enabled: true
189
+
190
+ Lint/UselessComparison:
191
+ Description: 'Checks for comparison of something with itself.'
192
+ Enabled: true
193
+
194
+ Lint/UselessElseWithoutRescue:
195
+ Description: 'Checks for useless `else` in `begin..end` without `rescue`.'
196
+ Enabled: true
197
+
198
+ Lint/UselessSetterCall:
199
+ Description: 'Checks for useless setter call to a local variable.'
200
+ Enabled: true
201
+
202
+ Lint/Void:
203
+ Description: 'Possible use of operator/literal/variable in void context.'
204
+ Enabled: true
205
+
206
+ ###################### Metrics ####################################
207
+
208
+ Metrics/AbcSize:
209
+ Description: >-
210
+ A calculated magnitude based on number of assignments,
211
+ branches, and conditions.
212
+ Reference: 'http://c2.com/cgi/wiki?AbcMetric'
213
+ Enabled: false
214
+ Max: 20
215
+
216
+ Metrics/BlockNesting:
217
+ Description: 'Avoid excessive block nesting'
218
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count'
219
+ Enabled: true
220
+ Max: 4
221
+
222
+ Metrics/ClassLength:
223
+ Description: 'Avoid classes longer than 250 lines of code.'
224
+ Enabled: true
225
+ Max: 250
226
+
227
+ Metrics/CyclomaticComplexity:
228
+ Description: >-
229
+ A complexity metric that is strongly correlated to the number
230
+ of test cases needed to validate a method.
231
+ Enabled: true
232
+
233
+ Metrics/LineLength:
234
+ Description: 'Limit lines to 80 characters.'
235
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#80-character-limits'
236
+ Enabled: false
237
+
238
+ Metrics/MethodLength:
239
+ Description: 'Avoid methods longer than 30 lines of code.'
240
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#short-methods'
241
+ Enabled: true
242
+ Max: 30
243
+
244
+ Metrics/ModuleLength:
245
+ Description: 'Avoid modules longer than 250 lines of code.'
246
+ Enabled: true
247
+ Max: 250
248
+
249
+ Metrics/ParameterLists:
250
+ Description: 'Avoid parameter lists longer than three or four parameters.'
251
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#too-many-params'
252
+ Enabled: true
253
+
254
+ Metrics/PerceivedComplexity:
255
+ Description: >-
256
+ A complexity metric geared towards measuring complexity for a
257
+ human reader.
258
+ Enabled: false
259
+
260
+ ##################### Performance #############################
261
+
262
+ Performance/Count:
263
+ Description: >-
264
+ Use `count` instead of `select...size`, `reject...size`,
265
+ `select...count`, `reject...count`, `select...length`,
266
+ and `reject...length`.
267
+ Enabled: true
268
+
269
+ Performance/Detect:
270
+ Description: >-
271
+ Use `detect` instead of `select.first`, `find_all.first`,
272
+ `select.last`, and `find_all.last`.
273
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerabledetect-vs-enumerableselectfirst-code'
274
+ Enabled: true
275
+
276
+ Performance/FlatMap:
277
+ Description: >-
278
+ Use `Enumerable#flat_map`
279
+ instead of `Enumerable#map...Array#flatten(1)`
280
+ or `Enumberable#collect..Array#flatten(1)`
281
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablemaparrayflatten-vs-enumerableflat_map-code'
282
+ Enabled: true
283
+ EnabledForFlattenWithoutParams: false
284
+ # If enabled, this cop will warn about usages of
285
+ # `flatten` being called without any parameters.
286
+ # This can be dangerous since `flat_map` will only flatten 1 level, and
287
+ # `flatten` without any parameters can flatten multiple levels.
288
+
289
+ Performance/ReverseEach:
290
+ Description: 'Use `reverse_each` instead of `reverse.each`.'
291
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablereverseeach-vs-enumerablereverse_each-code'
292
+ Enabled: true
293
+
294
+ Performance/Sample:
295
+ Description: >-
296
+ Use `sample` instead of `shuffle.first`,
297
+ `shuffle.last`, and `shuffle[Fixnum]`.
298
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#arrayshufflefirst-vs-arraysample-code'
299
+ Enabled: true
300
+
301
+ Performance/Size:
302
+ Description: >-
303
+ Use `size` instead of `count` for counting
304
+ the number of elements in `Array` and `Hash`.
305
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#arraycount-vs-arraysize-code'
306
+ Enabled: true
307
+
308
+ Performance/StringReplacement:
309
+ Description: >-
310
+ Use `tr` instead of `gsub` when you are replacing the same
311
+ number of characters. Use `delete` instead of `gsub` when
312
+ you are deleting characters.
313
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#stringgsub-vs-stringtr-code'
314
+ Enabled: true
315
+
316
+ ################## Style #################################
317
+
318
+ Style/AccessModifierIndentation:
319
+ Description: Check indentation of private/protected visibility modifiers.
320
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected'
321
+ Enabled: false
322
+
323
+ Style/AccessorMethodName:
324
+ Description: Check the naming of accessor methods for get_/set_.
325
+ Enabled: false
326
+
327
+ Style/Alias:
328
+ Description: 'Use alias_method instead of alias.'
329
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#alias-method'
330
+ Enabled: false
331
+
332
+ Style/AlignArray:
333
+ Description: >-
334
+ Align the elements of an array literal if they span more than
335
+ one line.
336
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays'
337
+ Enabled: false
338
+
339
+ Style/AlignHash:
340
+ Description: >-
341
+ Align the elements of a hash literal if they span more than
342
+ one line.
343
+ Enabled: false
344
+
345
+ Style/AlignParameters:
346
+ Description: >-
347
+ Align the parameters of a method call if they span more
348
+ than one line.
349
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-double-indent'
350
+ Enabled: false
351
+
352
+ Style/AndOr:
353
+ Description: 'Use &&/|| instead of and/or.'
354
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-and-or-or'
355
+ Enabled: false
356
+
357
+ Style/ArrayJoin:
358
+ Description: 'Use Array#join instead of Array#*.'
359
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#array-join'
360
+ Enabled: false
361
+
362
+ Style/AsciiComments:
363
+ Description: 'Use only ascii symbols in comments.'
364
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-comments'
365
+ Enabled: false
366
+
367
+ Style/AsciiIdentifiers:
368
+ Description: 'Use only ascii symbols in identifiers.'
369
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-identifiers'
370
+ Enabled: false
371
+
372
+ Style/Attr:
373
+ Description: 'Checks for uses of Module#attr.'
374
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr'
375
+ Enabled: false
376
+
377
+ Style/BeginBlock:
378
+ Description: 'Avoid the use of BEGIN blocks.'
379
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-BEGIN-blocks'
380
+ Enabled: false
381
+
382
+ Style/BarePercentLiterals:
383
+ Description: 'Checks if usage of %() or %Q() matches configuration.'
384
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-q-shorthand'
385
+ Enabled: false
386
+
387
+ Style/BlockComments:
388
+ Description: 'Do not use block comments.'
389
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-block-comments'
390
+ Enabled: false
391
+
392
+ Style/BlockEndNewline:
393
+ Description: 'Put end statement of multiline block on its own line.'
394
+ Enabled: false
395
+
396
+ Style/BlockDelimiters:
397
+ Description: >-
398
+ Avoid using {...} for multi-line blocks (multiline chaining is
399
+ always ugly).
400
+ Prefer {...} over do...end for single-line blocks.
401
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
402
+ Enabled: false
403
+
404
+ Style/BracesAroundHashParameters:
405
+ Description: 'Enforce braces style around hash parameters.'
406
+ Enabled: false
407
+
408
+ Style/CaseEquality:
409
+ Description: 'Avoid explicit use of the case equality operator(===).'
410
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-case-equality'
411
+ Enabled: false
412
+
413
+ Style/CaseIndentation:
414
+ Description: 'Indentation of when in a case/when/[else/]end.'
415
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-when-to-case'
416
+ Enabled: false
417
+
418
+ Style/CharacterLiteral:
419
+ Description: 'Checks for uses of character literals.'
420
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-character-literals'
421
+ Enabled: false
422
+
423
+ Style/ClassAndModuleCamelCase:
424
+ Description: 'Use CamelCase for classes and modules.'
425
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#camelcase-classes'
426
+ Enabled: false
427
+
428
+ Style/ClassAndModuleChildren:
429
+ Description: 'Checks style of children classes and modules.'
430
+ Enabled: false
431
+
432
+ Style/ClassCheck:
433
+ Description: 'Enforces consistent use of `Object#is_a?` or `Object#kind_of?`.'
434
+ Enabled: false
435
+
436
+ Style/ClassMethods:
437
+ Description: 'Use self when defining module/class methods.'
438
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#def-self-class-methods'
439
+ Enabled: false
440
+
441
+ Style/ClassVars:
442
+ Description: 'Avoid the use of class variables.'
443
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-class-vars'
444
+ Enabled: false
445
+
446
+ Style/ClosingParenthesisIndentation:
447
+ Description: 'Checks the indentation of hanging closing parentheses.'
448
+ Enabled: false
449
+
450
+ Style/ColonMethodCall:
451
+ Description: 'Do not use :: for method call.'
452
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#double-colons'
453
+ Enabled: false
454
+
455
+ Style/CommandLiteral:
456
+ Description: 'Use `` or %x around command literals.'
457
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-x'
458
+ Enabled: false
459
+
460
+ Style/CommentAnnotation:
461
+ Description: 'Checks formatting of annotation comments.'
462
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#annotate-keywords'
463
+ Enabled: false
464
+
465
+ Style/CommentIndentation:
466
+ Description: 'Indentation of comments.'
467
+ Enabled: false
468
+
469
+ Style/ConstantName:
470
+ Description: 'Constants should use SCREAMING_SNAKE_CASE.'
471
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#screaming-snake-case'
472
+ Enabled: false
473
+
474
+ Style/DefWithParentheses:
475
+ Description: 'Use def with parentheses when there are arguments.'
476
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
477
+ Enabled: false
478
+
479
+ Style/DeprecatedHashMethods:
480
+ Description: 'Checks for use of deprecated Hash methods.'
481
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-key'
482
+ Enabled: false
483
+
484
+ Style/Documentation:
485
+ Description: 'Document classes and non-namespace modules.'
486
+ Enabled: false
487
+
488
+ Style/DotPosition:
489
+ Description: 'Checks the position of the dot in multi-line method calls.'
490
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains'
491
+ Enabled: false
492
+
493
+ Style/DoubleNegation:
494
+ Description: 'Checks for uses of double negation (!!).'
495
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-bang-bang'
496
+ Enabled: false
497
+
498
+ Style/EachWithObject:
499
+ Description: 'Prefer `each_with_object` over `inject` or `reduce`.'
500
+ Enabled: false
501
+
502
+ Style/ElseAlignment:
503
+ Description: 'Align elses and elsifs correctly.'
504
+ Enabled: false
505
+
506
+ Style/EmptyElse:
507
+ Description: 'Avoid empty else-clauses.'
508
+ Enabled: false
509
+
510
+ Style/EmptyLineBetweenDefs:
511
+ Description: 'Use empty lines between defs.'
512
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods'
513
+ Enabled: false
514
+
515
+ Style/EmptyLines:
516
+ Description: "Don't use several empty lines in a row."
517
+ Enabled: false
518
+
519
+ Style/EmptyLinesAroundAccessModifier:
520
+ Description: "Keep blank lines around access modifiers."
521
+ Enabled: false
522
+
523
+ Style/EmptyLinesAroundBlockBody:
524
+ Description: "Keeps track of empty lines around block bodies."
525
+ Enabled: false
526
+
527
+ Style/EmptyLinesAroundClassBody:
528
+ Description: "Keeps track of empty lines around class bodies."
529
+ Enabled: false
530
+
531
+ Style/EmptyLinesAroundModuleBody:
532
+ Description: "Keeps track of empty lines around module bodies."
533
+ Enabled: false
534
+
535
+ Style/EmptyLinesAroundMethodBody:
536
+ Description: "Keeps track of empty lines around method bodies."
537
+ Enabled: false
538
+
539
+ Style/EmptyLiteral:
540
+ Description: 'Prefer literals to Array.new/Hash.new/String.new.'
541
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#literal-array-hash'
542
+ Enabled: false
543
+
544
+ Style/EndBlock:
545
+ Description: 'Avoid the use of END blocks.'
546
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-END-blocks'
547
+ Enabled: false
548
+
549
+ Style/EndOfLine:
550
+ Description: 'Use Unix-style line endings.'
551
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#crlf'
552
+ Enabled: false
553
+
554
+ Style/EvenOdd:
555
+ Description: 'Favor the use of Fixnum#even? && Fixnum#odd?'
556
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
557
+ Enabled: false
558
+
559
+ Style/ExtraSpacing:
560
+ Description: 'Do not use unnecessary spacing.'
561
+ Enabled: false
562
+
563
+ Style/FileName:
564
+ Description: 'Use snake_case for source file names.'
565
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-files'
566
+ Enabled: false
567
+
568
+ Style/InitialIndentation:
569
+ Description: >-
570
+ Checks the indentation of the first non-blank non-comment line in a file.
571
+ Enabled: false
572
+
573
+ Style/FirstParameterIndentation:
574
+ Description: 'Checks the indentation of the first parameter in a method call.'
575
+ Enabled: false
576
+
577
+ Style/FlipFlop:
578
+ Description: 'Checks for flip flops'
579
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-flip-flops'
580
+ Enabled: false
581
+
582
+ Style/For:
583
+ Description: 'Checks use of for or each in multiline loops.'
584
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-for-loops'
585
+ Enabled: false
586
+
587
+ Style/FormatString:
588
+ Description: 'Enforce the use of Kernel#sprintf, Kernel#format or String#%.'
589
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#sprintf'
590
+ Enabled: false
591
+
592
+ Style/GlobalVars:
593
+ Description: 'Do not introduce global variables.'
594
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#instance-vars'
595
+ Reference: 'http://www.zenspider.com/Languages/Ruby/QuickRef.html'
596
+ Enabled: false
597
+
598
+ Style/GuardClause:
599
+ Description: 'Check for conditionals that can be replaced with guard clauses'
600
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
601
+ Enabled: false
602
+
603
+ Style/HashSyntax:
604
+ Description: >-
605
+ Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax
606
+ { :a => 1, :b => 2 }.
607
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-literals'
608
+ Enabled: false
609
+
610
+ Style/IfUnlessModifier:
611
+ Description: >-
612
+ Favor modifier if/unless usage when you have a
613
+ single-line body.
614
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier'
615
+ Enabled: false
616
+
617
+ Style/IfWithSemicolon:
618
+ Description: 'Do not use if x; .... Use the ternary operator instead.'
619
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs'
620
+ Enabled: false
621
+
622
+ Style/IndentationConsistency:
623
+ Description: 'Keep indentation straight.'
624
+ Enabled: false
625
+
626
+ Style/IndentationWidth:
627
+ Description: 'Use 2 spaces for indentation.'
628
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
629
+ Enabled: false
630
+
631
+ Style/IndentArray:
632
+ Description: >-
633
+ Checks the indentation of the first element in an array
634
+ literal.
635
+ Enabled: false
636
+
637
+ Style/IndentHash:
638
+ Description: 'Checks the indentation of the first key in a hash literal.'
639
+ Enabled: false
640
+
641
+ Style/InfiniteLoop:
642
+ Description: 'Use Kernel#loop for infinite loops.'
643
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#infinite-loop'
644
+ Enabled: false
645
+
646
+ Style/Lambda:
647
+ Description: 'Use the new lambda literal syntax for single-line blocks.'
648
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#lambda-multi-line'
649
+ Enabled: false
650
+
651
+ Style/LambdaCall:
652
+ Description: 'Use lambda.call(...) instead of lambda.(...).'
653
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc-call'
654
+ Enabled: false
655
+
656
+ Style/LeadingCommentSpace:
657
+ Description: 'Comments should start with a space.'
658
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-space'
659
+ Enabled: false
660
+
661
+ Style/LineEndConcatenation:
662
+ Description: >-
663
+ Use \ instead of + or << to concatenate two string literals at
664
+ line end.
665
+ Enabled: false
666
+
667
+ Style/MethodCallParentheses:
668
+ Description: 'Do not use parentheses for method calls with no arguments.'
669
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-args-no-parens'
670
+ Enabled: false
671
+
672
+ Style/MethodDefParentheses:
673
+ Description: >-
674
+ Checks if the method definitions have or don't have
675
+ parentheses.
676
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
677
+ Enabled: false
678
+
679
+ Style/MethodName:
680
+ Description: 'Use the configured style when naming methods.'
681
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
682
+ Enabled: false
683
+
684
+ Style/ModuleFunction:
685
+ Description: 'Checks for usage of `extend self` in modules.'
686
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#module-function'
687
+ Enabled: false
688
+
689
+ Style/MultilineBlockChain:
690
+ Description: 'Avoid multi-line chains of blocks.'
691
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
692
+ Enabled: false
693
+
694
+ Style/MultilineBlockLayout:
695
+ Description: 'Ensures newlines after multiline block do statements.'
696
+ Enabled: false
697
+
698
+ Style/MultilineIfThen:
699
+ Description: 'Do not use then for multi-line if/unless.'
700
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-then'
701
+ Enabled: false
702
+
703
+ Style/MultilineOperationIndentation:
704
+ Description: >-
705
+ Checks indentation of binary operations that span more than
706
+ one line.
707
+ Enabled: false
708
+
709
+ Style/MultilineTernaryOperator:
710
+ Description: >-
711
+ Avoid multi-line ?: (the ternary operator);
712
+ use if/unless instead.
713
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-multiline-ternary'
714
+ Enabled: false
715
+
716
+ Style/NegatedIf:
717
+ Description: >-
718
+ Favor unless over if for negative conditions
719
+ (or control flow or).
720
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#unless-for-negatives'
721
+ Enabled: false
722
+
723
+ Style/NegatedWhile:
724
+ Description: 'Favor until over while for negative conditions.'
725
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#until-for-negatives'
726
+ Enabled: false
727
+
728
+ Style/NestedTernaryOperator:
729
+ Description: 'Use one expression per branch in a ternary operator.'
730
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-ternary'
731
+ Enabled: false
732
+
733
+ Style/Next:
734
+ Description: 'Use `next` to skip iteration instead of a condition at the end.'
735
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
736
+ Enabled: false
737
+
738
+ Style/NilComparison:
739
+ Description: 'Prefer x.nil? to x == nil.'
740
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
741
+ Enabled: false
742
+
743
+ Style/NonNilCheck:
744
+ Description: 'Checks for redundant nil checks.'
745
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-non-nil-checks'
746
+ Enabled: false
747
+
748
+ Style/Not:
749
+ Description: 'Use ! instead of not.'
750
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bang-not-not'
751
+ Enabled: false
752
+
753
+ Style/NumericLiterals:
754
+ Description: >-
755
+ Add underscores to large numeric literals to improve their
756
+ readability.
757
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics'
758
+ Enabled: false
759
+
760
+ Style/OneLineConditional:
761
+ Description: >-
762
+ Favor the ternary operator(?:) over
763
+ if/then/else/end constructs.
764
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#ternary-operator'
765
+ Enabled: false
766
+
767
+ Style/OpMethod:
768
+ Description: 'When defining binary operators, name the argument other.'
769
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#other-arg'
770
+ Enabled: false
771
+
772
+ Style/OptionalArguments:
773
+ Description: >-
774
+ Checks for optional arguments that do not appear at the end
775
+ of the argument list
776
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#optional-arguments'
777
+ Enabled: false
778
+
779
+ Style/ParallelAssignment:
780
+ Description: >-
781
+ Check for simple usages of parallel assignment.
782
+ It will only warn when the number of variables
783
+ matches on both sides of the assignment.
784
+ This also provides performance benefits
785
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parallel-assignment'
786
+ Enabled: false
787
+
788
+ Style/ParenthesesAroundCondition:
789
+ Description: >-
790
+ Don't use parentheses around the condition of an
791
+ if/unless/while.
792
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-parens-if'
793
+ Enabled: false
794
+
795
+ Style/PercentLiteralDelimiters:
796
+ Description: 'Use `%`-literal delimiters consistently'
797
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-literal-braces'
798
+ Enabled: false
799
+
800
+ Style/PercentQLiterals:
801
+ Description: 'Checks if uses of %Q/%q match the configured preference.'
802
+ Enabled: false
803
+
804
+ Style/PerlBackrefs:
805
+ Description: 'Avoid Perl-style regex back references.'
806
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers'
807
+ Enabled: false
808
+
809
+ Style/PredicateName:
810
+ Description: 'Check the names of predicate methods.'
811
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark'
812
+ Enabled: false
813
+
814
+ Style/Proc:
815
+ Description: 'Use proc instead of Proc.new.'
816
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc'
817
+ Enabled: false
818
+
819
+ Style/RaiseArgs:
820
+ Description: 'Checks the arguments passed to raise/fail.'
821
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#exception-class-messages'
822
+ Enabled: false
823
+
824
+ Style/RedundantBegin:
825
+ Description: "Don't use begin blocks when they are not needed."
826
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#begin-implicit'
827
+ Enabled: false
828
+
829
+ Style/RedundantException:
830
+ Description: "Checks for an obsolete RuntimeException argument in raise/fail."
831
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-explicit-runtimeerror'
832
+ Enabled: false
833
+
834
+ Style/RedundantReturn:
835
+ Description: "Don't use return where it's not required."
836
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-explicit-return'
837
+ Enabled: false
838
+
839
+ Style/RedundantSelf:
840
+ Description: "Don't use self where it's not needed."
841
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-self-unless-required'
842
+ Enabled: false
843
+
844
+ Style/RegexpLiteral:
845
+ Description: 'Use / or %r around regular expressions.'
846
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-r'
847
+ Enabled: false
848
+
849
+ Style/RescueEnsureAlignment:
850
+ Description: 'Align rescues and ensures correctly.'
851
+ Enabled: false
852
+
853
+ Style/RescueModifier:
854
+ Description: 'Avoid using rescue in its modifier form.'
855
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-rescue-modifiers'
856
+ Enabled: false
857
+
858
+ Style/SelfAssignment:
859
+ Description: >-
860
+ Checks for places where self-assignment shorthand should have
861
+ been used.
862
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#self-assignment'
863
+ Enabled: false
864
+
865
+ Style/Semicolon:
866
+ Description: "Don't use semicolons to terminate expressions."
867
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon'
868
+ Enabled: false
869
+
870
+ Style/SignalException:
871
+ Description: 'Checks for proper usage of fail and raise.'
872
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#fail-method'
873
+ Enabled: false
874
+
875
+ Style/SingleLineBlockParams:
876
+ Description: 'Enforces the names of some block params.'
877
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#reduce-blocks'
878
+ Enabled: false
879
+
880
+ Style/SingleLineMethods:
881
+ Description: 'Avoid single-line methods.'
882
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-single-line-methods'
883
+ Enabled: false
884
+
885
+ Style/SpaceBeforeFirstArg:
886
+ Description: >-
887
+ Checks that exactly one space is used between a method name
888
+ and the first argument for method calls without parentheses.
889
+ Enabled: true
890
+
891
+ Style/SpaceAfterColon:
892
+ Description: 'Use spaces after colons.'
893
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
894
+ Enabled: false
895
+
896
+ Style/SpaceAfterComma:
897
+ Description: 'Use spaces after commas.'
898
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
899
+ Enabled: false
900
+
901
+ Style/SpaceAfterMethodName:
902
+ Description: >-
903
+ Do not put a space between a method name and the opening
904
+ parenthesis in a method definition.
905
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
906
+ Enabled: false
907
+
908
+ Style/SpaceAfterNot:
909
+ Description: Tracks redundant space after the ! operator.
910
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-bang'
911
+ Enabled: false
912
+
913
+ Style/SpaceAfterSemicolon:
914
+ Description: 'Use spaces after semicolons.'
915
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
916
+ Enabled: false
917
+
918
+ Style/SpaceBeforeBlockBraces:
919
+ Description: >-
920
+ Checks that the left block brace has or doesn't have space
921
+ before it.
922
+ Enabled: false
923
+
924
+ Style/SpaceBeforeComma:
925
+ Description: 'No spaces before commas.'
926
+ Enabled: false
927
+
928
+ Style/SpaceBeforeComment:
929
+ Description: >-
930
+ Checks for missing space between code and a comment on the
931
+ same line.
932
+ Enabled: false
933
+
934
+ Style/SpaceBeforeSemicolon:
935
+ Description: 'No spaces before semicolons.'
936
+ Enabled: false
937
+
938
+ Style/SpaceInsideBlockBraces:
939
+ Description: >-
940
+ Checks that block braces have or don't have surrounding space.
941
+ For blocks taking parameters, checks that the left brace has
942
+ or doesn't have trailing space.
943
+ Enabled: false
944
+
945
+ Style/SpaceAroundBlockParameters:
946
+ Description: 'Checks the spacing inside and after block parameters pipes.'
947
+ Enabled: false
948
+
949
+ Style/SpaceAroundEqualsInParameterDefault:
950
+ Description: >-
951
+ Checks that the equals signs in parameter default assignments
952
+ have or don't have surrounding space depending on
953
+ configuration.
954
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-around-equals'
955
+ Enabled: false
956
+
957
+ Style/SpaceAroundOperators:
958
+ Description: 'Use a single space around operators.'
959
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
960
+ Enabled: false
961
+
962
+ Style/SpaceInsideBrackets:
963
+ Description: 'No spaces after [ or before ].'
964
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
965
+ Enabled: false
966
+
967
+ Style/SpaceInsideHashLiteralBraces:
968
+ Description: "Use spaces inside hash literal braces - or don't."
969
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
970
+ Enabled: false
971
+
972
+ Style/SpaceInsideParens:
973
+ Description: 'No spaces after ( or before ).'
974
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
975
+ Enabled: false
976
+
977
+ Style/SpaceInsideRangeLiteral:
978
+ Description: 'No spaces inside range literals.'
979
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-inside-range-literals'
980
+ Enabled: false
981
+
982
+ Style/SpaceInsideStringInterpolation:
983
+ Description: 'Checks for padding/surrounding spaces inside string interpolation.'
984
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#string-interpolation'
985
+ Enabled: false
986
+
987
+ Style/SpecialGlobalVars:
988
+ Description: 'Avoid Perl-style global variables.'
989
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms'
990
+ Enabled: false
991
+
992
+ Style/StringLiterals:
993
+ Description: 'Checks if uses of quotes match the configured preference.'
994
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-string-literals'
995
+ Enabled: false
996
+
997
+ Style/StringLiteralsInInterpolation:
998
+ Description: >-
999
+ Checks if uses of quotes inside expressions in interpolated
1000
+ strings match the configured preference.
1001
+ Enabled: false
1002
+
1003
+ Style/StructInheritance:
1004
+ Description: 'Checks for inheritance from Struct.new.'
1005
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-extend-struct-new'
1006
+ Enabled: false
1007
+
1008
+ Style/SymbolLiteral:
1009
+ Description: 'Use plain symbols instead of string symbols when possible.'
1010
+ Enabled: false
1011
+
1012
+ Style/SymbolProc:
1013
+ Description: 'Use symbols as procs instead of blocks when possible.'
1014
+ Enabled: false
1015
+
1016
+ Style/Tab:
1017
+ Description: 'No hard tabs.'
1018
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
1019
+ Enabled: false
1020
+
1021
+ Style/TrailingBlankLines:
1022
+ Description: 'Checks trailing blank lines and final newline.'
1023
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#newline-eof'
1024
+ Enabled: false
1025
+
1026
+ Style/TrailingCommaInArguments:
1027
+ Description: 'Checks for trailing comma in parameter lists.'
1028
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-params-comma'
1029
+ Enabled: false
1030
+
1031
+ Style/TrailingCommaInLiteral:
1032
+ Description: 'Checks for trailing comma in literals.'
1033
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
1034
+ Enabled: false
1035
+
1036
+ Style/TrailingWhitespace:
1037
+ Description: 'Avoid trailing whitespace.'
1038
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace'
1039
+ Enabled: false
1040
+
1041
+ Style/TrivialAccessors:
1042
+ Description: 'Prefer attr_* methods to trivial readers/writers.'
1043
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr_family'
1044
+ Enabled: false
1045
+
1046
+ Style/UnlessElse:
1047
+ Description: >-
1048
+ Do not use unless with else. Rewrite these with the positive
1049
+ case first.
1050
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-else-with-unless'
1051
+ Enabled: false
1052
+
1053
+ Style/UnneededCapitalW:
1054
+ Description: 'Checks for %W when interpolation is not needed.'
1055
+ Enabled: false
1056
+
1057
+ Style/UnneededPercentQ:
1058
+ Description: 'Checks for %q/%Q when single quotes or double quotes would do.'
1059
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-q'
1060
+ Enabled: false
1061
+
1062
+ Style/TrailingUnderscoreVariable:
1063
+ Description: >-
1064
+ Checks for the usage of unneeded trailing underscores at the
1065
+ end of parallel variable assignment.
1066
+ Enabled: false
1067
+
1068
+ Style/VariableInterpolation:
1069
+ Description: >-
1070
+ Don't interpolate global, instance and class variables
1071
+ directly in strings.
1072
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#curlies-interpolate'
1073
+ Enabled: false
1074
+
1075
+ Style/VariableName:
1076
+ Description: 'Use the configured style when naming variables.'
1077
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
1078
+ Enabled: false
1079
+
1080
+ Style/WhenThen:
1081
+ Description: 'Use when x then ... for one-line cases.'
1082
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#one-line-cases'
1083
+ Enabled: false
1084
+
1085
+ Style/WhileUntilDo:
1086
+ Description: 'Checks for redundant do after while or until.'
1087
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-multiline-while-do'
1088
+ Enabled: false
1089
+
1090
+ Style/WhileUntilModifier:
1091
+ Description: >-
1092
+ Favor modifier while/until usage when you have a
1093
+ single-line body.
1094
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier'
1095
+ Enabled: false
1096
+
1097
+ Style/WordArray:
1098
+ Description: 'Use %w or %W for arrays of words.'
1099
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-w'
1100
+ Enabled: false