plurimath 0.10.3 → 0.10.4

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.
data/.rubocop_todo.yml CHANGED
@@ -1,469 +1,389 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2026-04-25 00:17:08 UTC using RuboCop version 1.86.1.
3
+ # on 2026-05-02 05:09:58 UTC using RuboCop version 1.86.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 16
10
- # This cop supports safe autocorrection (--autocorrect).
11
- # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation.
12
- Bundler/OrderedGems:
13
- Exclude:
14
- - 'Gemfile'
15
-
16
- # Offense count: 23
17
- # This cop supports safe autocorrection (--autocorrect).
18
- # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation.
19
- Gemspec/OrderedDependencies:
20
- Exclude:
21
- - 'plurimath.gemspec'
22
-
23
- # Offense count: 1
24
- # This cop supports safe autocorrection (--autocorrect).
25
- Gemspec/RequireMFA:
26
- Exclude:
27
- - 'plurimath.gemspec'
28
-
29
9
  # Offense count: 1
30
10
  Gemspec/RequiredRubyVersion:
31
11
  Exclude:
32
12
  - 'plurimath.gemspec'
33
13
 
34
- # Offense count: 1792
14
+ # Offense count: 2
35
15
  # This cop supports safe autocorrection (--autocorrect).
36
16
  # Configuration parameters: EnforcedStyle, IndentationWidth.
37
17
  # SupportedStyles: with_first_argument, with_fixed_indentation
38
18
  Layout/ArgumentAlignment:
39
- Enabled: false
40
-
41
- # Offense count: 15944
42
- # This cop supports safe autocorrection (--autocorrect).
43
- # Configuration parameters: EnforcedStyle, IndentationWidth.
44
- # SupportedStyles: with_first_element, with_fixed_indentation
45
- Layout/ArrayAlignment:
46
- Enabled: false
47
-
48
- # Offense count: 70
49
- # This cop supports safe autocorrection (--autocorrect).
50
- # Configuration parameters: IndentationWidth.
51
- Layout/AssignmentIndentation:
52
- Enabled: false
19
+ Exclude:
20
+ - 'lib/plurimath/math/function/overleftrightarrow.rb'
53
21
 
54
- # Offense count: 640
22
+ # Offense count: 5
55
23
  # This cop supports safe autocorrection (--autocorrect).
56
24
  # Configuration parameters: EnforcedStyleAlignWith.
57
25
  # SupportedStylesAlignWith: either, start_of_block, start_of_line
58
26
  Layout/BlockAlignment:
59
- Enabled: false
60
-
61
- # Offense count: 637
62
- # This cop supports safe autocorrection (--autocorrect).
63
- Layout/BlockEndNewline:
64
- Enabled: false
65
-
66
- # Offense count: 7
67
- # This cop supports safe autocorrection (--autocorrect).
68
- # Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth.
69
- # SupportedStyles: case, end
70
- Layout/CaseIndentation:
71
- Exclude:
72
- - 'lib/plurimath/math/function/mglyph.rb'
73
-
74
- # Offense count: 37
75
- # This cop supports safe autocorrection (--autocorrect).
76
- Layout/ClosingHeredocIndentation:
77
27
  Exclude:
78
- - 'spec/plurimath/math/formula/html_spec.rb'
79
- - 'spec/plurimath/math/formula/latex_spec.rb'
80
- - 'spec/plurimath/math/formula/mathml_spec.rb'
81
- - 'spec/plurimath/math/formula_spec.rb'
28
+ - 'lib/plurimath/math/core.rb'
29
+ - 'lib/plurimath/unicode_math/transform.rb'
82
30
 
83
- # Offense count: 654
31
+ # Offense count: 5
84
32
  # This cop supports safe autocorrection (--autocorrect).
85
33
  Layout/ClosingParenthesisIndentation:
86
- Enabled: false
87
-
88
- # Offense count: 80
89
- # This cop supports safe autocorrection (--autocorrect).
90
- # Configuration parameters: EnforcedStyle.
91
- # SupportedStyles: leading, trailing
92
- Layout/DotPosition:
93
- Enabled: false
34
+ Exclude:
35
+ - 'lib/plurimath/math/core.rb'
94
36
 
95
- # Offense count: 44
37
+ # Offense count: 10
96
38
  # This cop supports safe autocorrection (--autocorrect).
97
39
  Layout/ElseAlignment:
98
40
  Exclude:
