review 1.6.0 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +43 -1
  3. data/.rubocop_todo.yml +605 -0
  4. data/.travis.yml +9 -0
  5. data/ChangeLog +4 -0
  6. data/Dockerfile +22 -0
  7. data/README.rdoc +1 -1
  8. data/Rakefile +1 -1
  9. data/bin/review-check +8 -21
  10. data/bin/review-compile +9 -15
  11. data/bin/review-epubmaker-legacy +6 -6
  12. data/bin/review-index +2 -13
  13. data/bin/review-preproc +1 -14
  14. data/bin/review-validate +1 -1
  15. data/bin/review-vol +1 -13
  16. data/doc/NEWS.ja.md +22 -0
  17. data/doc/NEWS.md +22 -0
  18. data/doc/quickstart.ja.md +1 -1
  19. data/doc/quickstart.md +1 -1
  20. data/lib/epubmaker/content.rb +3 -3
  21. data/lib/epubmaker/epubcommon.rb +91 -108
  22. data/lib/epubmaker/epubv2.rb +14 -67
  23. data/lib/epubmaker/epubv3.rb +25 -59
  24. data/lib/epubmaker/producer.rb +12 -0
  25. data/lib/review/book/base.rb +12 -4
  26. data/lib/review/book/compilable.rb +1 -3
  27. data/lib/review/book/index.rb +4 -4
  28. data/lib/review/builder.rb +6 -11
  29. data/lib/review/compiler.rb +7 -7
  30. data/lib/review/configure.rb +20 -8
  31. data/lib/review/epubbuilder.rb +1 -1
  32. data/lib/review/epubmaker.rb +52 -122
  33. data/lib/review/ewbbuilder.rb +4 -4
  34. data/lib/review/exception.rb +1 -1
  35. data/lib/review/htmlbuilder.rb +49 -54
  36. data/lib/review/htmltoc.rb +45 -0
  37. data/lib/review/htmlutils.rb +3 -3
  38. data/lib/review/i18n.rb +6 -2
  39. data/lib/review/i18n.yml +1 -1
  40. data/lib/review/idgxmlbuilder.rb +4 -5
  41. data/lib/review/inaobuilder.rb +1 -1
  42. data/lib/review/latexbuilder.rb +2 -2
  43. data/lib/review/latexutils.rb +6 -6
  44. data/lib/review/markdownbuilder.rb +4 -3
  45. data/lib/review/pdfmaker.rb +92 -92
  46. data/lib/review/preprocessor.rb +14 -51
  47. data/lib/review/template.rb +21 -0
  48. data/lib/review/textbuilder.rb +1 -1
  49. data/lib/review/textutils.rb +0 -28
  50. data/lib/review/tocparser.rb +3 -3
  51. data/lib/review/tocprinter.rb +8 -31
  52. data/lib/review/topbuilder.rb +2 -3
  53. data/lib/review/unfold.rb +2 -2
  54. data/lib/review/version.rb +1 -1
  55. data/review.gemspec +2 -1
  56. data/templates/html/layout-html5.html.erb +17 -0
  57. data/templates/html/layout-xhtml1.html.erb +20 -0
  58. data/templates/ncx/epubv2.ncx.erb +11 -0
  59. data/templates/opf/epubv2.opf.erb +21 -0
  60. data/templates/opf/epubv3.opf.erb +18 -0
  61. data/templates/xml/container.xml.erb +6 -0
  62. data/test/assets/test.xml.erb +3 -0
  63. data/test/test.re +1 -1
  64. data/test/test_book.rb +4 -4
  65. data/test/test_book_chapter.rb +0 -76
  66. data/test/test_book_part.rb +1 -1
  67. data/test/test_builder.rb +0 -49
  68. data/test/test_configure.rb +50 -0
  69. data/test/test_htmlbuilder.rb +54 -4
  70. data/test/test_htmltoc.rb +32 -0
  71. data/test/test_i18n.rb +3 -5
  72. data/test/test_idgxmlbuilder.rb +0 -2
  73. data/test/test_inaobuilder.rb +2 -4
  74. data/test/test_latexbuilder.rb +2 -4
  75. data/test/test_lineinput.rb +0 -18
  76. data/test/test_markdownbuilder.rb +5 -4
  77. data/test/test_pdfmaker.rb +11 -10
  78. data/test/test_template.rb +26 -0
  79. data/test/test_topbuilder.rb +0 -2
  80. metadata +35 -4
  81. data/rubocop-todo.yml +0 -456
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ce18379595b59c744e834cac9941c944ee24acf1
4
- data.tar.gz: 555c5edfd69edb788c79a61b585970fc4d839ee8
3
+ metadata.gz: 5271e687b4df900c4271bc7d6d2db2542c5d63f0
4
+ data.tar.gz: aef3accb7c8af263251376f0cfe45179f88354df
5
5
  SHA512:
