review 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +36 -0
- data/.rubocop.yml +1 -0
- data/ChangeLog +102 -0
- data/README.rdoc +2 -2
- data/bin/review-check +18 -16
- data/bin/review-compile +49 -42
- data/bin/review-epubmaker +23 -993
- data/bin/review-epubmaker-legacy +1024 -0
- data/bin/review-index +17 -15
- data/bin/review-init +39 -9
- data/bin/review-pdfmaker +124 -89
- data/bin/review-preproc +16 -14
- data/bin/review-vol +17 -15
- data/debian/docs +1 -1
- data/doc/catalog.rdoc +34 -0
- data/doc/format.rdoc +16 -2
- data/doc/libepubmaker/{config.yaml → config.yml} +63 -19
- data/doc/quickstart.rdoc +1 -1
- data/doc/{sample.yaml → sample.yml} +0 -0
- data/lib/epubmaker.rb +1 -1
- data/lib/epubmaker/content.rb +9 -1
- data/lib/epubmaker/epubv2.rb +59 -7
- data/lib/epubmaker/epubv3.rb +14 -9
- data/lib/epubmaker/producer.rb +68 -27
- data/lib/epubmaker/resource.rb +3 -1
- data/lib/lineinput.rb +2 -2
- data/lib/review/book/base.rb +125 -24
- data/lib/review/book/chapter.rb +42 -0
- data/lib/review/book/compilable.rb +23 -4
- data/lib/review/book/image_finder.rb +64 -0
- data/lib/review/book/index.rb +64 -50
- data/lib/review/book/page_metric.rb +1 -1
- data/lib/review/builder.rb +19 -12
- data/lib/review/catalog.rb +47 -0
- data/lib/review/compiler.rb +3 -2
- data/lib/review/configure.rb +5 -3
- data/lib/review/epubmaker.rb +130 -46
- data/lib/review/ewbbuilder.rb +27 -31
- data/lib/review/extentions/string.rb +4 -4
- data/lib/review/htmlbuilder.rb +140 -79
- data/lib/review/htmllayout.rb +26 -4
- data/lib/review/htmlutils.rb +20 -1
- data/lib/review/i18n.rb +5 -2
- data/lib/review/{i18n.yaml → i18n.yml} +4 -2
- data/lib/review/idgxmlbuilder.rb +65 -39
- data/lib/review/latexbuilder.rb +72 -24
- data/lib/review/latexutils.rb +3 -1
- data/lib/review/makerhelper.rb +8 -2
- data/lib/review/preprocessor.rb +20 -20
- data/lib/review/review.tex.erb +4 -0
- data/lib/review/sec_counter.rb +9 -11
- data/lib/review/tocparser.rb +2 -2
- data/lib/review/tocprinter.rb +12 -12
- data/lib/review/topbuilder.rb +15 -15
- data/lib/review/version.rb +1 -1
- data/lib/uuid.rb +7 -7
- data/review.gemspec +2 -2
- data/rubocop-todo.yml +443 -0
- data/test/sample-book/src/config.yml +2 -2
- data/test/sample-book/src/{main.css → style.css} +0 -0
- data/test/test_book.rb +46 -48
- data/test/test_book_chapter.rb +25 -13
- data/test/test_builder.rb +3 -3
- data/test/test_catalog.rb +107 -0
- data/test/test_epubmaker.rb +6 -6
- data/test/test_htmlbuilder.rb +160 -39
- data/test/test_htmlutils.rb +22 -0
- data/test/test_i18n.rb +2 -2
- data/test/test_idgxmlbuilder.rb +33 -47
- data/test/test_image_finder.rb +82 -0
- data/test/test_inaobuilder.rb +1 -1
- data/test/test_latexbuilder.rb +35 -39
- data/test/test_lineinput.rb +2 -2
- data/test/test_markdownbuilder.rb +2 -2
- data/test/test_topbuilder.rb +39 -23
- metadata +23 -14
- data/bin/review-epubmaker-ng +0 -23
data/lib/review/tocparser.rb
CHANGED
@@ -119,14 +119,14 @@ module ReVIEW
|
|
119
119
|
def add_child(c)
|
120
120
|
@children.push c
|
121
121
|
end
|
122
|
-
|
122
|
+
|
123
123
|
def each_node(&block)
|
124
124
|
@children.each do |c|
|
125
125
|
yield c
|
126
126
|
c.each(&block)
|
127
127
|
end
|
128
128
|
end
|
129
|
-
|
129
|
+
|
130
130
|
def each_child(&block)
|
131
131
|
@children.each(&block)
|
132
132
|
end
|
data/lib/review/tocprinter.rb
CHANGED
@@ -25,7 +25,7 @@ module ReVIEW
|
|
25
25
|
|
26
26
|
def initialize(print_upper, param)
|
27
27
|
@print_upper = print_upper
|
28
|
-
@
|
28
|
+
@config = param
|
29
29
|
end
|
30
30
|
|
31
31
|
def print?(level)
|
@@ -35,22 +35,22 @@ module ReVIEW
|
|
35
35
|
def nkffilter(line)
|
36
36
|
inc = ""
|
37
37
|
outc = "-w"
|
38
|
-
if @
|
38
|
+
if @config["inencoding"] =~ /^EUC$/
|
39
39
|
inc = "-E"
|
40
|
-
elsif @
|
40
|
+
elsif @config["inencoding"] =~ /^SJIS$/
|
41
41
|
inc = "-S"
|
42
|
-
elsif @
|
42
|
+
elsif @config["inencoding"] =~ /^JIS$/
|
43
43
|
inc = "-J"
|
44
44
|
end
|
45
|
-
|
46
|
-
if @
|
45
|
+
|
46
|
+
if @config["outencoding"] =~ /^EUC$/
|
47
47
|
outc = "-e"
|
48
|
-
elsif @
|
48
|
+
elsif @config["outencoding"] =~ /^SJIS$/
|
49
49
|
outc = "-s"
|
50
|
-
elsif @
|
50
|
+
elsif @config["outencoding"] =~ /^JIS$/
|
51
51
|
outc = "-j"
|
52
52
|
end
|
53
|
-
|
53
|
+
|
54
54
|
NKF.nkf("#{inc} #{outc}", line)
|
55
55
|
end
|
56
56
|
end
|
@@ -126,9 +126,9 @@ module ReVIEW
|
|
126
126
|
end
|
127
127
|
end
|
128
128
|
end
|
129
|
-
puts HTMLLayout.new(
|
130
|
-
|
131
|
-
|
129
|
+
puts HTMLLayout.new(
|
130
|
+
{'body' => html, 'title' => "目次"},
|
131
|
+
File.join(book.basedir, "layouts", "layout.erb")).result
|
132
132
|
end
|
133
133
|
|
134
134
|
private
|
data/lib/review/topbuilder.rb
CHANGED
@@ -171,7 +171,7 @@ module ReVIEW
|
|
171
171
|
else
|
172
172
|
raise "caption level too deep or unsupported: #{level}"
|
173
173
|
end
|
174
|
-
prefix = "" if (level.to_i >
|
174
|
+
prefix = "" if (level.to_i > @book.config["secnolevel"])
|
175
175
|
puts "■H#{level}■#{prefix}#{compile_inline(caption)}"
|
176
176
|
end
|
177
177
|
|
@@ -230,7 +230,7 @@ module ReVIEW
|
|
230
230
|
blank
|
231
231
|
end
|
232
232
|
|
233
|
-
|
233
|
+
alias_method :lead, :read
|
234
234
|
|
235
235
|
def inline_list(id)
|
236
236
|
chapter, id = extract_chapter_id(id)
|
@@ -381,7 +381,7 @@ module ReVIEW
|
|
381
381
|
def td(str)
|
382
382
|
str
|
383
383
|
end
|
384
|
-
|
384
|
+
|
385
385
|
def table_end
|
386
386
|
puts "◆→終了:#{@titles["table"]}←◆"
|
387
387
|
blank
|
@@ -461,7 +461,7 @@ module ReVIEW
|
|
461
461
|
"★#{str}☆"
|
462
462
|
end
|
463
463
|
|
464
|
-
|
464
|
+
alias_method :inline_strong, :inline_b
|
465
465
|
|
466
466
|
def inline_tt(str)
|
467
467
|
"△#{str}☆"
|
@@ -471,7 +471,7 @@ module ReVIEW
|
|
471
471
|
"★#{str}☆◆→等幅フォント太字←◆"
|
472
472
|
end
|
473
473
|
|
474
|
-
|
474
|
+
alias_method :inline_ttbold, :inline_ttb
|
475
475
|
|
476
476
|
def inline_tti(str)
|
477
477
|
"▲#{str}☆◆→等幅フォントイタ←◆"
|
@@ -523,12 +523,12 @@ module ReVIEW
|
|
523
523
|
|
524
524
|
def common_column_begin(type, caption)
|
525
525
|
blank
|
526
|
-
puts "◆→開始:#{@titles[
|
526
|
+
puts "◆→開始:#{@titles[type]}←◆"
|
527
527
|
puts %Q[■#{compile_inline(caption)}]
|
528
528
|
end
|
529
529
|
|
530
530
|
def common_column_end(type)
|
531
|
-
puts %Q[◆→終了:#{@titles[
|
531
|
+
puts %Q[◆→終了:#{@titles[type]}←◆]
|
532
532
|
blank
|
533
533
|
end
|
534
534
|
|
@@ -676,7 +676,7 @@ module ReVIEW
|
|
676
676
|
base_block "insn", lines, caption
|
677
677
|
end
|
678
678
|
|
679
|
-
|
679
|
+
alias_method :box, :insn
|
680
680
|
|
681
681
|
def indepimage(id, caption=nil, metric=nil)
|
682
682
|
blank
|
@@ -690,7 +690,7 @@ module ReVIEW
|
|
690
690
|
blank
|
691
691
|
end
|
692
692
|
|
693
|
-
|
693
|
+
alias_method :numberlessimage, :indepimage
|
694
694
|
|
695
695
|
def label(id)
|
696
696
|
# FIXME
|
@@ -727,11 +727,11 @@ module ReVIEW
|
|
727
727
|
def inline_br(str)
|
728
728
|
%Q(\n)
|
729
729
|
end
|
730
|
-
|
730
|
+
|
731
731
|
def text(str)
|
732
732
|
str
|
733
733
|
end
|
734
|
-
|
734
|
+
|
735
735
|
def inline_chap(id)
|
736
736
|
#"「第#{super}章 #{inline_title(id)}」"
|
737
737
|
# "第#{super}章"
|
@@ -740,9 +740,9 @@ module ReVIEW
|
|
740
740
|
|
741
741
|
def inline_chapref(id)
|
742
742
|
chs = ["", "「", "」"]
|
743
|
-
unless
|
744
|
-
_chs = convert_inencoding(
|
745
|
-
|
743
|
+
unless @book.config["chapref"].nil?
|
744
|
+
_chs = convert_inencoding(@book.config["chapref"],
|
745
|
+
@book.config["inencoding"]).split(",")
|
746
746
|
if _chs.size != 3
|
747
747
|
error "--chapsplitter must have exactly 3 parameters with comma."
|
748
748
|
else
|
@@ -768,7 +768,7 @@ module ReVIEW
|
|
768
768
|
%Q(「◆→#{idref}←◆」) # 節、項を参照
|
769
769
|
end
|
770
770
|
|
771
|
-
|
771
|
+
alias_method :inline_ref, :inline_labelref
|
772
772
|
|
773
773
|
def inline_pageref(idref)
|
774
774
|
%Q(●ページ◆→#{idref}←◆) # ページ番号を参照
|
data/lib/review/version.rb
CHANGED
data/lib/uuid.rb
CHANGED
@@ -245,8 +245,8 @@ class UUID
|
|
245
245
|
m = unpack[5].unpack 'C*'
|
246
246
|
'%02x%02x%02x%02x%02x%02x' % m
|
247
247
|
end
|
248
|
-
|
249
|
-
|
248
|
+
alias_method :mac_address, :node
|
249
|
+
alias_method :ieee802, :node
|
250
250
|
|
251
251
|
# Generate the string representation (a.k.a GUID) of this UUID
|
252
252
|
def to_s
|
@@ -254,21 +254,21 @@ class UUID
|
|
254
254
|
a[-1] = mac_address
|
255
255
|
"%08x-%04x-%04x-%02x%02x-%s" % a
|
256
256
|
end
|
257
|
-
|
257
|
+
alias_method :guid, :to_s
|
258
258
|
|
259
259
|
# Convert into a RFC4122-comforming URN representation
|
260
260
|
def to_uri
|
261
261
|
"urn:uuid:" + self.to_s
|
262
262
|
end
|
263
|
-
|
264
|
-
|
263
|
+
alias_method :urn, :to_uri
|
264
|
+
alias_method :inspect, :to_uri
|
265
265
|
|
266
266
|
# Convert into 128-bit unsigned integer
|
267
267
|
# Typically a Bignum instance, but can be a Fixnum.
|
268
268
|
def to_int
|
269
269
|
@num
|
270
270
|
end
|
271
|
-
|
271
|
+
alias_method :to_i, :to_int
|
272
272
|
|
273
273
|
# Two UUIDs are said to be equal if and only if their (byte-order
|
274
274
|
# canonicalized) integer representations are equivallent. Refer RFC4122 for
|
@@ -276,7 +276,7 @@ class UUID
|
|
276
276
|
def == other
|
277
277
|
to_i == other.to_i
|
278
278
|
end
|
279
|
-
|
279
|
+
alias_method :eql?, :==
|
280
280
|
|
281
281
|
# Two identical UUIDs should have same hash
|
282
282
|
def hash
|
data/review.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
|
|
13
13
|
gem.summary = "Re:VIEW: a easy-to-use digital publishing system"
|
14
14
|
gem.description = "Re:VIEW is a digital publishing system for books and ebooks. It supports InDesign, EPUB and LaTeX."
|
15
15
|
gem.required_rubygems_version = Gem::Requirement.new(">= 0") if gem.respond_to? :required_rubygems_version=
|
16
|
-
gem.date = "2014-
|
16
|
+
gem.date = "2014-06-29"
|
17
17
|
|
18
18
|
gem.files = `git ls-files`.split("\n")
|
19
19
|
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
@@ -24,6 +24,6 @@ Gem::Specification.new do |gem|
|
|
24
24
|
]
|
25
25
|
gem.require_paths = ["lib"]
|
26
26
|
|
27
|
-
gem.add_development_dependency("rake"
|
27
|
+
gem.add_development_dependency("rake")
|
28
28
|
end
|
29
29
|
|
data/rubocop-todo.yml
ADDED
@@ -0,0 +1,443 @@
|
|
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
|