99
- - 'lib/plurimath/asciimath/transform.rb'
100
- - 'lib/plurimath/math/function/bar.rb'
101
- - 'lib/plurimath/math/function/base.rb'
102
- - 'lib/plurimath/math/function/nary.rb'
103
- - 'lib/plurimath/math/function/power.rb'
104
- - 'lib/plurimath/math/function/table.rb'
105
- - 'lib/plurimath/math/function/table/array.rb'
106
- - 'lib/plurimath/math/function/ternary_function.rb'
107
- - 'lib/plurimath/math/function/unitsml.rb'
108
- - 'lib/plurimath/omml/transform.rb'
109
41
  - 'lib/plurimath/unicode_math/transform.rb'
110
42
  - 'lib/plurimath/utility.rb'
111
- - 'lib/plurimath/xml_engine/oga/dumper.rb'
112
- - 'spec/spec_helper.rb'
113
-
114
- # Offense count: 9
115
- # This cop supports safe autocorrection (--autocorrect).
116
- Layout/EmptyLineAfterGuardClause:
117
- Exclude:
118
- - 'lib/plurimath/formatter/numbers/significant.rb'
119
- - 'lib/plurimath/math/formula.rb'
120
- - 'lib/plurimath/math/function/font_style.rb'
121
- - 'lib/plurimath/math/function/frac.rb'
122
- - 'lib/plurimath/math/function/nary.rb'
123
- - 'lib/plurimath/math/symbols/symbol.rb'
124
43
 
125
- # Offense count: 124
44
+ # Offense count: 1
126
45
  # This cop supports safe autocorrection (--autocorrect).
127
46
  Layout/EmptyLines:
128
- Enabled: false
129
-
130
- # Offense count: 4
131
- # This cop supports safe autocorrection (--autocorrect).
132
- # Configuration parameters: AllowAliasSyntax, AllowedMethods.
133
- # AllowedMethods: alias_method, public, protected, private
134
- Layout/EmptyLinesAroundAttributeAccessor:
135
47
  Exclude:
136
- - 'lib/plurimath/math/function/int.rb'
137
- - 'lib/plurimath/math/function/oint.rb'
138
- - 'lib/plurimath/math/function/prod.rb'
139
- - 'lib/plurimath/math/function/sum.rb'
140
-
141
- # Offense count: 1526
142
- # This cop supports safe autocorrection (--autocorrect).
143
- # Configuration parameters: EnforcedStyle.
144
- # SupportedStyles: empty_lines, no_empty_lines
145
- Layout/EmptyLinesAroundBlockBody:
146
- Enabled: false
48
+ - 'lib/plurimath/unicode_math/transform.rb'
147
49
 
148
- # Offense count: 24
50
+ # Offense count: 1
149
51
  # This cop supports safe autocorrection (--autocorrect).
150
52
  # Configuration parameters: EnforcedStyle.
151
53
  # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
152
54
  Layout/EmptyLinesAroundClassBody:
153
- Enabled: false
154
-
155
- # Offense count: 3
156
- # This cop supports safe autocorrection (--autocorrect).
157
- Layout/EmptyLinesAroundMethodBody:
158
55
  Exclude:
159
- - 'lib/plurimath/math/formula/mrow.rb'
160
- - 'lib/plurimath/math/function/text.rb'
161
- - 'spec/spec_helper.rb'
162
-
163
- # Offense count: 1
164
- # This cop supports safe autocorrection (--autocorrect).
165
- # Configuration parameters: EnforcedStyle.
166
- # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
167
- Layout/EmptyLinesAroundModuleBody:
168
- Exclude:
169
- - 'lib/plurimath/cli.rb'
170
-
171
- # Offense count: 28
172
- # This cop supports safe autocorrection (--autocorrect).
173
- # Configuration parameters: EnforcedStyleAlignWith.
174
- # SupportedStylesAlignWith: keyword, variable, start_of_line
175
- Layout/EndAlignment:
176
- Exclude:
177
- - 'lib/plurimath/asciimath/transform.rb'
178
- - 'lib/plurimath/math/function/bar.rb'
179
- - 'lib/plurimath/math/function/base.rb'
180
- - 'lib/plurimath/math/function/mglyph.rb'
181
- - 'lib/plurimath/math/function/power.rb'
182
- - 'lib/plurimath/math/function/table.rb'
183
- - 'lib/plurimath/math/function/table/array.rb'
184
- - 'lib/plurimath/math/function/ternary_function.rb'
185
- - 'lib/plurimath/math/function/unitsml.rb'
186
- - 'lib/plurimath/omml/transform.rb'
187
56
  - 'lib/plurimath/unicode_math/transform.rb'
