musical_score 0.1.0

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