6
- metadata.gz: 504d7922c8b7330b1e3e41b6d20bc5f310ddbd976a131c58e5e5ead2648ff4304d11c50899d5edbc3a5a76bc198abb14162ecf59ea023852352d6f9a6d5e8387
7
- data.tar.gz: acd562bcf4a153c0506fbd578640911a29c8c16b60eb08269e2af4143f59791cbc83f0753476c6c437cd1334dbb57f1582e186469f378fd728668827163876b9
6
+ metadata.gz: efc3bb08dd5506d99fdea1e1acb04c2042151e66726f2327b445fd4d113ded6adc5647e888cdc000aa55fdbbacf812bb882f4090a11e352b3d312b6e0dff7d83
7
+ data.tar.gz: 8c0f10dc42c113572e4a4819a81a2d0f700d1fe8306b571678850b0b4f7cf34f57f767bb06640e6741dd596b73bdaea2b5541b6cd4d46a958eaf02877bc0b147
data/.rubocop.yml CHANGED
@@ -1 +1,43 @@
1
- inherit_from: rubocop-todo.yml
1
+ AllCops:
2
+ Exclude:
3
+ - lib/lineinput.rb
4
+ - lib/uuid.rb
5
+
6
+ inherit_from: .rubocop_todo.yml
7
+
8
+ Lint/BlockAlignment:
9
+ Enabled: true
10
+
11
+ Lint/EndAlignment:
12
+ Enabled: AlignWith
13
+
14
+ Performance/ReverseEach:
15
+ Enabled: true
16
+
17
+ # Unnecessary spacing detected.
18
+ Style/ExtraSpacing:
19
+ Enabled: true
20
+
21
+ # Use tr instead of gsub.
22
+ Performance/StringReplacement:
23
+ Enabled: false
24
+
25
+ # Use alias_method instead of alias.
26
+ Style/Alias:
27
+ Enabled: true
28
+
29
+ # Do not introduce global variables.
30
+ Style/GlobalVars:
31
+ Enabled: true
32
+
33
+ # Use self-assignment shorthand +=.
34
+ Style/SelfAssignment:
35
+ Enabled: true
36
+
37
+ # When defining the == operator, name its argument other.
38
+ Style/OpMethod:
39
+ Enabled: true
40
+
41
+ # Use snake_case for variable names.
42
+ Style/VariableName:
43
+ Enabled: true
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,605 @@
1
+ # This configuration was generated by `rubocop --auto-gen-config`
2
+ # on 2015-06-29 21:55:30 +0900 using RuboCop version 0.32.1.
3
+ # The point is for the user to remove these configuration records
4
+ # one by one as the offenses are removed from the code base.
5
+ # Note that changes in the inspected code, or installation of new
6
+ # versions of RuboCop, may require this file to be generated again.
7
+
8
+ # Offense count: 2
9
+ Lint/AmbiguousOperator:
10
+ Enabled: false
11
+
12
+ # Offense count: 36
13
+ # Configuration parameters: AllowSafeAssignment.
14
+ Lint/AssignmentInCondition:
15
+ Enabled: false
16
+
17
+ # Offense count: 3
18
+ Lint/HandleExceptions:
19
+ Enabled: false
20
+
21
+ # Offense count: 2
22
+ Lint/LiteralInCondition:
23
+ Enabled: false
24
+
25
+ # Offense count: 10
26
+ Lint/NestedMethodDefinition:
27
+ Enabled: false
28
+
29
+ # Offense count: 1
30
+ Lint/NonLocalExitFromIterator:
31
+ Enabled: false
32
+
33
+ # Offense count: 3
34
+ Lint/ParenthesesAsGroupedExpression:
35
+ Enabled: false
36
+
37
+ # Offense count: 6
38
+ Lint/UnderscorePrefixedVariableName:
39
+ Enabled: false
40
+
41
+ # Offense count: 84
42
+ # Cop supports --auto-correct.
43
+ Lint/UnusedBlockArgument:
44
+ Enabled: false
45
+
46
+ # Offense count: 214
47
+ # Cop supports --auto-correct.
48
+ Lint/UnusedMethodArgument:
49
+ Enabled: false
50
+
51
+ # Offense count: 13
52
+ Lint/UselessAssignment:
53
+ Enabled: false
54
+
55
+ # Offense count: 184
56
+ Metrics/AbcSize:
57
+ Max: 298
58
+
59
+ # Offense count: 9
60
+ Metrics/BlockNesting:
61
+ Max: 4
62
+
63
+ # Offense count: 35
64
+ # Configuration parameters: CountComments.
65
+ Metrics/ClassLength:
66
+ Max: 992
67
+
68
+ # Offense count: 54
69
+ Metrics/CyclomaticComplexity:
70
+ Max: 65
71
+
72
+ # Offense count: 815
73
+ # Configuration parameters: AllowURI, URISchemes.
74
+ Metrics/LineLength:
75
+ Max: 1189
76
+
77
+ # Offense count: 296
78
+ # Configuration parameters: CountComments.
79
+ Metrics/MethodLength:
80
+ Max: 431
81
+
82
+ # Offense count: 1
83
+ # Configuration parameters: CountComments.
84
+ Metrics/ModuleLength:
85
+ Max: 134
86
+
87
+ # Offense count: 2
88
+ # Configuration parameters: CountKeywordArgs.
89
+ Metrics/ParameterLists:
90
+ Max: 8
91
+
92
+ # Offense count: 49
93
+ Metrics/PerceivedComplexity:
94
+ Max: 69
95
+
96
+ # Offense count: 2
97
+ # Cop supports --auto-correct.
98
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
99
+ Style/AccessModifierIndentation:
100
+ Enabled: false
101
+
102
+ # Offense count: 1
103
+ Style/AccessorMethodName:
104
+ Enabled: false
105
+
106
+ # Offense count: 2
107
+ # Cop supports --auto-correct.
108
+ # Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.
109
+ Style/AlignHash:
110
+ Enabled: false
111
+
112
+ # Offense count: 15
113
+ # Cop supports --auto-correct.
114
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
115
+ Style/AlignParameters:
116
+ Enabled: false
117
+
118
+ # Offense count: 30
119
+ # Cop supports --auto-correct.
120
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
121
+ Style/AndOr:
122
+ Enabled: false
123
+
124
+ # Offense count: 23
125
+ Style/AsciiComments:
126
+ Enabled: false
127
+
128
+ # Offense count: 617
129
+ # Cop supports --auto-correct.
130
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
131
+ Style/BarePercentLiterals:
132
+ Enabled: false
133
+
134
+ # Offense count: 1
135
+ # Cop supports --auto-correct.
136
+ Style/BlockComments:
137
+ Enabled: false
138
+
139
+ # Offense count: 109
140
+ # Cop supports --auto-correct.
141
+ # Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
142
+ Style/BlockDelimiters:
143
+ Enabled: false
144
+
145
+ # Offense count: 69
146
+ # Cop supports --auto-correct.
147
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
148
+ Style/BracesAroundHashParameters:
149
+ Enabled: false
150
+
151
+ # Offense count: 4
152
+ Style/CaseEquality:
153
+ Enabled: false
154
+
155
+ # Offense count: 2
156
+ # Cop supports --auto-correct.
157
+ # Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep.
158
+ Style/CaseIndentation:
159
+ Enabled: false
160
+
161
+ # Offense count: 1
162
+ Style/ClassAndModuleCamelCase:
163
+ Enabled: false
164
+
165
+ # Offense count: 4
166
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
167
+ Style/ClassAndModuleChildren:
168
+ Enabled: false
169
+
170
+ # Offense count: 8
171
+ # Cop supports --auto-correct.
172
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
173
+ Style/ClassCheck:
174
+ Enabled: false
175
+
176
+ # Offense count: 28
177
+ # Cop supports --auto-correct.
178
+ Style/ClassMethods:
179
+ Enabled: false
180
+
181
+ # Offense count: 1
182
+ # Cop supports --auto-correct.
183
+ Style/ColonMethodCall:
184
+ Enabled: false
185
+
186
+ # Offense count: 7
187
+ # Cop supports --auto-correct.
188
+ # Configuration parameters: Keywords.
189
+ Style/CommentAnnotation:
190
+ Enabled: false
191
+
192
+ # Offense count: 9
193
+ # Cop supports --auto-correct.
194
+ Style/CommentIndentation:
195
+ Enabled: false
196
+
197
+ # Offense count: 1
198
+ Style/ConstantName:
199
+ Enabled: false
200
+
201
+ # Offense count: 4
202
+ # Cop supports --auto-correct.
203
+ Style/DeprecatedHashMethods:
204
+ Enabled: false
205
+
206
+ # Offense count: 105
207
+ Style/Documentation:
208
+ Enabled: false
209
+
210
+ # Offense count: 2
211
+ # Cop supports --auto-correct.
212
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
213
+ Style/DotPosition:
214
+ Enabled: false
215
+
216
+ # Offense count: 2
217
+ Style/EachWithObject:
218
+ Enabled: false
219
+
220
+ # Offense count: 3
221
+ # Cop supports --auto-correct.
222
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
223
+ Style/EmptyElse:
224
+ Enabled: false
225
+
226
+ # Offense count: 5
227
+ # Cop supports --auto-correct.
228
+ # Configuration parameters: AllowAdjacentOneLineDefs.
229
+ Style/EmptyLineBetweenDefs:
230
+ Enabled: false
231
+
232
+ # Offense count: 43
233
+ # Cop supports --auto-correct.
234
+ Style/EmptyLines:
235
+ Enabled: false
236
+
237
+ # Offense count: 3
238
+ # Cop supports --auto-correct.
239
+ Style/EmptyLinesAroundAccessModifier:
240
+ Enabled: false
241
+
242
+ # Offense count: 1
243
+ # Cop supports --auto-correct.
244
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
245
+ Style/EmptyLinesAroundBlockBody:
246
+ Enabled: false
247
+
248
+ # Offense count: 53
249
+ # Cop supports --auto-correct.
250
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
251
+ Style/EmptyLinesAroundClassBody:
252
+ Enabled: false
253
+
254
+ # Offense count: 4
255
+ # Cop supports --auto-correct.
256
+ Style/EmptyLinesAroundMethodBody:
257
+ Enabled: false
258
+
259
+ # Offense count: 44
260
+ # Cop supports --auto-correct.
261
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
262
+ Style/EmptyLinesAroundModuleBody:
263
+ Enabled: false
264
+
265
+ # Offense count: 4
266
+ # Cop supports --auto-correct.
267
+ Style/EmptyLiteral:
268
+ Enabled: false
269
+
270
+ # Offense count: 12
271
+ # Configuration parameters: Exclude.
272
+ Style/FileName:
273
+ Enabled: false
274
+
275
+ # Offense count: 2
276
+ # Cop supports --auto-correct.
277
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
278
+ Style/FirstParameterIndentation:
279
+ Enabled: false
280
+
281
+ # Offense count: 1
282
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
283
+ Style/For:
284
+ Enabled: false
285
+
286
+ # Offense count: 22
287
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
288
+ Style/FormatString:
289
+ Enabled: false
290
+
291
+ # Offense count: 31
292
+ # Configuration parameters: MinBodyLength.
293
+ Style/GuardClause:
294
+ Enabled: false
295
+
296
+ # Offense count: 52
297
+ # Cop supports --auto-correct.
298
+ # Configuration parameters: SupportedStyles, UseHashRocketsWithSymbolValues.
299
+ Style/HashSyntax:
300
+ EnforcedStyle: hash_rockets
301
+
302
+ # Offense count: 55
303
+ # Cop supports --auto-correct.
304
+ # Configuration parameters: MaxLineLength.
305
+ Style/IfUnlessModifier:
306
+ Enabled: false
307
+
308
+ # Offense count: 6
309
+ # Cop supports --auto-correct.
310
+ Style/IndentArray:
311
+ Enabled: false
312
+
313
+ # Offense count: 24
314
+ # Cop supports --auto-correct.
315
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
316
+ Style/IndentHash:
317
+ Enabled: false
318
+
319
+ # Offense count: 39
320
+ # Cop supports --auto-correct.
321
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
322
+ Style/IndentationConsistency:
323
+ Enabled: false
324
+
325
+ # Offense count: 61
326
+ # Cop supports --auto-correct.
327
+ # Configuration parameters: Width.
328
+ Style/IndentationWidth:
329
+ Enabled: false
330
+
331
+ # Offense count: 2
332
+ # Cop supports --auto-correct.
333
+ Style/InfiniteLoop:
334
+ Enabled: false
335
+
336
+ # Offense count: 18
337
+ # Cop supports --auto-correct.
338
+ Style/LeadingCommentSpace:
339
+ Enabled: false
340
+
341
+ # Offense count: 7
342
+ # Cop supports --auto-correct.
343
+ Style/LineEndConcatenation:
344
+ Enabled: false
345
+
346
+ # Offense count: 105
347
+ # Cop supports --auto-correct.
348
+ Style/MethodCallParentheses:
349
+ Enabled: false
350
+
351
+ # Offense count: 11
352
+ # Cop supports --auto-correct.
353
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
354
+ Style/MethodDefParentheses:
355
+ Enabled: false
356
+
357
+ # Offense count: 38
358
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
359
+ Style/MethodName:
360
+ Enabled: false
361
+
362
+ # Offense count: 1
363
+ Style/MultilineBlockChain:
364
+ Enabled: false
365
+
366
+ # Offense count: 1
367
+ # Cop supports --auto-correct.
368
+ Style/MultilineIfThen:
369
+ Enabled: false
370
+
371
+ # Offense count: 35
372
+ # Cop supports --auto-correct.
373
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
374
+ Style/MultilineOperationIndentation:
375
+ Enabled: false
376
+
377
+ # Offense count: 8
378
+ # Cop supports --auto-correct.
379
+ Style/NegatedIf:
380
+ Enabled: false
381
+
382
+ # Offense count: 8
383
+ # Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
384
+ Style/Next:
385
+ Enabled: false
386
+
387
+ # Offense count: 5
388
+ # Cop supports --auto-correct.
389
+ Style/Not:
390
+ Enabled: false
391
+
392
+ # Offense count: 1
393
+ # Cop supports --auto-correct.
394
+ Style/NumericLiterals:
395
+ MinDigits: 6
396
+
397
+ # Offense count: 1
398
+ # Cop supports --auto-correct.
399
+ # Configuration parameters: AllowSafeAssignment.
400
+ Style/ParenthesesAroundCondition:
401
+ Enabled: false
402
+
403
+ # Offense count: 516
404
+ # Cop supports --auto-correct.
405
+ # Configuration parameters: PreferredDelimiters.
406
+ Style/PercentLiteralDelimiters:
407
+ Enabled: false
408
+
409
+ # Offense count: 160
410
+ # Cop supports --auto-correct.
411
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
412
+ Style/PercentQLiterals:
413
+ Enabled: false
414
+
415
+ # Offense count: 37
416
+ # Cop supports --auto-correct.
417
+ Style/PerlBackrefs:
418
+ Enabled: false
419
+
420
+ # Offense count: 1
421
+ # Configuration parameters: NamePrefix, NamePrefixBlacklist.
422
+ Style/PredicateName:
423
+ Enabled: false
424
+
425
+ # Offense count: 4
426
+ # Cop supports --auto-correct.
427
+ Style/RedundantBegin:
428
+ Enabled: false
429
+
430
+ # Offense count: 14
431
+ # Cop supports --auto-correct.
432
+ # Configuration parameters: AllowMultipleReturnValues.
433
+ Style/RedundantReturn:
434
+ Enabled: false
435
+
436
+ # Offense count: 16
437
+ # Cop supports --auto-correct.
438
+ Style/RedundantSelf:
439
+ Enabled: false
440
+
441
+ # Offense count: 35
442
+ # Cop supports --auto-correct.
443
+ # Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
444
+ Style/RegexpLiteral:
445
+ Enabled: false
446
+
447
+ # Offense count: 8
448
+ # Cop supports --auto-correct.
449
+ Style/SelfAssignment:
450
+ Enabled: true
451
+
452
+ # Offense count: 6
453
+ # Cop supports --auto-correct.
454
+ # Configuration parameters: AllowAsExpressionSeparator.
455
+ Style/Semicolon:
456
+ Enabled: false
457
+
458
+ # Offense count: 42
459
+ # Cop supports --auto-correct.
460
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
461
+ Style/SignalException:
462
+ Enabled: false
463
+
464
+ # Offense count: 11
465
+ # Configuration parameters: Methods.
466
+ Style/SingleLineBlockParams:
467
+ Enabled: false
468
+
469
+ # Offense count: 4
470
+ # Cop supports --auto-correct.
471
+ # Configuration parameters: AllowIfMethodIsEmpty.
472
+ Style/SingleLineMethods:
473
+ Enabled: false
474
+
475
+ # Offense count: 143
476
+ # Cop supports --auto-correct.
477
+ Style/SpaceAfterComma:
478
+ Enabled: false
479
+
480
+ # Offense count: 2
481
+ # Cop supports --auto-correct.
482
+ Style/SpaceAfterNot:
483
+ Enabled: false
484
+
485
+ # Offense count: 8
486
+ # Cop supports --auto-correct.
487
+ Style/SpaceAfterSemicolon:
488
+ Enabled: false
489
+
490
+ # Offense count: 46
491
+ # Cop supports --auto-correct.
492
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
493
+ Style/SpaceAroundEqualsInParameterDefault:
494
+ Enabled: false
495
+
496
+ # Offense count: 204
497
+ # Cop supports --auto-correct.
498
+ # Configuration parameters: MultiSpaceAllowedForOperators.
499
+ Style/SpaceAroundOperators:
500
+ Enabled: false
501
+
502
+ # Offense count: 84
503
+ # Cop supports --auto-correct.
504
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
505
+ Style/SpaceBeforeBlockBraces:
506
+ Enabled: false
507
+
508
+ # Offense count: 2
509
+ # Cop supports --auto-correct.
510
+ Style/SpaceBeforeComma:
511
+ Enabled: false
512
+
513
+ # Offense count: 272
514
+ # Cop supports --auto-correct.
515
+ # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
516
+ Style/SpaceInsideBlockBraces:
517
+ Enabled: false
518
+
519
+ # Offense count: 151
520
+ # Cop supports --auto-correct.
521
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
522
+ Style/SpaceInsideHashLiteralBraces:
523
+ Enabled: false
524
+
525
+ # Offense count: 1
526
+ # Cop supports --auto-correct.
527
+ Style/SpaceInsideParens:
528
+ Enabled: false
529
+
530
+ # Offense count: 1
531
+ # Cop supports --auto-correct.
532
+ Style/SpaceInsideRangeLiteral:
533
+ Enabled: false
534
+
535
+ # Offense count: 16
536
+ # Cop supports --auto-correct.
537
+ Style/SpecialGlobalVars:
538
+ Enabled: false
539
+
540
+ # Offense count: 2762
541
+ # Cop supports --auto-correct.
542
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
543
+ Style/StringLiterals:
544
+ Enabled: false
545
+
546
+ # Offense count: 450
547
+ # Cop supports --auto-correct.
548
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
549
+ Style/StringLiteralsInInterpolation:
550
+ Enabled: false
551
+
552
+ # Offense count: 12
553
+ # Cop supports --auto-correct.
554
+ # Configuration parameters: IgnoredMethods.
555
+ Style/SymbolProc:
556
+ Enabled: false
557
+
558
+ # Offense count: 348
559
+ # Cop supports --auto-correct.
560
+ Style/Tab:
561
+ Enabled: false
562
+
563
+ # Offense count: 9
564
+ # Cop supports --auto-correct.
565
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
566
+ Style/TrailingBlankLines:
567
+ Enabled: false
568
+
569
+ # Offense count: 32
570
+ # Cop supports --auto-correct.
571
+ # Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
572
+ Style/TrailingComma:
573
+ Enabled: false
574
+
575
+ # Offense count: 3
576
+ # Cop supports --auto-correct.
577
+ Style/TrailingWhitespace:
578
+ Enabled: false
579
+
580
+ # Offense count: 4
581
+ # Cop supports --auto-correct.
582
+ # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, Whitelist.
583
+ Style/TrivialAccessors:
584
+ Enabled: false
585
+
586
+ # Offense count: 3
587
+ Style/UnlessElse:
588
+ Enabled: false
589
+
590
+ # Offense count: 228
591
+ # Cop supports --auto-correct.
592
+ Style/UnneededPercentQ:
593
+ Enabled: false
594
+
595
+ # Offense count: 3
596
+ # Cop supports --auto-correct.
597
+ # Configuration parameters: MaxLineLength.
598
+ Style/WhileUntilModifier:
599
+ Enabled: false
600
+
601
+ # Offense count: 19
602
+ # Cop supports --auto-correct.
603
+ # Configuration parameters: WordRegex.
604
+ Style/WordArray:
605
+ MinSize: 7