188
- - 'lib/plurimath/utility.rb'
189
- - 'lib/plurimath/xml_engine/oga/dumper.rb'
190
- - 'spec/spec_helper.rb'
191
57
 
192
- # Offense count: 74
58
+ # Offense count: 4
193
59
  # This cop supports safe autocorrection (--autocorrect).
194
60
  # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
195
61
  Layout/ExtraSpacing:
196
62
  Exclude:
197
- - 'lib/plurimath/asciimath/transform.rb'
198
- - 'lib/plurimath/cli.rb'
199
- - 'lib/plurimath/formatter/numbers/fraction.rb'
200
- - 'lib/plurimath/formatter/numeric_formatter.rb'
201
- - 'lib/plurimath/math/function/fenced.rb'
202
- - 'lib/plurimath/math/function/frac.rb'
203
63
  - 'lib/plurimath/unicode_math/parse.rb'
204
64
  - 'lib/plurimath/unicode_math/parsing_rules/common_rules.rb'
205
65
  - 'lib/plurimath/unicode_math/parsing_rules/masked.rb'
206
- - 'plurimath.gemspec'
207
- - 'spec/plurimath/fixtures/formula_modules/unicode_math_transform_values.rb'
208
- - 'spec/plurimath/integration/asciimath_spec.rb'
209
- - 'spec/plurimath/math/function/base_spec.rb'
210
- - 'spec/plurimath/math/function/left_spec.rb'
211
- - 'spec/plurimath/mathml_spec.rb'
212
66
 
213
- # Offense count: 648
67
+ # Offense count: 9
214
68
  # This cop supports safe autocorrection (--autocorrect).
215
69
  # Configuration parameters: EnforcedStyle, IndentationWidth.
216
70
  # SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
217
71
  Layout/FirstArgumentIndentation:
218
- Enabled: false
72
+ Exclude:
73
+ - 'lib/plurimath/unicode_math/transform.rb'
219
74
 
220
- # Offense count: 14615
75
+ # Offense count: 14
221
76
  # This cop supports safe autocorrection (--autocorrect).
222
77
  # Configuration parameters: EnforcedStyle, IndentationWidth.
223
78
  # SupportedStyles: special_inside_parentheses, consistent, align_brackets
224
79
  Layout/FirstArrayElementIndentation:
225
- Enabled: false
226
-
227
- # Offense count: 386
228
- # This cop supports safe autocorrection (--autocorrect).
229
- # Configuration parameters: EnforcedStyle, IndentationWidth.
230
- # SupportedStyles: special_inside_parentheses, consistent, align_braces
231
- Layout/FirstHashElementIndentation:
232
-
233
- # Offense count: 1
234
- # This cop supports safe autocorrection (--autocorrect).
235
- # Configuration parameters: EnforcedStyle, IndentationWidth.
236
- # SupportedStyles: consistent, align_parentheses
237
- Layout/FirstParameterIndentation:
238
- Exclude:
239
- - 'lib/plurimath/math/function/fenced.rb'
240
-
241
- # Offense count: 220
242
- # This cop supports safe autocorrection (--autocorrect).
243
- # Configuration parameters: AllowMultipleStyles, EnforcedHashRo
244
- # Offense count: 1
245
- # This cop supports safe autocorrection (--autocorrect).
246
- # Configuration parameters: EnforcedStyle, IndentationWidth.
247
- # SupportedStyles: consistent, align_parentheses
248
- Layout/FirstParameterIndentation:
249
- Exclude:
250
- - 'lib/plurimath/math/function/fenced.rb'
251
-
252
- # Offense count: 263
253
- # This cop supports safe autocorrection (--autocorrect).
254
- # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
255
- # SupportedHashRocketStyles: key, separator, table
256
- # SupportedColonStyles: key, separator, table
257
- # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
258
- Layout/HashAlignment:
259
- Enabled: false
260
-
261
- # Offense count: 40
262
- # This cop supports safe autocorrection (--autocorrect).
263
- Layout/HeredocIndentation:
264
- Exclude:
265
- - 'lib/plurimath/math/formula.rb'
266
- - 'spec/plurimath/latex/parser_spec.rb'
267
- - 'spec/plurimath/latex_spec.rb'
268
- - 'spec/plurimath/math/formula/html_spec.rb'
269
- - 'spec/plurimath/math/formula/latex_spec.rb'
270
- - 'spec/plurimath/math/formula/mathml_spec.rb'
271
- - 'spec/plurimath/math/formula_spec.rb'
272
- - 'spec/plurimath/math/function/stackrel_spec.rb'
273
- - 'spec/plurimath/math_zone_spec.rb'
274
-
275
- # Offense count: 23
276
- # This cop supports safe autocorrection (--autocorrect).
277
- # Configuration parameters: EnforcedStyle.
278
- # SupportedStyles: normal, indented_internal_methods
279
- Layout/IndentationConsistency:
280
80
  Exclude:
281
81
  - 'lib/plurimath/unicode_math/transform.rb'
282
- - 'lib/plurimath/utility.rb'
283
- - 'lib/plurimath/xml_engine/oga/dumper.rb'
284
- - 'plurimath.gemspec'
285
- - 'spec/plurimath/math/function/unary_function_spec.rb'
286
- - 'spec/plurimath/number_formatter_spec.rb'
287
- - 'spec/spec_helper.rb'
288
82
 
289
- # Offense count: 1351
83
+ # Offense count: 9
290
84
  # This cop supports safe autocorrection (--autocorrect).
291
85
  # Configuration parameters: Width, EnforcedStyleAlignWith, AllowedPatterns.
292
86
  # SupportedStylesAlignWith: start_of_line, relative_to_receiver
293
87
  Layout/IndentationWidth:
294
- Enabled: false
295
-
296
- # Offense count: 7
297
- # This cop supports safe autocorrection (--autocorrect).
298
- # Configuration parameters: EnforcedStyle, IndentationWidth.
299
- # SupportedStyles: aligned, indented
300
- Layout/LineEndStringConcatenationIndentation:
301
88
  Exclude:
302
- - 'spec/plurimath/omml_spec.rb'
89
+ - 'lib/plurimath/math/core.rb'
90
+ - 'lib/plurimath/unicode_math/transform.rb'
91
+ - 'lib/plurimath/utility.rb'
303
92
 
304
- # Offense count: 35153
93
+ # Offense count: 29312
305
94
  # This cop supports safe autocorrection (--autocorrect).
306
95
  # Configuration parameters: Max, AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, AllowRBSInlineAnnotation, AllowCopDirectives, AllowedPatterns, SplitStrings.
307
96
  # URISchemes: http, https
308
97
  Layout/LineLength:
309
98
  Enabled: false
310
99
 
311
- # Offense count: 2
312
- # This cop supports safe autocorrection (--autocorrect).
313
- # Configuration parameters: EnforcedStyle.
314
- # SupportedStyles: symmetrical, new_line, same_line
315
- Layout/MultilineArrayBraceLayout:
316
- Exclude:
317
- - 'spec/plurimath/math/formula/latex_spec.rb'
318
-
319
- # Offense count: 30
320
- # This cop supports safe autocorrection (--autocorrect).
321
- # Configuration parameters: EnforcedStyle.
322
- # SupportedStyles: symmetrical, new_line, same_line
323
- Layout/MultilineHashBraceLayout:
324
- Exclude:
325
- - 'spec/plurimath/fixtures/formula_modules/unicode_math_transform_values.rb'
326
- - 'spec/plurimath/mathml/v3/section_3_spec.rb'
327
- - 'spec/plurimath/number_formatter_spec.rb'
328
-
329
- # Offense count: 585
330
- # This cop supports safe autocorrection (--autocorrect).
331
- # Configuration parameters: EnforcedStyle.
332
- # SupportedStyles: symmetrical, new_line, same_line
333
- Layout/MultilineMethodCallBraceLayout:
334
- Enabled: false
335
-
336
- # Offense count: 11
100
+ # Offense count: 12
337
101
  # This cop supports safe autocorrection (--autocorrect).
338
102
  # Configuration parameters: EnforcedStyle, IndentationWidth.
339
- # SupportedStyles: aligned, indented, indented_relative_to_receiver
340
- Layout/MultilineMethodCallIndentation:
103
+ # SupportedStyles: aligned, indented
104
+ Layout/MultilineOperationIndentation:
341
105
  Exclude:
342
- - 'lib/plurimath/asciimath/parser.rb'
343
- - 'lib/plurimath/utility.rb'
106
+ - 'lib/plurimath/unicode_math/parse.rb'
107
+ - 'lib/plurimath/unicode_math/parsing_rules/sub_sup.rb'
108
+ - 'lib/plurimath/unicode_math/transform.rb'
344
109
 
345
110
  # Offense count: 3
