review 2.0.0.beta1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +66 -1
  3. data/.rubocop_todo.yml +617 -0
  4. data/.travis.yml +16 -1
  5. data/ChangeLog +48 -0
  6. data/Dockerfile +22 -0
  7. data/Gemfile +0 -1
  8. data/README.md +97 -0
  9. data/Rakefile +10 -11
  10. data/appveyor.yml +9 -0
  11. data/bin/review +46 -0
  12. data/bin/review-check +8 -21
  13. data/bin/review-compile +26 -43
  14. data/bin/review-index +9 -22
  15. data/bin/review-init +21 -25
  16. data/bin/review-preproc +9 -13
  17. data/bin/review-validate +1 -1
  18. data/bin/review-vol +3 -17
  19. data/bin/review-webmaker +15 -0
  20. data/doc/NEWS.ja.md +534 -0
  21. data/doc/NEWS.md +538 -0
  22. data/doc/catalog.ja.md +10 -18
  23. data/doc/catalog.md +5 -9
  24. data/doc/config.yml.sample +319 -0
  25. data/doc/customize_epub.ja.md +42 -0
  26. data/doc/format.ja.md +320 -288
  27. data/doc/format.md +277 -170
  28. data/doc/format_idg.ja.md +82 -175
  29. data/doc/pdfmaker.ja.md +61 -0
  30. data/doc/pdfmaker.md +65 -0
  31. data/doc/quickstart.ja.md +88 -98
  32. data/doc/quickstart.md +72 -110
  33. data/doc/sample.css +41 -0
  34. data/doc/writing_vertical.ja.md +55 -0
  35. data/doc/writing_vertical.md +5 -0
  36. data/lib/epubmaker/content.rb +3 -3
  37. data/lib/epubmaker/epubcommon.rb +173 -145
  38. data/lib/epubmaker/epubv2.rb +24 -77
  39. data/lib/epubmaker/epubv3.rb +72 -73
  40. data/lib/epubmaker/producer.rb +54 -30
  41. data/lib/lineinput.rb +48 -0
  42. data/lib/review/book.rb +0 -1
  43. data/lib/review/book/base.rb +47 -27
  44. data/lib/review/book/chapter.rb +48 -19
  45. data/lib/review/book/compilable.rb +10 -14
  46. data/lib/review/book/index.rb +10 -19
  47. data/lib/review/book/page_metric.rb +0 -10
  48. data/lib/review/book/part.rb +17 -3
  49. data/lib/review/builder.rb +84 -68
  50. data/lib/review/catalog.rb +5 -1
  51. data/lib/review/compiler.rb +327 -4657
  52. data/lib/review/configure.rb +84 -10
  53. data/lib/review/converter.rb +28 -0
  54. data/lib/review/epubbuilder.rb +1 -1
  55. data/lib/review/epubmaker.rb +142 -158
  56. data/lib/review/ewbbuilder.rb +5 -5
  57. data/lib/review/exception.rb +1 -1
  58. data/lib/review/extentions.rb +1 -1
  59. data/lib/review/extentions/hash.rb +15 -0
  60. data/lib/review/extentions/string.rb +2 -1
  61. data/lib/review/htmlbuilder.rb +364 -348
  62. data/lib/review/htmltoc.rb +44 -0
  63. data/lib/review/htmlutils.rb +12 -6
  64. data/lib/review/i18n.rb +78 -6
  65. data/lib/review/i18n.yml +7 -4
  66. data/lib/review/idgxmlbuilder.rb +226 -267
  67. data/lib/review/latexbuilder.rb +281 -274
  68. data/lib/review/latexutils.rb +56 -49
  69. data/lib/review/makerhelper.rb +8 -4
  70. data/lib/review/markdownbuilder.rb +80 -124
  71. data/lib/review/pdfmaker.rb +197 -138
  72. data/lib/review/preprocessor.rb +16 -67
  73. data/lib/review/template.rb +24 -0
  74. data/lib/review/textbuilder.rb +1 -1
  75. data/lib/review/textutils.rb +18 -24
  76. data/lib/review/tocparser.rb +51 -106
  77. data/lib/review/tocprinter.rb +61 -117
  78. data/lib/review/topbuilder.rb +119 -126
  79. data/lib/review/unfold.rb +2 -2
  80. data/lib/review/version.rb +1 -1
  81. data/lib/review/webmaker.rb +302 -0
  82. data/lib/review/webtocprinter.rb +48 -0
  83. data/lib/review/yamlloader.rb +47 -0
  84. data/review.gemspec +3 -3
  85. data/templates/html/layout-html5.html.erb +17 -0
  86. data/templates/html/layout-xhtml1.html.erb +20 -0
  87. data/{lib/review → templates/latex}/layout.tex.erb +107 -115
  88. data/templates/ncx/epubv2.ncx.erb +11 -0
  89. data/templates/opf/epubv2.opf.erb +21 -0
  90. data/templates/opf/epubv3.opf.erb +18 -0
  91. data/templates/web/html/layout-html5.html.erb +56 -0
  92. data/templates/web/html/layout-xhtml1.html.erb +20 -0
  93. data/templates/xml/container.xml.erb +6 -0
  94. data/test/assets/test.xml.erb +3 -0
  95. data/test/assets/test_template.tex +28 -71
  96. data/test/assets/test_template_backmatter.tex +1 -9
  97. data/test/sample-book/src/Rakefile +12 -3
  98. data/{doc/sample.yml → test/sample-book/src/config-epub2.yml} +92 -147
  99. data/test/sample-book/src/config.yml +40 -154
  100. data/test/sample-book/src/style-web.css +45 -0
  101. data/test/sample-book/src/style.css +23 -1
  102. data/test/test.re +1 -1
  103. data/test/test_book.rb +15 -17
  104. data/test/test_book_chapter.rb +2 -80
  105. data/test/test_book_part.rb +1 -1
  106. data/test/test_builder.rb +28 -6
  107. data/test/test_catalog.rb +17 -0
  108. data/test/test_compiler.rb +14 -59
  109. data/test/test_configure.rb +94 -0
  110. data/test/test_converter.rb +21 -0
  111. data/test/test_epub3maker.rb +155 -3
  112. data/test/test_epubmaker.rb +245 -30
  113. data/test/test_epubmaker_cmd.rb +2 -2
  114. data/test/test_extentions_hash.rb +60 -0
  115. data/test/test_helper.rb +4 -47
  116. data/test/test_htmlbuilder.rb +282 -175
  117. data/test/test_htmltoc.rb +33 -0
  118. data/test/test_i18n.rb +134 -70
  119. data/test/test_idgxmlbuilder.rb +58 -39
  120. data/test/test_latexbuilder.rb +132 -14
  121. data/test/test_lineinput.rb +5 -26
  122. data/test/test_makerhelper.rb +6 -4
  123. data/test/test_markdownbuilder.rb +23 -5
  124. data/test/test_pdfmaker.rb +86 -20
  125. data/test/test_pdfmaker_cmd.rb +1 -3
  126. data/test/test_review_ext.rb +1 -1
  127. data/test/test_template.rb +27 -0
  128. data/test/test_textutils.rb +36 -0
  129. data/test/test_tocparser.rb +25 -0
  130. data/test/test_topbuilder.rb +34 -2
  131. data/test/test_yamlloader.rb +188 -0
  132. metadata +71 -29
  133. data/README.rdoc +0 -81
  134. data/bin/review-epubmaker-legacy +0 -1024
  135. data/doc/ruby-uuid/README +0 -11
  136. data/doc/ruby-uuid/README.ja +0 -34
  137. data/lib/review/compiler/literals_1_8.kpeg +0 -19
  138. data/lib/review/compiler/literals_1_8.rb +0 -432
  139. data/lib/review/compiler/literals_1_9.kpeg +0 -22
  140. data/lib/review/compiler/literals_1_9.rb +0 -435
  141. data/lib/review/extentions/array.rb +0 -25
  142. data/lib/review/htmllayout.rb +0 -41
  143. data/lib/review/inaobuilder.rb +0 -357
  144. data/lib/review/location.rb +0 -24
  145. data/lib/review/node.rb +0 -267
  146. data/lib/review/review.kpeg +0 -724
  147. data/lib/uuid.rb +0 -312
  148. data/rubocop-todo.yml +0 -456
  149. data/test/test_inaobuilder.rb +0 -247
  150. data/test/test_uuid.rb +0 -157
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 82a5efdce4b15d0add6f2997f5e98b19dee1f83a
4
- data.tar.gz: f4a04d0a1808a72e489d1271351d68d3cd23f492
3
+ metadata.gz: 898ea979cb6912d1c67e1db172c9450c380d8220
4
+ data.tar.gz: ea8a71cea832f5d3f5844bc8a330ac0b6aa3c247
5
5
  SHA512:
6
- metadata.gz: 827e1cd15bfc144217b36c859e31c3eecfa706415fd5a741b9e9e259a509c8e5f9b10f70a8d7cafebaac77a960473d5d2e1009e069b8910cf7b82a5d0e3213b5
7
- data.tar.gz: a77e6829d1dd2f49c00505fd3c4f40e4c2d9ef379ed580f4a2e46d4a9358b1fa56f8a7d3227e7928cfc631bce75ad81192f041fc0bd880eb96f4721bfdbc9daa
6
+ metadata.gz: 51f9364880ed42c7c8af3c15917daa45b0535eedade50b7fbb98221fcab074803be8129a2ac830aa893c38dfc7714807d4eae4fbcd2456a2edbdb22ecc5322e0
7
+ data.tar.gz: 97d01113fe323626412017dde0faedca800fe75484c3a5972c0c2abd9e28054fe1366b17fc835434e1aa06fecdae33ccda85119a436cd44db0d5c16464a9a2e1
@@ -1 +1,66 @@
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
+ Performance/RangeInclude:
26
+ Enabled: false
27
+
28
+ # Use alias_method instead of alias.
29
+ Style/Alias:
30
+ Enabled: false
31
+
32
+ # Do not introduce global variables.
33
+ Style/GlobalVars:
34
+ Enabled: true
35
+
36
+ # Use self-assignment shorthand +=.
37
+ Style/SelfAssignment:
38
+ Enabled: true
39
+
40
+ # When defining the == operator, name its argument other.
41
+ Style/OpMethod:
42
+ Enabled: true
43
+
44
+ # Use snake_case for variable names.
45
+ Style/VariableName:
46
+ Enabled: true
47
+
48
+ Style/ConditionalAssignment:
49
+ Enabled: false
50
+
51
+ Style/MutableConstant:
52
+ Enabled: false
53
+
54
+ Style/UnneededInterpolation:
55
+ Enabled: false
56
+
57
+ Performance/RedundantMerge:
58
+ Enabled: false
59
+
60
+ Style/ZeroLengthPredicate:
61
+ Enabled: false
62
+
63
+ ##################### Metrics ##################################
64
+
65
+ Metrics/ClassLength:
66
+ Max: 1500
@@ -0,0 +1,617 @@
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/TrailingCommaInLiteral:
573
+ Enabled: false
574
+
575
+ Style/TrailingCommaInArguments:
576
+ Enabled: false
577
+
578
+ # Offense count: 3
579
+ # Cop supports --auto-correct.
580
+ Style/TrailingWhitespace:
581
+ Enabled: false
582
+
583
+ # Offense count: 4
584
+ # Cop supports --auto-correct.
585
+ # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, Whitelist.
586
+ Style/TrivialAccessors:
587
+ Enabled: false
588
+
589
+ # Offense count: 3
590
+ Style/UnlessElse:
591
+ Enabled: false
592
+
593
+ # Offense count: 228
594
+ # Cop supports --auto-correct.
595
+ Style/UnneededPercentQ:
596
+ Enabled: false
597
+
598
+ # Offense count: 3
599
+ # Cop supports --auto-correct.
600
+ # Configuration parameters: MaxLineLength.
601
+ Style/WhileUntilModifier:
602
+ Enabled: false
603
+
604
+ # Offense count: 19
605
+ # Cop supports --auto-correct.
606
+ # Configuration parameters: WordRegex.
607
+ Style/WordArray:
608
+ MinSize: 10
609
+
610
+ Style/IfInsideElse:
611
+ Enabled: false
612
+
613
+ Performance/RedundantMatch:
614
+ Enabled: false
615
+
616
+ Performance/Casecmp:
617
+ Enabled: false