review 5.1.1 → 5.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby-tex.yml +6 -2
- data/.github/workflows/ruby-win.yml +6 -2
- data/.github/workflows/ruby.yml +6 -2
- data/.rubocop.yml +5 -319
- data/NEWS.ja.md +149 -0
- data/NEWS.md +149 -1
- data/README.md +9 -8
- data/bin/review +1 -1
- data/bin/review-catalog-converter +15 -15
- data/bin/review-check +7 -7
- data/bin/review-compile +14 -23
- data/bin/review-index +1 -1
- data/bin/review-preproc +29 -35
- data/bin/review-validate +2 -2
- data/doc/config.yml.sample +9 -1
- data/doc/config.yml.sample-simple +1 -1
- data/doc/format.ja.md +29 -3
- data/doc/format.md +32 -3
- data/doc/writing_vertical.ja.md +6 -0
- data/lib/review/book/base.rb +3 -3
- data/lib/review/book/book_unit.rb +13 -3
- data/lib/review/book/chapter.rb +1 -1
- data/lib/review/book/index.rb +7 -4
- data/lib/review/book/part.rb +12 -13
- data/lib/review/book/volume.rb +1 -1
- data/lib/review/builder.rb +92 -65
- data/lib/review/catalog.rb +6 -5
- data/lib/review/compiler.rb +76 -57
- data/lib/review/configure.rb +5 -2
- data/lib/review/epub2html.rb +12 -12
- data/lib/review/epubmaker/content.rb +1 -1
- data/lib/review/epubmaker/epubcommon.rb +47 -45
- data/lib/review/epubmaker/epubv2.rb +2 -1
- data/lib/review/epubmaker/epubv3.rb +5 -4
- data/lib/review/epubmaker/producer.rb +6 -7
- data/lib/review/epubmaker/reviewheaderlistener.rb +1 -1
- data/lib/review/epubmaker.rb +56 -67
- data/lib/review/exception.rb +7 -0
- data/lib/review/extentions/string.rb +1 -1
- data/lib/review/htmlbuilder.rb +90 -34
- data/lib/review/htmlutils.rb +17 -17
- data/lib/review/i18n.rb +3 -3
- data/lib/review/i18n.yml +6 -0
- data/lib/review/idgxmlbuilder.rb +61 -39
- data/lib/review/idgxmlmaker.rb +27 -26
- data/lib/review/img_math.rb +12 -18
- data/lib/review/index_builder.rb +94 -53
- data/lib/review/init.rb +4 -4
- data/lib/review/latexbuilder.rb +84 -76
- data/lib/review/lineinput.rb +3 -3
- data/lib/review/location.rb +1 -1
- data/lib/review/loggable.rb +27 -0
- data/lib/review/logger.rb +69 -21
- data/lib/review/makerhelper.rb +8 -4
- data/lib/review/markdownbuilder.rb +21 -12
- data/lib/review/pdfmaker.rb +63 -42
- data/lib/review/plaintextbuilder.rb +16 -15
- data/lib/review/preprocessor/directive.rb +35 -0
- data/lib/review/preprocessor/line.rb +34 -0
- data/lib/review/preprocessor/repository.rb +177 -0
- data/lib/review/preprocessor.rb +94 -296
- data/lib/review/rstbuilder.rb +12 -3
- data/lib/review/template.rb +5 -1
- data/lib/review/textmaker.rb +32 -31
- data/lib/review/textutils.rb +5 -6
- data/lib/review/tocprinter.rb +12 -7
- data/lib/review/topbuilder.rb +96 -19
- data/lib/review/update.rb +16 -8
- data/lib/review/version.rb +1 -1
- data/lib/review/volumeprinter.rb +9 -9
- data/lib/review/webmaker.rb +45 -46
- data/lib/review/webtocprinter.rb +10 -10
- data/lib/review/yamlloader.rb +35 -2
- data/review.gemspec +2 -1
- data/samples/sample-book/src/config.yml +0 -1
- data/samples/sample-book/src/lib/tasks/review.rake +3 -1
- data/samples/sample-book/src/lib/tasks/z01_copy_sty.rake +2 -1
- data/samples/syntax-book/ch02.re +9 -0
- data/samples/syntax-book/lib/tasks/z01_copy_sty.rake +2 -1
- data/templates/html/_titlepage.html.erb +9 -17
- data/templates/latex/config.erb +3 -0
- data/templates/latex/review-jlreq/review-base.sty +4 -5
- data/templates/latex/review-jlreq/review-jlreq.cls +39 -5
- data/templates/latex/review-jsbook/review-base.sty +9 -3
- data/templates/latex/review-jsbook/review-jsbook.cls +32 -5
- data/templates/opf/opf_manifest_epubv2.opf.erb +1 -1
- data/templates/opf/opf_manifest_epubv3.opf.erb +1 -1
- data/test/assets/syntax_book_index_detail.txt +10 -8
- data/test/assets/test_template.tex +4 -1
- data/test/assets/test_template_backmatter.tex +4 -1
- data/test/book_test_helper.rb +10 -10
- data/test/test_book_chapter.rb +25 -2
- data/test/test_builder.rb +10 -8
- data/test/test_epub3maker.rb +3 -3
- data/test/test_epubmaker.rb +27 -37
- data/test/test_epubmaker_cmd.rb +14 -3
- data/test/test_htmlbuilder.rb +111 -31
- data/test/test_idgxmlbuilder.rb +41 -33
- data/test/test_idgxmlmaker_cmd.rb +1 -1
- data/test/test_img_math.rb +11 -2
- data/test/test_index.rb +30 -4
- data/test/test_latexbuilder.rb +46 -25
- data/test/test_latexbuilder_v2.rb +18 -10
- data/test/test_markdownbuilder.rb +13 -0
- data/test/test_pdfmaker.rb +19 -0
- data/test/test_pdfmaker_cmd.rb +10 -10
- data/test/test_plaintextbuilder.rb +46 -22
- data/test/test_preprocessor.rb +188 -1
- data/test/test_rstbuilder.rb +13 -0
- data/test/test_textmaker_cmd.rb +1 -1
- data/test/test_topbuilder.rb +195 -29
- data/test/test_yamlloader.rb +28 -42
- metadata +11 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ad3162f29bf4de92283c57885f6b590ba44a6cb27c2d34a206c09b3609bf3d4
|
4
|
+
data.tar.gz: eb217e39616f9ec506079906643d47a73533ec3f19759f92bdb01b2bf4e30a68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51ced5b39f84d352092f335e43f621e75d7dc2a096f7ce1f39aa62715e5bd858aafde903a96a3586980c6064909a8096b7405be6e851ff5c592ea68b04a1830b
|
7
|
+
data.tar.gz: 958233d45fec5df7643ead4e66bf4998494e30772e312c20f8f9348df1f863ff393284df8adb30fe35b457fa3d8e80a384f4bef3b1b83b5b53a54bfef1c4d280
|
@@ -1,6 +1,10 @@
|
|
1
1
|
name: Test with TeXLive
|
2
2
|
|
3
|
-
on:
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
pull_request:
|
4
8
|
|
5
9
|
jobs:
|
6
10
|
build:
|
@@ -9,7 +13,7 @@ jobs:
|
|
9
13
|
strategy:
|
10
14
|
fail-fast: false
|
11
15
|
matrix:
|
12
|
-
ruby: [2.5, 3.0]
|
16
|
+
ruby: ['2.5', '3.0', '3.1']
|
13
17
|
os: [ubuntu-20.04]
|
14
18
|
steps:
|
15
19
|
- uses: actions/checkout@v2
|
@@ -1,6 +1,10 @@
|
|
1
1
|
name: TestWin
|
2
2
|
|
3
|
-
on:
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
pull_request:
|
4
8
|
|
5
9
|
jobs:
|
6
10
|
build:
|
@@ -9,7 +13,7 @@ jobs:
|
|
9
13
|
strategy:
|
10
14
|
fail-fast: false
|
11
15
|
matrix:
|
12
|
-
ruby: [ '3.0', '2.6', '2.5', '2.4' ]
|
16
|
+
ruby: [ '3.0', '2.7', '2.6', '2.5', '2.4' ]
|
13
17
|
|
14
18
|
steps:
|
15
19
|
- uses: actions/checkout@v2
|
data/.github/workflows/ruby.yml
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
name: Test
|
2
2
|
|
3
|
-
on:
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
pull_request:
|
4
8
|
|
5
9
|
jobs:
|
6
10
|
build:
|
@@ -9,7 +13,7 @@ jobs:
|
|
9
13
|
strategy:
|
10
14
|
fail-fast: false
|
11
15
|
matrix:
|
12
|
-
ruby: [2.4, 2.5, 2.6, 2.7, 3.0]
|
16
|
+
ruby: ['2.4', '2.5', '2.6', '2.7', '3.0', '3.1']
|
13
17
|
os: [ubuntu-latest, macOS-latest]
|
14
18
|
steps:
|
15
19
|
- uses: actions/checkout@v2
|
data/.rubocop.yml
CHANGED
@@ -5,15 +5,14 @@ AllCops:
|
|
5
5
|
- tmp/*
|
6
6
|
DisplayCopNames: true
|
7
7
|
NewCops: enable
|
8
|
+
TargetRubyVersion: 2.5
|
8
9
|
|
9
10
|
require:
|
10
11
|
- rubocop-performance
|
12
|
+
- rubocop-rake
|
11
13
|
|
12
14
|
#### Lint
|
13
15
|
|
14
|
-
Lint/EmptyWhen:
|
15
|
-
Enabled: true
|
16
|
-
|
17
16
|
Lint/NestedMethodDefinition:
|
18
17
|
Exclude:
|
19
18
|
- 'test/*'
|
@@ -21,82 +20,18 @@ Lint/NestedMethodDefinition:
|
|
21
20
|
Lint/AssignmentInCondition:
|
22
21
|
Enabled: false
|
23
22
|
|
24
|
-
Lint/ParenthesesAsGroupedExpression:
|
25
|
-
Enabled: true
|
26
|
-
|
27
|
-
Lint/UnderscorePrefixedVariableName:
|
28
|
-
Enabled: true
|
29
|
-
|
30
|
-
Lint/UnusedBlockArgument:
|
31
|
-
Enabled: true
|
32
|
-
|
33
|
-
Lint/UnusedMethodArgument:
|
34
|
-
Enabled: true
|
35
|
-
|
36
|
-
Lint/UselessAssignment:
|
37
|
-
Enabled: true
|
38
|
-
|
39
23
|
Lint/ErbNewArguments:
|
40
24
|
Enabled: false
|
41
25
|
|
42
|
-
Lint/DeprecatedOpenSSLConstant:
|
43
|
-
Enabled: true
|
44
|
-
|
45
|
-
Lint/MixedRegexpCaptureTypes:
|
46
|
-
Enabled: true
|
47
|
-
|
48
|
-
Lint/RaiseException:
|
49
|
-
Enabled: true
|
50
|
-
|
51
|
-
Lint/StructNewOverride:
|
52
|
-
Enabled: true
|
53
|
-
|
54
26
|
# make it enable when supporting only Ruby 3.0 and higher.
|
55
27
|
Lint/RedundantDirGlobSort:
|
56
28
|
Enabled: false
|
57
29
|
|
58
30
|
#### Performance
|
59
31
|
|
60
|
-
Performance/RegexpMatch:
|
61
|
-
Enabled: false
|
62
|
-
|
63
|
-
Performance/ReverseEach:
|
64
|
-
Enabled: true
|
65
|
-
|
66
|
-
# Use tr instead of gsub.
|
67
|
-
Performance/StringReplacement:
|
68
|
-
Enabled: true
|
69
|
-
|
70
|
-
Performance/RangeInclude:
|
71
|
-
Enabled: true
|
72
|
-
|
73
32
|
Performance/DeletePrefix:
|
74
33
|
Enabled: false
|
75
34
|
|
76
|
-
Performance/RedundantMerge:
|
77
|
-
Enabled: true
|
78
|
-
|
79
|
-
Performance/AncestorsInclude:
|
80
|
-
Enabled: true
|
81
|
-
|
82
|
-
Performance/BigDecimalWithNumericArgument:
|
83
|
-
Enabled: true
|
84
|
-
|
85
|
-
Performance/RedundantSortBlock:
|
86
|
-
Enabled: true
|
87
|
-
|
88
|
-
Performance/RedundantStringChars:
|
89
|
-
Enabled: true
|
90
|
-
|
91
|
-
Performance/ReverseFirst:
|
92
|
-
Enabled: true
|
93
|
-
|
94
|
-
Performance/SortReverse:
|
95
|
-
Enabled: true
|
96
|
-
|
97
|
-
Performance/Squeeze:
|
98
|
-
Enabled: true
|
99
|
-
|
100
35
|
Performance/StringInclude:
|
101
36
|
Enabled: false
|
102
37
|
|
@@ -105,9 +40,6 @@ Performance/CollectionLiteralInLoop:
|
|
105
40
|
|
106
41
|
#### Style
|
107
42
|
|
108
|
-
Style/AccessModifierDeclarations:
|
109
|
-
Enabled: false
|
110
|
-
|
111
43
|
Style/AsciiComments:
|
112
44
|
Enabled: false
|
113
45
|
|
@@ -116,57 +48,19 @@ Style/Alias:
|
|
116
48
|
EnforcedStyle: prefer_alias_method
|
117
49
|
Enabled: true
|
118
50
|
|
119
|
-
Style/AndOr:
|
120
|
-
Enabled: true
|
121
|
-
|
122
51
|
Style/BarePercentLiterals:
|
123
52
|
EnforcedStyle: percent_q
|
124
53
|
Enabled: true
|
125
54
|
|
126
|
-
Style/BlockDelimiters:
|
127
|
-
Enabled: true
|
128
|
-
|
129
|
-
Style/CaseEquality:
|
130
|
-
Enabled: false
|
131
|
-
|
132
|
-
Style/ClassCheck:
|
133
|
-
Enabled: true
|
134
|
-
|
135
|
-
Style/ClassMethods:
|
136
|
-
Enabled: true
|
137
|
-
|
138
55
|
Style/CommentedKeyword:
|
139
56
|
Enabled: false
|
140
57
|
|
141
58
|
Style/DocumentDynamicEvalDefinition:
|
142
59
|
Enabled: false
|
143
60
|
|
144
|
-
Style/FloatDivision:
|
145
|
-
Enabled: false
|
146
|
-
|
147
|
-
# Do not introduce global variables.
|
148
|
-
Style/GlobalVars:
|
149
|
-
Enabled: true
|
150
|
-
|
151
|
-
# Use self-assignment shorthand +=.
|
152
|
-
Style/SelfAssignment:
|
153
|
-
Enabled: true
|
154
|
-
|
155
|
-
Style/ConditionalAssignment:
|
156
|
-
Enabled: false
|
157
|
-
|
158
61
|
Style/Documentation:
|
159
62
|
Enabled: false
|
160
63
|
|
161
|
-
Style/Encoding:
|
162
|
-
Enabled: true
|
163
|
-
|
164
|
-
Style/EmptyElse:
|
165
|
-
Enabled: true
|
166
|
-
|
167
|
-
Style/EvalWithLocation:
|
168
|
-
Enabled: true
|
169
|
-
|
170
64
|
Style/FormatString:
|
171
65
|
EnforcedStyle: sprintf
|
172
66
|
Enabled: true
|
@@ -177,21 +71,12 @@ Style/FormatStringToken:
|
|
177
71
|
Style/GuardClause:
|
178
72
|
Enabled: false
|
179
73
|
|
180
|
-
Style/IfInsideElse:
|
181
|
-
Enabled: false
|
182
|
-
|
183
74
|
Style/IfUnlessModifier:
|
184
75
|
Enabled: false
|
185
76
|
|
186
77
|
Style/MutableConstant:
|
187
78
|
Enabled: false
|
188
79
|
|
189
|
-
Style/MultipleComparison:
|
190
|
-
Enabled: true
|
191
|
-
|
192
|
-
Style/RedundantInterpolation:
|
193
|
-
Enabled: true
|
194
|
-
|
195
80
|
Style/ZeroLengthPredicate:
|
196
81
|
Enabled: false
|
197
82
|
|
@@ -213,9 +98,6 @@ Style/EmptyMethod:
|
|
213
98
|
EnforcedStyle: expanded
|
214
99
|
Enabled: true
|
215
100
|
|
216
|
-
Style/HashSyntax:
|
217
|
-
Enabled: true
|
218
|
-
|
219
101
|
Style/RescueModifier:
|
220
102
|
Enabled: false
|
221
103
|
|
@@ -223,21 +105,9 @@ Style/ClassAndModuleChildren:
|
|
223
105
|
EnforcedStyle: nested
|
224
106
|
Enabled: true
|
225
107
|
|
226
|
-
Style/ColonMethodCall:
|
227
|
-
Enabled: true
|
228
|
-
|
229
|
-
Style/For:
|
230
|
-
Enabled: true
|
231
|
-
|
232
|
-
Style/InfiniteLoop:
|
233
|
-
Enabled: true
|
234
|
-
|
235
108
|
Style/LineEndConcatenation:
|
236
109
|
Enabled: false
|
237
110
|
|
238
|
-
Style/MethodCallWithoutArgsParentheses:
|
239
|
-
Enabled: true
|
240
|
-
|
241
111
|
Style/MethodCallWithArgsParentheses:
|
242
112
|
IgnoredMethods:
|
243
113
|
- 'require'
|
@@ -253,6 +123,8 @@ Style/MethodCallWithArgsParentheses:
|
|
253
123
|
- 'write'
|
254
124
|
- 'warn'
|
255
125
|
- 'error'
|
126
|
+
- 'error!'
|
127
|
+
- 'app_error'
|
256
128
|
- 'raise'
|
257
129
|
- 'yield'
|
258
130
|
- 'source'
|
@@ -269,24 +141,9 @@ Style/MethodCallWithArgsParentheses:
|
|
269
141
|
Style/MixinUsage:
|
270
142
|
Enabled: false
|
271
143
|
|
272
|
-
Style/MultilineBlockChain:
|
273
|
-
Enabled: true
|
274
|
-
|
275
|
-
Style/NegatedIf:
|
276
|
-
Enabled: true
|
277
|
-
|
278
|
-
Style/Next:
|
279
|
-
Enabled: true
|
280
|
-
|
281
|
-
Style/Not:
|
282
|
-
Enabled: true
|
283
|
-
|
284
144
|
Style/NumericLiterals:
|
285
145
|
MinDigits: 6
|
286
146
|
|
287
|
-
Style/PercentLiteralDelimiters:
|
288
|
-
Enabled: true
|
289
|
-
|
290
147
|
Style/PercentQLiterals:
|
291
148
|
EnforcedStyle: upper_case_q
|
292
149
|
Enabled: true
|
@@ -301,51 +158,15 @@ Style/RaiseArgs:
|
|
301
158
|
Style/RedundantBegin:
|
302
159
|
Enabled: false
|
303
160
|
|
304
|
-
Style/RedundantParentheses:
|
305
|
-
Enabled: true
|
306
|
-
|
307
161
|
Style/RedundantReturn:
|
308
162
|
Enabled: false
|
309
163
|
|
310
164
|
Style/RedundantSelf:
|
311
165
|
Enabled: false
|
312
166
|
|
313
|
-
Style/RegexpLiteral:
|
314
|
-
Enabled: true
|
315
|
-
|
316
|
-
Style/RescueStandardError:
|
317
|
-
Enabled: false
|
318
|
-
|
319
|
-
Style/Semicolon:
|
320
|
-
Enabled: true
|
321
|
-
|
322
|
-
Style/SingleLineMethods:
|
323
|
-
Enabled: true
|
324
|
-
|
325
|
-
Style/SpecialGlobalVars:
|
326
|
-
Enabled: true
|
327
|
-
|
328
167
|
Style/StderrPuts:
|
329
168
|
Enabled: false
|
330
169
|
|
331
|
-
Style/StringLiterals:
|
332
|
-
Enabled: true
|
333
|
-
|
334
|
-
Style/StringLiteralsInInterpolation:
|
335
|
-
Enabled: true
|
336
|
-
|
337
|
-
Style/SymbolProc:
|
338
|
-
Enabled: true
|
339
|
-
|
340
|
-
Style/SymbolArray:
|
341
|
-
Enabled: true
|
342
|
-
|
343
|
-
Style/TrailingCommaInArrayLiteral:
|
344
|
-
Enabled: true
|
345
|
-
|
346
|
-
Style/TrailingCommaInHashLiteral:
|
347
|
-
Enabled: true
|
348
|
-
|
349
170
|
Style/WordArray:
|
350
171
|
MinSize: 10
|
351
172
|
|
@@ -355,30 +176,6 @@ Style/RedundantPercentQ:
|
|
355
176
|
Style/WhileUntilModifier:
|
356
177
|
Enabled: false
|
357
178
|
|
358
|
-
Style/YodaCondition:
|
359
|
-
Enabled: true
|
360
|
-
|
361
|
-
Style/ExponentialNotation:
|
362
|
-
Enabled: true
|
363
|
-
|
364
|
-
Style/HashEachMethods:
|
365
|
-
Enabled: true
|
366
|
-
|
367
|
-
Style/HashTransformKeys:
|
368
|
-
Enabled: true
|
369
|
-
|
370
|
-
Style/HashTransformValues:
|
371
|
-
Enabled: true
|
372
|
-
|
373
|
-
Style/RedundantFetchBlock:
|
374
|
-
Enabled: true
|
375
|
-
|
376
|
-
Style/RedundantRegexpCharacterClass:
|
377
|
-
Enabled: true
|
378
|
-
|
379
|
-
Style/RedundantRegexpEscape:
|
380
|
-
Enabled: true
|
381
|
-
|
382
179
|
Style/SlicingWithRange:
|
383
180
|
Enabled: false
|
384
181
|
|
@@ -394,26 +191,13 @@ Style/StringConcatenation:
|
|
394
191
|
Style/OptionalBooleanParameter:
|
395
192
|
Enabled: false
|
396
193
|
|
397
|
-
Style/SoleNestedConditional:
|
398
|
-
Enabled: false
|
399
|
-
|
400
194
|
Style/CombinableLoops:
|
401
195
|
Enabled: false
|
402
196
|
|
403
197
|
### Layout
|
404
198
|
|
405
199
|
Layout/BlockAlignment:
|
406
|
-
Enabled:
|
407
|
-
|
408
|
-
Layout/EndAlignment:
|
409
|
-
Enabled: true
|
410
|
-
|
411
|
-
Layout/MultilineMethodCallBraceLayout:
|
412
|
-
Enabled: true
|
413
|
-
|
414
|
-
Layout/AccessModifierIndentation:
|
415
|
-
EnforcedStyle: indent
|
416
|
-
Enabled: true
|
200
|
+
Enabled: false
|
417
201
|
|
418
202
|
Layout/ClosingHeredocIndentation:
|
419
203
|
Enabled: false
|
@@ -422,99 +206,21 @@ Layout/DotPosition:
|
|
422
206
|
EnforcedStyle: trailing
|
423
207
|
Enabled: true
|
424
208
|
|
425
|
-
Layout/EmptyLines:
|
426
|
-
Enabled: true
|
427
|
-
|
428
|
-
Layout/EmptyLineAfterGuardClause:
|
429
|
-
Enabled: true
|
430
|
-
|
431
|
-
Layout/EmptyLinesAroundAccessModifier:
|
432
|
-
Enabled: true
|
433
|
-
|
434
|
-
Layout/EmptyLinesAroundClassBody:
|
435
|
-
Enabled: true
|
436
|
-
|
437
|
-
Layout/EmptyLinesAroundMethodBody:
|
438
|
-
Enabled: true
|
439
|
-
|
440
|
-
Layout/EmptyLinesAroundModuleBody:
|
441
|
-
Enabled: true
|
442
|
-
|
443
|
-
Layout/EndOfLine:
|
444
|
-
Enabled: true
|
445
|
-
|
446
|
-
Layout/ExtraSpacing:
|
447
|
-
Enabled: true
|
448
|
-
|
449
|
-
Layout/IndentationConsistency:
|
450
|
-
Enabled: true
|
451
|
-
|
452
|
-
Layout/IndentationWidth:
|
453
|
-
Enabled: true
|
454
|
-
|
455
|
-
Layout/FirstHashElementIndentation:
|
456
|
-
Enabled: true
|
457
|
-
|
458
209
|
Layout/HeredocIndentation:
|
459
210
|
Enabled: false
|
460
211
|
|
461
|
-
Layout/LeadingCommentSpace:
|
462
|
-
Enabled: true
|
463
|
-
|
464
|
-
Layout/MultilineOperationIndentation:
|
465
|
-
Enabled: true
|
466
|
-
|
467
212
|
Layout/SpaceAroundBlockParameters:
|
468
213
|
EnforcedStyleInsidePipes: no_space
|
469
214
|
Enabled: true
|
470
215
|
|
471
|
-
Layout/SpaceAfterComma:
|
472
|
-
Enabled: true
|
473
|
-
|
474
|
-
Layout/SpaceAfterNot:
|
475
|
-
Enabled: true
|
476
|
-
|
477
|
-
Layout/SpaceAfterSemicolon:
|
478
|
-
Enabled: true
|
479
|
-
|
480
|
-
Layout/SpaceAroundEqualsInParameterDefault:
|
481
|
-
Enabled: true
|
482
|
-
|
483
|
-
Layout/SpaceAroundOperators:
|
484
|
-
Enabled: true
|
485
|
-
|
486
|
-
Layout/SpaceBeforeBlockBraces:
|
487
|
-
Enabled: true
|
488
|
-
|
489
|
-
Layout/SpaceBeforeComma:
|
490
|
-
Enabled: true
|
491
|
-
|
492
|
-
Layout/SpaceInsideBlockBraces:
|
493
|
-
Enabled: true
|
494
|
-
|
495
|
-
Layout/SpaceInsideHashLiteralBraces:
|
496
|
-
Enabled: true
|
497
|
-
|
498
|
-
Layout/SpaceInsideArrayLiteralBrackets:
|
499
|
-
Enabled: true
|
500
|
-
|
501
216
|
Layout/SpaceInsideStringInterpolation:
|
502
217
|
EnforcedStyle: no_space
|
503
218
|
Enabled: true
|
504
219
|
|
505
|
-
Layout/TrailingEmptyLines:
|
506
|
-
Enabled: true
|
507
|
-
|
508
220
|
Layout/TrailingWhitespace:
|
509
221
|
Enabled: true
|
510
222
|
AllowInHeredoc: true
|
511
223
|
|
512
|
-
Layout/EmptyLinesAroundAttributeAccessor:
|
513
|
-
Enabled: true
|
514
|
-
|
515
|
-
Layout/SpaceAroundMethodCallOperator:
|
516
|
-
Enabled: true
|
517
|
-
|
518
224
|
Layout/LineLength:
|
519
225
|
Max: 256
|
520
226
|
Exclude:
|
@@ -569,32 +275,15 @@ Metrics/BlockLength:
|
|
569
275
|
|
570
276
|
## Naming
|
571
277
|
|
572
|
-
Naming/AccessorMethodName:
|
573
|
-
Enabled: true
|
574
|
-
|
575
|
-
# When defining the == operator, name its argument other.
|
576
|
-
Naming/BinaryOperatorParameterName:
|
577
|
-
Enabled: true
|
578
|
-
|
579
278
|
Naming/FileName:
|
580
279
|
Enabled: false
|
581
280
|
|
582
281
|
Naming/HeredocDelimiterNaming:
|
583
282
|
Enabled: false
|
584
283
|
|
585
|
-
Naming/MemoizedInstanceVariableName:
|
586
|
-
Enabled: false
|
587
|
-
|
588
|
-
Naming/MethodName:
|
589
|
-
Enabled: true
|
590
|
-
|
591
284
|
Naming/MethodParameterName:
|
592
285
|
Enabled: false
|
593
286
|
|
594
|
-
# Use snake_case for variable names.
|
595
|
-
Naming/VariableName:
|
596
|
-
Enabled: true
|
597
|
-
|
598
287
|
Naming/VariableNumber:
|
599
288
|
EnforcedStyle: normalcase
|
600
289
|
Enabled: true
|
@@ -603,9 +292,6 @@ Naming/VariableNumber:
|
|
603
292
|
|
604
293
|
#### Security
|
605
294
|
|
606
|
-
Security/YAMLLoad:
|
607
|
-
Enabled: true
|
608
|
-
|
609
295
|
#### Gemspec
|
610
296
|
|
611
297
|
Gemspec/RequiredRubyVersion:
|