346
111
  # This cop supports safe autocorrection (--autocorrect).
347
- # Configuration parameters: EnforcedStyle.
348
- # SupportedStyles: symmetrical, new_line, same_line
349
- Layout/MultilineMethodDefinitionBraceLayout:
112
+ # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator, EnforcedStyleForRationalLiterals.
113
+ # SupportedStylesForExponentOperator: space, no_space
114
+ # SupportedStylesForRationalLiterals: space, no_space
115
+ Layout/SpaceAroundOperators:
350
116
  Exclude:
351
- - 'lib/plurimath/math/function/fenced.rb'
352
- - 'lib/plurimath/math/function/overset.rb'
353
- - 'lib/plurimath/math/function/underset.rb'
117
+ - 'lib/plurimath/unicode_math/parse.rb'
118
+ - 'lib/plurimath/unicode_math/parsing_rules/common_rules.rb'
119
+ - 'lib/plurimath/unicode_math/parsing_rules/masked.rb'
354
120
 
355
- # Offense count: 17
356
- # This cop supports safe autocorrection (--autocorrect).
357
- # Configuration parameters: EnforcedStyle, IndentationWidth.
358
- # SupportedStyles: aligned, indented
359
- Layout/MultilineOperationIndentation:
121
+ # Offense count: 1
122
+ # Configuration parameters: AllowedMethods.
123
+ # AllowedMethods: enums
124
+ Lint/ConstantDefinitionInBlock:
125
+ Exclude:
126
+ - 'spec/plurimath/math/formula/intent_encoding_spec.rb'
127
+
128
+ # Offense count: 13
129
+ # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch.
130
+ Lint/DuplicateBranch:
360
131
  Exclude:
361
- - 'lib/plurimath/math/formula/mrow.rb'
132
+ - 'lib/plurimath/math/function/limits.rb'
133
+ - 'lib/plurimath/math/function/nary.rb'
134
+ - 'lib/plurimath/math/function/power_base.rb'
362
135
  - 'lib/plurimath/mathml/formula_transformation.rb'
363
136
  - 'lib/plurimath/mathml/translator.rb'
364
- - 'lib/plurimath/unicode_math/parse.rb'
365
- - 'lib/plurimath/unicode_math/parsing_rules/sub_sup.rb'
366
137
  - 'lib/plurimath/unicode_math/transform.rb'
138
+ - 'lib/plurimath/xml_engine/oga/dumper.rb'
367
139
 
368
- # Offense count: 2
369
- # This cop supports safe autocorrection (--autocorrect).
370
- Layout/SpaceAfterComma:
140
+ # Offense count: 7
141
+ Lint/DuplicateMethods:
371
142
  Exclude:
372
- - 'lib/plurimath/xml_engine/oga/dumper.rb'
373
- - 'lib/plurimath/xml_engine/oga/node.rb'
143
+ - 'lib/plurimath/formatter/numeric_formatter.rb'
144
+ - 'lib/plurimath/math/function/td.rb'
145
+ - 'lib/plurimath/math/number.rb'
146
+ - 'lib/plurimath/math/symbols/symbol.rb'
147
+ - 'lib/plurimath/math/symbols/twocups.rb'
148
+ - 'lib/plurimath/xml_engine/ox_engine/element.rb'
374
149
 
375
- # Offense count: 2
150
+ # Offense count: 1
376
151
  # This cop supports safe autocorrection (--autocorrect).
377
- Layout/SpaceAfterSemicolon:
152
+ # Configuration parameters: AllowComments.
153
+ Lint/EmptyConditionalBody:
378
154
  Exclude:
379
- - 'lib/plurimath/math/function/msline.rb'
155
+ - 'spec/spec_helper.rb'
380
156
 
381
157
  # Offense count: 1
382
- # This cop supports safe autocorrection (--autocorrect).
383
- # Configuration parameters: EnforcedStyle.
384
- # SupportedStyles: space, no_space
385
- Layout/SpaceAroundEqualsInParameterDefault:
158
+ # Configuration parameters: AllowComments.
159
+ Lint/EmptyFile:
386
160
  Exclude:
387
- - 'lib/plurimath/xml_engine/oga/dumper.rb'
161
+ - 'spec/plurimath/math/symbols/paren_spec.rb'
388
162
 
389
163
  # Offense count: 1
