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
@@ -1,312 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # Copyright(c) 2005 URABE, Shyouhei.
3
- #
4
- # Permission is hereby granted, free of charge, to any person obtaining a copy
5
- # of this code, to deal in the code without restriction, including without
6
- # limitation the rights to use, copy, modify, merge, publish, distribute,
7
- # sublicense, and/or sell copies of the code, and to permit persons to whom the
8
- # code is furnished to do so, subject to the following conditions:
9
- #
10
- # The above copyright notice and this permission notice shall be
11
- # included in all copies or substantial portions of the code.
12
- #
13
- # THE CODE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- # AUTHOR OR COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- # OUT OF OR IN CONNECTION WITH THE CODE OR THE USE OR OTHER DEALINGS IN THE
19
- # CODE.
20
-
21
- %w[
22
- digest/md5
23
- digest/sha1
24
- tmpdir
25
- ].each do |f|
26
- require f
27
- end
28
-
29
- # Pure ruby UUID generator, which is compatible with RFC4122
30
- class UUID
31
- # UUID epoch is 15th Oct. 1582
32
- UNIXEpoch = 0x01B21DD213814000 # in 100-nanoseconds resolution
33
-
34
- private_class_method :new
35
-
36
- private
37
- def initialize str
38
- tmp = str.unpack "C*"
39
- @num = tmp.inject do |r, i|
40
- r * 256 | i
41
- end
42
- @num.freeze
43
- self.freeze
44
- end
45
-
46
- public
47
-
48
- def raw_bytes
49
- ret = String.new
50
- tmp = @num
51
- 16.times do |i|
52
- x, y = tmp.divmod 256
53
- ret << y
54
- tmp = x
55
- end
56
- ret.reverse!
57
- ret
58
- end
59
-
60
- class << self
61
- def mask ver, str # :nodoc:
62
- ver = ver & 15
63
- v = str[6].ord
64
- v &= 0b0000_1111
65
- v |= ver << 4
66
- str[6] = v.chr
67
- r = str[8].ord
68
- r &= 0b0011_1111
69
- r |= 0b1000_0000
70
- str[8] = r.chr
71
- str
72
- end
73
-
74
- def prand # :nodoc:
75
- rand 0x100000000
76
- end
77
-
78
- private :mask, :prand
79
-
80
- # UUID generation using SHA1. Recommended over create_md5.
81
- # Namespace object is another UUID, some of them are pre-defined below.
82
- def create_sha1 str, namespace
83
- sha1 = Digest::SHA1.new
84
- sha1.update namespace.raw_bytes
85
- sha1.update str
86
- sum = sha1.digest
87
- raw = mask 5, sum[0..15]
88
- new raw
89
- end
90
-
91
- # UUID generation using MD5 (for backward compat.)
92
- def create_md5 str, namespace
93
- md5 = Digest::MD5.new
94
- md5.update namespace.raw_bytes
95
- md5.update str
96
- sum = md5.digest
97
- raw = mask 3, sum[0..16]
98
- new raw
99
- end
100
-
101
- # UUID generation using random-number generator. From it's random
102
- # nature, there's no warranty that the created ID is really universaly
103
- # unique.
104
- def create_random
105
- rnd = [prand, prand, prand, prand].pack "N4"
106
- raw = mask 4, rnd
107
- new raw
108
- end
109
-
110
- def read_state fp # :nodoc:
111
- fp.rewind
112
- Marshal.load fp.read
113
- end
114
-
115
- def write_state fp, c, m # :nodoc:
116
- fp.rewind
117
- str = Marshal.dump [c, m]
118
- fp.write str
119
- end
120
-
121
- private :read_state, :write_state
122
- STATE_FILE = 'ruby-uuid'
123
-
124
- # create the "version 1" UUID with current system clock, current UTC
125
- # timestamp, and the IEEE 802 address (so-called MAC address).
126
- #
127
- # Speed notice: it's slow. It writes some data into hard drive on every
128
- # invokation. If you want to speed this up, try remounting tmpdir with a
129
- # memory based filesystem (such as tmpfs). STILL slow? then no way but
130
- # rewrite it with c :)
131
- def create clock=nil, time=Time.now, mac_addr=nil
132
- c = t = m = nil
133
- Dir.chdir Dir.tmpdir do
134
- unless FileTest.exist? STATE_FILE then
135
- # Generate a pseudo MAC address because we have no pure-ruby way
136
- # to know the MAC address of the NIC this system uses. Note
137
- # that cheating with pseudo arresses here is completely legal:
138
- # see Section 4.5 of RFC4122 for details.
139
- sha1 = Digest::SHA1.new
140
- 256.times do
141
- r = [prand].pack "N"
142
- sha1.update r
143
- end
144
- ary = sha1.digest.bytes.to_a
145
- node = ary.last 6
146
- node[0] |= 0x01 # multicast bit
147
- node = node.pack "C*"
148
- k = rand 0x40000
149
- open STATE_FILE, 'w' do |fp|
150
- fp.flock IO::LOCK_EX
151
- write_state fp, k, node
152
- fp.chmod 0o777 # must be world writable
153
- end
154
- end
155
- open STATE_FILE, 'r+' do |fp|
156
- fp.flock IO::LOCK_EX
157
- c, m = read_state fp
158
- c += 1 # important; increment here
159
- write_state fp, c, m
160
- end
161
- end
162
- c = clock & 0b11_1111_1111_1111 if clock
163
- m = mac_addr if mac_addr
164
- time = Time.at time if time.is_a? Float
165
- case time
166
- when Time
167
- t = time.to_i * 10_000_000 + time.tv_usec * 10 + UNIXEpoch
168
- when Integer
169
- t = time + UNIXEpoch
170
- else
171
- raise TypeError, "cannot convert ``#{time}'' into Time."
172
- end
173
-
174
- tl = t & 0xFFFF_FFFF
175
- tm = t >> 32
176
- tm = tm & 0xFFFF
177
- th = t >> 48
178
- th = th & 0b0000_1111_1111_1111
179
- th = th | 0b0001_0000_0000_0000
180
- cl = c & 0b0000_0000_1111_1111
181
- ch = c & 0b0011_1111_0000_0000
182
- ch = ch >> 8
183
- ch = ch | 0b1000_0000
184
- pack tl, tm, th, ch, cl, m
185
- end
186
-
187
- # A simple GUID parser: just ignores unknown characters and convert
188
- # hexadecimal dump into 16-octet object.
189
- def parse obj
190
- str = obj.to_s.sub %r/\Aurn:uuid:/, ''
191
- str.gsub! %r/[^0-9A-Fa-f]/, ''
192
- raw = [str[0..31]].pack 'H*'
193
- new raw
194
- end
195
-
196
- # The 'primitive constructor' of this class
197
- # Note UUID.pack(uuid.unpack) == uuid
198
- def pack tl, tm, th, ch, cl, n
199
- raw = [tl, tm, th, ch, cl, n].pack "NnnCCa6"
200
- new raw
201
- end
202
- end
203
-
204
- # The 'primitive deconstructor', or the dual to pack.
205
- # Note UUID.pack(uuid.unpack) == uuid
206
- def unpack
207
- raw_bytes.unpack "NnnCCa6"
208
- end
209
-
210
- # The timestamp of this UUID.
211
- # Throws RageError if that time exceeds UNIX time range
212
- def time
213
- a = unpack
214
- tl = a[0]
215
- tm = a[1]
216
- th = a[2] & 0x0FFF
217
- t = tl
218
- t += tm << 32
219
- t += th << 48
220
- t -= UNIXEpoch
221
- tv_sec = t / 10_000_000
222
- t -= tv_sec * 10_000_000
223
- tv_usec = t / 10
224
- Time.at tv_sec, tv_usec
225
- end
226
-
227
- # The version of this UUID
228
- def version
229
- v = unpack[2] & 0b1111_0000_0000_0000
230
- v >> 12
231
- end
232
-
233
- # The clock sequence of this UUID
234
- def clock
235
- a = unpack
236
- ch = a[3] & 0b0001_1111
237
- cl = a[4]
238
- c = cl
239
- c += ch << 8
240
- c
241
- end
242
-
243
- # The IEEE 802 address in a hexadecimal format
244
- def node
245
- m = unpack[5].unpack 'C*'
246
- '%02x%02x%02x%02x%02x%02x' % m
247
- end
248
- alias_method :mac_address, :node
249
- alias_method :ieee802, :node
250
-
251
- # Generate the string representation (a.k.a GUID) of this UUID
252
- def to_s
253
- a = unpack
254
- a[-1] = mac_address
255
- "%08x-%04x-%04x-%02x%02x-%s" % a
256
- end
257
- alias_method :guid, :to_s
258
-
259
- # Convert into a RFC4122-comforming URN representation
260
- def to_uri
261
- "urn:uuid:" + self.to_s
262
- end
263
- alias_method :urn, :to_uri
264
- alias_method :inspect, :to_uri
265
-
266
- # Convert into 128-bit unsigned integer
267
- # Typically a Bignum instance, but can be a Fixnum.
268
- def to_int
269
- @num
270
- end
271
- alias_method :to_i, :to_int
272
-
273
- # Two UUIDs are said to be equal if and only if their (byte-order
274
- # canonicalized) integer representations are equivallent. Refer RFC4122 for
275
- # details.
276
- def == other
277
- to_i == other.to_i
278
- end
279
- alias_method :eql?, :==
280
-
281
- # Two identical UUIDs should have same hash
282
- def hash
283
- to_i
284
- end
285
-
286
- include Comparable
287
- # UUIDs are comparable (don't know what benefits are there, though).
288
- def <=> other
289
- to_s <=> other.to_s
290
- end
291
-
292
- # Pre-defined UUID Namespaces described in RFC4122 Appendix C.
293
- NameSpace_DNS = parse "6ba7b810-9dad-11d1-80b4-00c04fd430c8"
294
- NameSpace_URL = parse "6ba7b811-9dad-11d1-80b4-00c04fd430c8"
295
- NameSpace_OID = parse "6ba7b812-9dad-11d1-80b4-00c04fd430c8"
296
- NameSpace_X500 = parse "6ba7b814-9dad-11d1-80b4-00c04fd430c8"
297
-
298
- # The Nil UUID in RFC4122 Section 4.1.7
299
- Nil = parse "00000000-0000-0000-0000-000000000000"
300
- end
301
-
302
-
303
- # Local Variables:
304
- # mode: ruby
305
- # coding: utf-8
306
- # indent-tabs-mode: t
307
- # tab-width: 3
308
- # ruby-indent-level: 3
309
- # fill-column: 79
310
- # default-justification: full
311
- # End:
312
- # vi: ts=3 sw=3
@@ -1,456 +0,0 @@
1
- # This configuration was generated by `rubocop --auto-gen-config`
2
- # on 2014-03-27 13:46:06 +0900 using RuboCop version 0.19.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
- # Cop supports --auto-correct.
10
- # Configuration parameters: EnforcedStyle, SupportedStyles.
11
- AccessModifierIndentation:
12
- Enabled: false
13
-
14
- # Offense count: 1
15
- AccessorMethodName:
16
- Enabled: false
17
-
18
- # Offense count: 29
19
- # Cop supports --auto-correct.
20
- # Configuration parameters: EnforcedStyle, SupportedStyles.
21
- AlignParameters:
22
- Enabled: false
23
-
24
- # Offense count: 2
25
- AmbiguousOperator:
26
- Enabled: false
27
-
28
- # Offense count: 30
29
- # Cop supports --auto-correct.
30
- AndOr:
31
- Enabled: false
32
-
33
- # Offense count: 22
34
- AsciiComments:
35
- Enabled: false
36
-
37
- # Offense count: 34
38
- # Configuration parameters: AllowSafeAssignment.
39
- AssignmentInCondition:
40
- Enabled: false
41
-
42
- # Offense count: 1
43
- BlockAlignment:
44
- Enabled: false
45
-
46
- # Offense count: 1
47
- BlockComments:
48
- Enabled: false
49
-
50
- # Offense count: 10
51
- BlockNesting:
52
- Max: 4
53
-
54
- # Offense count: 114
55
- # Cop supports --auto-correct.
56
- Blocks:
57
- Enabled: false
58
-
59
- # Offense count: 31
60
- # Cop supports --auto-correct.
61
- # Configuration parameters: EnforcedStyle, SupportedStyles.
62
- BracesAroundHashParameters:
63
- Enabled: false
64
-
65
- # Offense count: 4
66
- CaseEquality:
67
- Enabled: false
68
-
69
- # Offense count: 1
70
- ClassAndModuleCamelCase:
71
- Enabled: false
72
-
73
- # Offense count: 4
74
- # Configuration parameters: EnforcedStyle, SupportedStyles.
75
- ClassAndModuleChildren:
76
- Enabled: false
77
-
78
- # Offense count: 28
79
- # Configuration parameters: CountComments.
80
- ClassLength:
81
- Max: 1003
82
-
83
- # Offense count: 35
84
- ClassMethods:
85
- Enabled: false
86
-
87
- # Offense count: 2
88
- ClassVars:
89
- Enabled: false
90
-
91
- # Offense count: 14
92
- # Cop supports --auto-correct.
93
- # Configuration parameters: PreferredMethods.
94
- CollectionMethods:
95
- Enabled: false
96
-
97
- # Offense count: 1
98
- # Cop supports --auto-correct.
99
- ColonMethodCall:
100
- Enabled: false
101
-
102
- # Offense count: 11
103
- # Configuration parameters: Keywords.
104
- CommentAnnotation:
105
- Enabled: false
106
-
107
- # Offense count: 1
108
- ConstantName:
109
- Enabled: false
110
-
111
- # Offense count: 52
112
- CyclomaticComplexity:
113
- Max: 64
114
-
115
- # Offense count: 98
116
- Documentation:
117
- Enabled: false
118
-
119
- # Offense count: 5
120
- # Cop supports --auto-correct.
121
- # Configuration parameters: AllowAdjacentOneLineDefs.
122
- EmptyLineBetweenDefs:
123
- Enabled: false
124
-
125
- # Offense count: 32
126
- # Cop supports --auto-correct.
127
- EmptyLines:
128
- Enabled: false
129
-
130
- # Offense count: 3
131
- EmptyLinesAroundAccessModifier:
132
- Enabled: false
133
-
134
- # Offense count: 101
135
- # Cop supports --auto-correct.
136
- EmptyLinesAroundBody:
137
- Enabled: false
138
-
139
- # Offense count: 3
140
- # Cop supports --auto-correct.
141
- EmptyLiteral:
142
- Enabled: false
143
-
144
- # Offense count: 1
145
- Eval:
146
- Enabled: false
147
-
148
- # Offense count: 4
149
- FavorUnlessOverNegatedIf:
150
- Enabled: false
151
-
152
- # Offense count: 11
153
- # Configuration parameters: Exclude.
154
- FileName:
155
- Enabled: false
156
-
157
- # Offense count: 1
158
- # Configuration parameters: EnforcedStyle, SupportedStyles.
159
- For:
160
- Enabled: false
161
-
162
- # Offense count: 22
163
- # Configuration parameters: EnforcedStyle, SupportedStyles.
164
- FormatString:
165
- Enabled: false
166
-
167
- # Offense count: 13
168
- # Configuration parameters: AllowedVariables.
169
- GlobalVars:
170
- Enabled: false
171
-
172
- # Offense count: 4
173
- # Cop supports --auto-correct.
174
- HashMethods:
175
- Enabled: false
176
-
177
- # Offense count: 42
178
- # Cop supports --auto-correct.
179
- # Configuration parameters: SupportedStyles.
180
- HashSyntax:
181
- EnforcedStyle: hash_rockets
182
-
183
- # Offense count: 34
184
- # Configuration parameters: MaxLineLength.
185
- IfUnlessModifier:
186
- Enabled: false
187
-
188
- # Offense count: 2
189
- # Cop supports --auto-correct.
190
- IndentArray:
191
- Enabled: false
192
-
193
- # Offense count: 2
194
- # Cop supports --auto-correct.
195
- # Configuration parameters: EnforcedStyle, SupportedStyles.
196
- IndentHash:
197
- Enabled: false
198
-
199
- # Offense count: 36
200
- # Cop supports --auto-correct.
201
- IndentationConsistency:
202
- Enabled: false
203
-
204
- # Offense count: 59
205
- # Cop supports --auto-correct.
206
- IndentationWidth:
207
- Enabled: false
208
-
209
- # Offense count: 19
210
- # Cop supports --auto-correct.
211
- LeadingCommentSpace:
212
- Enabled: false
213
-
214
- # Offense count: 6
215
- # Cop supports --auto-correct.
216
- LineEndConcatenation:
217
- Enabled: false
218
-
219
- # Offense count: 696
220
- LineLength:
221
- Max: 739
222
-
223
- # Offense count: 109
224
- # Cop supports --auto-correct.
225
- MethodCallParentheses:
226
- Enabled: false
227
-
228
- # Offense count: 11
229
- # Cop supports --auto-correct.
230
- # Configuration parameters: EnforcedStyle, SupportedStyles.
231
- MethodDefParentheses:
232
- Enabled: false
233
-
234
- # Offense count: 226
235
- # Configuration parameters: CountComments.
236
- MethodLength:
237
- Max: 426
238
-
239
- # Offense count: 17
240
- # Configuration parameters: EnforcedStyle, SupportedStyles.
241
- MethodName:
242
- Enabled: false
243
-
244
- # Offense count: 1
245
- MultilineIfThen:
246
- Enabled: false
247
-
248
- # Offense count: 6
249
- Not:
250
- Enabled: false
251
-
252
- # Offense count: 2
253
- # Cop supports --auto-correct.
254
- NumericLiterals:
255
- MinDigits: 7
256
-
257
- # Offense count: 1
258
- OpMethod:
259
- Enabled: false
260
-
261
- # Offense count: 2
262
- # Configuration parameters: CountKeywordArgs.
263
- ParameterLists:
264
- Max: 6
265
-
266
- # Offense count: 2
267
- # Cop supports --auto-correct.
268
- # Configuration parameters: AllowSafeAssignment.
269
- ParenthesesAroundCondition:
270
- Enabled: false
271
-
272
- # Offense count: 2
273
- ParenthesesAsGroupedExpression:
274
- Enabled: false
275
-
276
- # Offense count: 473
277
- # Cop supports --auto-correct.
278
- # Configuration parameters: PreferredDelimiters.
279
- PercentLiteralDelimiters:
280
- Enabled: false
281
-
282
- # Offense count: 36
283
- # Cop supports --auto-correct.
284
- PerlBackrefs:
285
- Enabled: false
286
-
287
- # Offense count: 1
288
- # Configuration parameters: NamePrefixBlacklist.
289
- PredicateName:
290
- Enabled: false
291
-
292
- # Offense count: 4
293
- RedundantBegin:
294
- Enabled: false
295
-
296
- # Offense count: 15
297
- # Cop supports --auto-correct.
298
- # Configuration parameters: AllowMultipleReturnValues.
299
- RedundantReturn:
300
- Enabled: false
301
-
302
- # Offense count: 8
303
- # Cop supports --auto-correct.
304
- RedundantSelf:
305
- Enabled: false
306
-
307
- # Offense count: 18
308
- # Configuration parameters: MaxSlashes.
309
- RegexpLiteral:
310
- Enabled: false
311
-
312
- # Offense count: 8
313
- SelfAssignment:
314
- Enabled: false
315
-
316
- # Offense count: 5
317
- # Cop supports --auto-correct.
318
- # Configuration parameters: AllowAsExpressionSeparator.
319
- Semicolon:
320
- Enabled: false
321
-
322
- # Offense count: 2
323
- ShadowingOuterLocalVariable:
324
- Enabled: false
325
-
326
- # Offense count: 40
327
- # Cop supports --auto-correct.
328
- # Configuration parameters: EnforcedStyle, SupportedStyles.
329
- SignalException:
330
- Enabled: false
331
-
332
- # Offense count: 5
333
- # Configuration parameters: Methods.
334
- SingleLineBlockParams:
335
- Enabled: false
336
-
337
- # Offense count: 4
338
- # Cop supports --auto-correct.
339
- # Configuration parameters: AllowIfMethodIsEmpty.
340
- SingleLineMethods:
341
- Enabled: false
342
-
343
- # Offense count: 230
344
- # Cop supports --auto-correct.
345
- SpaceAfterComma:
346
- Enabled: false
347
-
348
- # Offense count: 2
349
- # Cop supports --auto-correct.
350
- SpaceAfterNot:
351
- Enabled: false
352
-
353
- # Offense count: 8
354
- # Cop supports --auto-correct.
355
- SpaceAfterSemicolon:
356
- Enabled: false
357
-
358
- # Offense count: 36
359
- # Cop supports --auto-correct.
360
- # Configuration parameters: EnforcedStyle, SupportedStyles.
361
- SpaceAroundEqualsInParameterDefault:
362
- Enabled: false
363
-
364
- # Offense count: 152
365
- # Cop supports --auto-correct.
366
- SpaceAroundOperators:
367
- Enabled: false
368
-
369
- # Offense count: 55
370
- # Cop supports --auto-correct.
371
- # Configuration parameters: EnforcedStyle, SupportedStyles.
372
- SpaceBeforeBlockBraces:
373
- Enabled: false
374
-
375
- # Offense count: 232
376
- # Cop supports --auto-correct.
377
- # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
378
- SpaceInsideBlockBraces:
379
- Enabled: false
380
-
381
- # Offense count: 75
382
- # Cop supports --auto-correct.
383
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
384
- SpaceInsideHashLiteralBraces:
385
- Enabled: false
386
-
387
- # Offense count: 2
388
- # Cop supports --auto-correct.
389
- SpaceInsideParens:
390
- Enabled: false
391
-
392
- # Offense count: 13
393
- # Cop supports --auto-correct.
394
- SpecialGlobalVars:
395
- Enabled: false
396
-
397
- # Offense count: 2407
398
- # Cop supports --auto-correct.
399
- # Configuration parameters: EnforcedStyle, SupportedStyles.
400
- StringLiterals:
401
- Enabled: false
402
-
403
- # Offense count: 348
404
- Tab:
405
- Enabled: false
406
-
407
- # Offense count: 6
408
- # Cop supports --auto-correct.
409
- TrailingBlankLines:
410
- Enabled: false
411
-
412
- # Offense count: 34
413
- # Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
414
- TrailingComma:
415
- Enabled: false
416
-
417
- # Offense count: 8
418
- # Configuration parameters: ExactNameMatch, AllowPredicates, Whitelist.
419
- TrivialAccessors:
420
- Enabled: false
421
-
422
- # Offense count: 3
423
- UnlessElse:
424
- Enabled: false
425
-
426
- # Offense count: 18
427
- UselessAssignment:
428
- Enabled: false
429
-
430
- # Offense count: 1
431
- # Configuration parameters: EnforcedStyle, SupportedStyles.
432
- VariableName:
433
- Enabled: false
434
-
435
- # Offense count: 3
436
- # Configuration parameters: MaxLineLength.
437
- WhileUntilModifier:
438
- Enabled: false
439
-
440
- # Offense count: 31
441
- # Cop supports --auto-correct.
442
- WordArray:
443
- MinSize: 7
444
-
445
- BarePercentLiterals:
446
- Enabled: false
447
-
448
- UnusedMethodArgument:
449
- Enabled: false
450
-
451
- PercentQLiterals:
452
- Enabled: false
453
-
454
- UnneededPercentQ:
455
- Enabled: false
456
-