390
- # This cop supports safe autocorrection (--autocorrect).
391
- Layout/SpaceAroundMethodCallOperator:
164
+ Lint/IneffectiveAccessModifier:
165
+ Exclude:
166
+ - 'lib/plurimath/math/symbols/symbol.rb'
167
+
168
+ # Offense count: 11
169
+ # Configuration parameters: AllowedParentClasses.
170
+ Lint/MissingSuper:
171
+ Exclude:
172
+ - 'lib/plurimath/errors/formatter/unsupported_base.rb'
173
+ - 'lib/plurimath/math/formula.rb'
174
+ - 'lib/plurimath/math/function/binary_function.rb'
175
+ - 'lib/plurimath/math/function/linebreak.rb'
176
+ - 'lib/plurimath/math/function/nary.rb'
177
+ - 'lib/plurimath/math/function/table.rb'
178
+ - 'lib/plurimath/math/function/ternary_function.rb'
179
+ - 'lib/plurimath/math/function/unary_function.rb'
180
+ - 'lib/plurimath/math/function/unitsml.rb'
181
+ - 'lib/plurimath/math/number.rb'
182
+ - 'lib/plurimath/math/symbols/symbol.rb'
183
+
184
+ # Offense count: 4
185
+ Lint/UnmodifiedReduceAccumulator:
392
186
  Exclude:
187
+ - 'lib/plurimath/math/formula.rb'
393
188
  - 'lib/plurimath/math/function/fenced.rb'
394
189
 
395
- # Offense count: 22
190
+ # Offense count: 4
396
191
  # This cop supports safe autocorrection (--autocorrect).
397
- # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator, EnforcedStyleForRationalLiterals.
398
- # SupportedStylesForExponentOperator: space, no_space
399
- # SupportedStylesForRationalLiterals: space, no_space
400
- Layout/SpaceAroundOperators:
192
+ # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods, NotImplementedExceptions.
193
+ # NotImplementedExceptions: NotImplementedError
194
+ Lint/UnusedMethodArgument:
401
195
  Exclude:
402
196
  - 'lib/plurimath/formatter/numeric_formatter.rb'
403
197
  - 'lib/plurimath/math/formula.rb'
404
- - 'lib/plurimath/math/function/log.rb'
405
- - 'lib/plurimath/math/function/table.rb'
406
- - 'lib/plurimath/unicode_math/parse.rb'
407
- - 'lib/plurimath/unicode_math/parsing_rules/common_rules.rb'
408
- - 'lib/plurimath/unicode_math/parsing_rules/masked.rb'
198
+ - 'lib/plurimath/math/function/left.rb'
409
199
  - 'lib/plurimath/utility.rb'
410
- - 'lib/plurimath/xml_engine/oga/dumper.rb'
411
- - 'lib/plurimath/xml_engine/oga/node.rb'
412
- - 'plurimath.gemspec'
200
+
201
+ # Offense count: 151
202
+ # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
203
+ Metrics/AbcSize:
204
+ Enabled: false
205
+
206
+ # Offense count: 4
207
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
208
+ # AllowedMethods: refine
209
+ Metrics/BlockLength:
210
+ Max: 57
211
+
212
+ # Offense count: 3
213
+ # Configuration parameters: CountBlocks, CountModifierForms.
214
+ Metrics/BlockNesting:
215
+ Max: 4
216
+
217
+ # Offense count: 111
218
+ # Configuration parameters: AllowedMethods, AllowedPatterns, Max.
219
+ Metrics/CyclomaticComplexity:
220
+ Enabled: false
221
+
222
+ # Offense count: 161
223
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
224
+ Metrics/MethodLength:
225
+ Max: 50
226
+
227
+ # Offense count: 12
228
+ # Configuration parameters: CountKeywordArgs.
229
+ Metrics/ParameterLists:
230
+ Max: 6
231
+ MaxOptionalParameters: 5
232
+
233
+ # Offense count: 84
234
+ # Configuration parameters: AllowedMethods, AllowedPatterns, Max.
235
+ Metrics/PerceivedComplexity:
236
+ Enabled: false
237
+
238
+ # Offense count: 7
239
+ # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
240
+ # AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
241
+ Naming/MethodParameterName:
242
+ Exclude:
243
+ - 'lib/plurimath/math/function/mlabeledtr.rb'
244
+ - 'lib/plurimath/mathml/translator.rb'
245
+
246
+ # Offense count: 46
247
+ # Configuration parameters: Mode, AllowedMethods, AllowedPatterns, AllowBangMethods, WaywardPredicates.
248
+ # AllowedMethods: call
249
+ # WaywardPredicates: infinite?, nonzero?
250
+ Naming/PredicateMethod:
251
+ Enabled: false
252
+
253
+ # Offense count: 36
254
+ # Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros, UseSorbetSigs.
255
+ # NamePrefix: is_, has_, have_, does_
256
+ # ForbiddenPrefixes: is_, has_, have_, does_
257
+ # AllowedMethods: is_a?
258
+ # MethodDefinitionMacros: define_method, define_singleton_method
259
+ Naming/PredicatePrefix:
260
+ Enabled: false
261
+
262
+ # Offense count: 5
263
+ # Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
264
+ # SupportedStyles: snake_case, normalcase, non_integer
265
+ # AllowedIdentifiers: TLS1_1, TLS1_2, capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
266
+ Naming/VariableNumber:
267
+ Exclude:
268
+ - 'spec/plurimath/html/parse_spec.rb'
413
269
  - 'spec/plurimath/xml_engine_spec.rb'
414
270
 
415
- # Offense count: 40
271
+ # Offense count: 13
272
+ # Configuration parameters: MinSize.
273
+ Performance/CollectionLiteralInLoop:
274
+ Exclude:
275
+ - 'Rakefile'
276
+ - 'lib/plurimath/math/formula.rb'
277
+ - 'lib/plurimath/math/function/fenced.rb'
278
+ - 'lib/plurimath/math/symbols/symbol.rb'
279
+ - 'lib/plurimath/utility.rb'
280
+ - 'lib/plurimath/utility/intent_encoding.rb'
281
+ - 'spec/plurimath/formatter/numbers/fraction_spec.rb'
282
+
283
+ # Offense count: 4593
284
+ # Configuration parameters: Prefixes, AllowedPatterns.
285
+ # Prefixes: when, with, without
286
+ RSpec/ContextWording:
287
+ Enabled: false
288
+
289
+ # Offense count: 1452
290
+ # Configuration parameters: CountAsOne.
291
+ RSpec/ExampleLength:
292
+ Max: 394
293
+
294
+ # Offense count: 2
416
295
  # This cop supports safe autocorrection (--autocorrect).
417
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
418
- # SupportedStyles: space, no_space
419
- # SupportedStylesForEmptyBraces: space, no_space
420
- Layout/SpaceBeforeBlockBraces:
296
+ # Configuration parameters: CustomTransform, IgnoredWords, DisallowedExamples.
297
+ # DisallowedExamples: works
298
+ RSpec/ExampleWording:
421
299
  Exclude:
422
- - 'spec/plurimath/cli_spec.rb'
423
- - 'spec/plurimath/html/parse_spec.rb'
424
- - 'spec/plurimath/html/parser_spec.rb'
425
- - 'spec/plurimath/integration/asciimath_spec.rb'
426
- - 'spec/plurimath/math_spec.rb'
300
+ - 'spec/plurimath/xml_engine_spec.rb'
301
+
302
+ # Offense count: 1
303
+ RSpec/LeakyConstantDeclaration:
304
+ Exclude:
305
+ - 'spec/plurimath/math/formula/intent_encoding_spec.rb'
306
+
307
+ # Offense count: 17
308
+ RSpec/LeakyLocalVariable:
309
+ Exclude:
310
+ - 'spec/plurimath/math/formula_spec.rb'
311
+ - 'spec/plurimath/math/function/binary_function_spec.rb'
312
+ - 'spec/plurimath/math/function/unary_function_spec.rb'
313
+ - 'spec/plurimath/math/number_spec.rb'
314
+ - 'spec/plurimath/math/symbols/symbol_spec.rb'
427
315
  - 'spec/plurimath/unicode_math/plurimath/unicodemath_tests_spec.rb'
428
316
  - 'spec/plurimath/unicode_math/plurimath/unicodemath_transform_spec.rb'
429
- - 'spec/plurimath/unitsml_spec.rb'
430
317
 
431
- # Offense count: 13
432
- # This cop supports safe autocorrection (--autocorrect).
433
- Layout/SpaceBeforeComma:
318
+ # Offense count: 408
319
+ RSpec/MultipleExpectations:
320
+ Max: 12
321
+
322
+ # Offense count: 11
323
+ # Configuration parameters: AllowSubject.
324
+ RSpec/MultipleMemoizedHelpers:
325
+ Max: 11
326
+
327
+ # Offense count: 51
328
+ # Configuration parameters: AllowedGroups.
329
+ RSpec/NestedGroups:
330
+ Max: 5
331
+
332
+ # Offense count: 4
333
+ RSpec/RepeatedDescription:
334
+ Exclude:
335
+ - 'spec/plurimath/math/function/power_base_spec.rb'
336
+ - 'spec/plurimath/number_formatter_spec.rb'
337
+
338
+ # Offense count: 26
339
+ RSpec/RepeatedExampleGroupBody:
340
+ Exclude:
341
+ - 'spec/plurimath/asciimath/metanorma_examples_spec.rb'
342
+ - 'spec/plurimath/latex/parser_spec.rb'
343
+ - 'spec/plurimath/latex_spec.rb'
344
+ - 'spec/plurimath/math/formula/html_spec.rb'
345
+ - 'spec/plurimath/math/formula/latex_spec.rb'
346
+ - 'spec/plurimath/math/function/unary_function_spec.rb'
347
+ - 'spec/plurimath/mathml/v3/section_3_spec.rb'
348
+
349
+ # Offense count: 148
350
+ RSpec/RepeatedExampleGroupDescription:
351
+ Enabled: false
352
+
353
+ # Offense count: 25
354
+ # Configuration parameters: CustomTransform, IgnoreMethods, IgnoreMetadata, InflectorPath, EnforcedInflector.
355
+ # SupportedInflectors: default, active_support
356
+ RSpec/SpecFilePathFormat:
357
+ Enabled: false
358
+
359
+ # Offense count: 39
360
+ Style/OptionalArguments:
434
361
  Exclude:
435
362
  - 'lib/plurimath/math/function/binary_function.rb'
363
+ - 'lib/plurimath/math/function/color.rb'
436
364
  - 'lib/plurimath/math/function/font_style.rb'
365
+ - 'lib/plurimath/math/function/left.rb'
366
+ - 'lib/plurimath/math/function/right.rb'
367
+ - 'lib/plurimath/math/function/td.rb'
368
+ - 'lib/plurimath/math/function/ternary_function.rb'
437
369
  - 'lib/plurimath/math/function/unary_function.rb'
438
370
  - 'lib/plurimath/math/function/vec.rb'
371
+ - 'lib/plurimath/utility/intent_encoding.rb'
439
372
 
440
- # Offense count: 39
441
- # This cop supports safe autocorrection (--autocorrect).
442
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
443
- # SupportedStyles: space, no_space
444
- # SupportedStylesForEmptyBraces: space, no_space
445
- Layout/SpaceInsideBlockBraces:
446
- Exclude:
447
- - 'spec/plurimath/cli_spec.rb'
448
- - 'spec/plurimath/html/parse_spec.rb'
449
- - 'spec/plurimath/html/parser_s
450
- ec.rb'
451
- - 'spec/plurimath/math_spec.rb'
452
- - 'spec/plurimath/unicode_math/plurimath/unicodemath_tests_spec.rb'
453
- - 'spec/plurimath/unicode_math/plurimath/unicodemath_transform_spec.rb'
454
- - 'spec/plurimath/unitsml_spec.rb'
455
- - 'spec/plurimath/xml_engine_spec.rb'
456
-
457
- # Offense count: 19
458
- # This cop supports safe autocorrection (--autocorrect).
459
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
460
- # SupportedStyles: space, no_space, compact
461
- # SupportedStylesForEmptyBraces: space, no_space
462
- Layout/SpaceInsideHashLiteralBraces:
463
- Exclude:
464
- - 'lib/plurimath/latex/constants.rb'
465
- - 'lib/plurimath/math/function/oint.rb'
466
- - 'lib/plurimath/math/function/sum.rb'
467
- - 'spec/plurimath/fixtures/formula_modules/unicode_math_transform_values.rb'
468
- - 'spec/plurimath/xml_engine_spec.rb'
373
+ # Offense count: 111
374
+ # Configuration parameters: AllowedMethods.
375
+ # AllowedMethods: respond_to_missing?
376
+ Style/OptionalBooleanParameter:
377
+ Enabled: false
469
378
 
379
+ # Offense count: 13
380
+ # Configuration parameters: Max.
381
+ Style/SafeNavigationChainLength:
382
+ Exclude:
383
+ - 'lib/plurimath/asciimath/parser.rb'
384
+ - 'lib/plurimath/math/function/fenced.rb'
385
+ - 'lib/plurimath/math/function/font_style.rb'
386
+ - 'lib/plurimath/math/function/frac.rb'
387
+ - 'lib/plurimath/math/function/table.rb'
388
+ - 'lib/plurimath/utility.rb'
389
+ - 'lib/plurimath/utility/intent_encoding.rb'