moxml 0.1.22 → 0.1.23
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 +1 -0
- data/.rubocop.yml +1 -0
- data/.rubocop_todo.yml +680 -110
- data/Rakefile +12 -9
- data/lib/compat/opal/rexml/namespace.rb +8 -5
- data/lib/compat/opal/rexml/parsers/baseparser.rb +276 -212
- data/lib/compat/opal/rexml/source.rb +28 -27
- data/lib/compat/opal/rexml/text.rb +112 -104
- data/lib/compat/opal/rexml/xmltokens.rb +8 -8
- data/lib/compat/opal/rexml_compat.rb +12 -11
- data/lib/moxml/adapter/customized_oga/xml_declaration.rb +8 -1
- data/lib/moxml/adapter/customized_rexml/formatter.rb +4 -4
- data/lib/moxml/adapter/libxml/entity_ref_registry.rb +4 -2
- data/lib/moxml/adapter/libxml/entity_restorer.rb +3 -1
- data/lib/moxml/adapter/libxml.rb +17 -4
- data/lib/moxml/adapter/nokogiri.rb +17 -15
- data/lib/moxml/adapter/oga.rb +43 -62
- data/lib/moxml/adapter/ox.rb +35 -18
- data/lib/moxml/adapter.rb +1 -1
- data/lib/moxml/config.rb +15 -2
- data/lib/moxml/document.rb +2 -8
- data/lib/moxml/entity_registry.rb +8 -4
- data/lib/moxml/entity_registry_opal_data.rb +3 -2
- data/lib/moxml/node.rb +8 -0
- data/lib/moxml/version.rb +1 -1
- data/lib/moxml/xml_utils.rb +1 -0
- data/lib/moxml.rb +7 -0
- data/spec/integration/all_adapters_spec.rb +1 -0
- data/spec/integration/shared_examples/line_ending_behavior.rb +56 -0
- data/spec/moxml/adapter/libxml_internals_spec.rb +4 -2
- data/spec/moxml/adapter/platform_spec.rb +2 -1
- data/spec/moxml/config_spec.rb +33 -0
- metadata +3 -2
data/.rubocop_todo.yml
CHANGED
|
@@ -1,109 +1,171 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config`
|
|
3
|
-
# on 2026-05-
|
|
3
|
+
# on 2026-05-29 09:59:09 UTC using RuboCop version 1.86.0.
|
|
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:
|
|
9
|
+
# Offense count: 23
|
|
10
10
|
# This cop supports safe autocorrection (--autocorrect).
|
|
11
11
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
12
12
|
# SupportedStyles: with_first_argument, with_fixed_indentation
|
|
13
13
|
Layout/ArgumentAlignment:
|
|
14
14
|
Exclude:
|
|
15
|
-
- 'lib/
|
|
15
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
16
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
16
17
|
- 'lib/moxml/adapter/libxml.rb'
|
|
17
|
-
- 'lib/moxml/
|
|
18
|
+
- 'lib/moxml/adapter/libxml/entity_ref_registry.rb'
|
|
19
|
+
- 'lib/moxml/entity_registry.rb'
|
|
20
|
+
- 'spec/moxml/adapter/libxml_internals_spec.rb'
|
|
21
|
+
- 'spec/moxml/adapter/platform_spec.rb'
|
|
18
22
|
|
|
19
|
-
# Offense count:
|
|
23
|
+
# Offense count: 1
|
|
20
24
|
# This cop supports safe autocorrection (--autocorrect).
|
|
21
25
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
22
26
|
# SupportedStyles: with_first_element, with_fixed_indentation
|
|
23
27
|
Layout/ArrayAlignment:
|
|
24
28
|
Exclude:
|
|
25
|
-
- '
|
|
29
|
+
- 'Rakefile'
|
|
26
30
|
|
|
27
|
-
# Offense count:
|
|
31
|
+
# Offense count: 1
|
|
32
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
33
|
+
# Configuration parameters: IndentationWidth.
|
|
34
|
+
Layout/AssignmentIndentation:
|
|
35
|
+
Exclude:
|
|
36
|
+
- 'lib/moxml/adapter/libxml/entity_ref_registry.rb'
|
|
37
|
+
|
|
38
|
+
# Offense count: 1
|
|
28
39
|
# This cop supports safe autocorrection (--autocorrect).
|
|
29
40
|
# Configuration parameters: EnforcedStyleAlignWith.
|
|
30
41
|
# SupportedStylesAlignWith: either, start_of_block, start_of_line
|
|
31
42
|
Layout/BlockAlignment:
|
|
32
43
|
Exclude:
|
|
33
|
-
- '
|
|
34
|
-
- 'lib/moxml/adapter/ox.rb'
|
|
35
|
-
- 'spec/integration/shared_examples/edge_cases.rb'
|
|
36
|
-
- 'spec/integration/shared_examples/high_level/document_builder_behavior.rb'
|
|
37
|
-
- 'spec/integration/shared_examples/node_wrappers/entity_reference_behavior.rb'
|
|
38
|
-
- 'spec/moxml/xpath/functions/node_functions_spec.rb'
|
|
44
|
+
- 'Rakefile'
|
|
39
45
|
|
|
40
|
-
# Offense count:
|
|
46
|
+
# Offense count: 1
|
|
41
47
|
# This cop supports safe autocorrection (--autocorrect).
|
|
42
48
|
Layout/BlockEndNewline:
|
|
43
49
|
Exclude:
|
|
44
|
-
- '
|
|
45
|
-
- 'lib/moxml/adapter/ox.rb'
|
|
46
|
-
- 'spec/integration/shared_examples/edge_cases.rb'
|
|
47
|
-
- 'spec/integration/shared_examples/high_level/document_builder_behavior.rb'
|
|
48
|
-
- 'spec/integration/shared_examples/node_wrappers/entity_reference_behavior.rb'
|
|
49
|
-
- 'spec/moxml/xpath/functions/node_functions_spec.rb'
|
|
50
|
+
- 'Rakefile'
|
|
50
51
|
|
|
51
|
-
# Offense count:
|
|
52
|
+
# Offense count: 20
|
|
52
53
|
# This cop supports safe autocorrection (--autocorrect).
|
|
53
54
|
Layout/ClosingParenthesisIndentation:
|
|
54
55
|
Exclude:
|
|
55
|
-
- 'lib/
|
|
56
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
57
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
58
|
+
- 'lib/moxml/adapter/libxml/entity_restorer.rb'
|
|
56
59
|
|
|
57
|
-
# Offense count:
|
|
60
|
+
# Offense count: 8
|
|
58
61
|
# This cop supports safe autocorrection (--autocorrect).
|
|
59
62
|
Layout/ElseAlignment:
|
|
60
63
|
Exclude:
|
|
61
|
-
- '
|
|
64
|
+
- 'Rakefile'
|
|
65
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
66
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
67
|
+
- 'lib/moxml/adapter/libxml.rb'
|
|
62
68
|
|
|
63
|
-
# Offense count:
|
|
69
|
+
# Offense count: 28
|
|
64
70
|
# This cop supports safe autocorrection (--autocorrect).
|
|
65
71
|
Layout/EmptyLineAfterGuardClause:
|
|
66
72
|
Exclude:
|
|
67
|
-
- 'lib/
|
|
68
|
-
- 'lib/
|
|
69
|
-
- 'lib/
|
|
73
|
+
- 'lib/compat/opal/rexml/namespace.rb'
|
|
74
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
75
|
+
- 'lib/compat/opal/rexml/source.rb'
|
|
76
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
77
|
+
- 'lib/moxml/node.rb'
|
|
78
|
+
- 'lib/moxml/xml_utils.rb'
|
|
70
79
|
|
|
71
|
-
# Offense count:
|
|
80
|
+
# Offense count: 4
|
|
81
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
82
|
+
Layout/EmptyLineAfterMagicComment:
|
|
83
|
+
Exclude:
|
|
84
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
85
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
86
|
+
- 'lib/compat/opal/rexml_compat.rb'
|
|
87
|
+
- 'lib/moxml/entity_registry_opal_data.rb'
|
|
88
|
+
|
|
89
|
+
# Offense count: 3
|
|
72
90
|
# This cop supports safe autocorrection (--autocorrect).
|
|
73
91
|
# Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, DefLikeMacros, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
|
|
74
92
|
Layout/EmptyLineBetweenDefs:
|
|
75
93
|
Exclude:
|
|
76
|
-
- 'lib/
|
|
94
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
77
95
|
|
|
78
|
-
# Offense count:
|
|
96
|
+
# Offense count: 3
|
|
79
97
|
# This cop supports safe autocorrection (--autocorrect).
|
|
80
98
|
Layout/EmptyLines:
|
|
81
99
|
Exclude:
|
|
82
|
-
- 'lib/
|
|
100
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
101
|
+
|
|
102
|
+
# Offense count: 3
|
|
103
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
104
|
+
Layout/EmptyLinesAfterModuleInclusion:
|
|
105
|
+
Exclude:
|
|
106
|
+
- 'lib/compat/opal/rexml/namespace.rb'
|
|
107
|
+
- 'lib/compat/opal/rexml/source.rb'
|
|
108
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
83
109
|
|
|
84
110
|
# Offense count: 2
|
|
85
111
|
# This cop supports safe autocorrection (--autocorrect).
|
|
86
|
-
|
|
112
|
+
# Configuration parameters: EnforcedStyle.
|
|
113
|
+
# SupportedStyles: around, only_before
|
|
114
|
+
Layout/EmptyLinesAroundAccessModifier:
|
|
87
115
|
Exclude:
|
|
88
|
-
- 'lib/
|
|
116
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
117
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
89
118
|
|
|
90
119
|
# Offense count: 1
|
|
91
120
|
# This cop supports safe autocorrection (--autocorrect).
|
|
121
|
+
# Configuration parameters: AllowAliasSyntax, AllowedMethods.
|
|
122
|
+
# AllowedMethods: alias_method, public, protected, private
|
|
123
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
|
124
|
+
Exclude:
|
|
125
|
+
- 'lib/compat/opal/rexml/namespace.rb'
|
|
126
|
+
|
|
127
|
+
# Offense count: 2
|
|
128
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
129
|
+
Layout/EmptyLinesAroundMethodBody:
|
|
130
|
+
Exclude:
|
|
131
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
132
|
+
|
|
133
|
+
# Offense count: 6
|
|
134
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
92
135
|
# Configuration parameters: EnforcedStyleAlignWith.
|
|
93
136
|
# SupportedStylesAlignWith: keyword, variable, start_of_line
|
|
94
137
|
Layout/EndAlignment:
|
|
95
138
|
Exclude:
|
|
96
|
-
- '
|
|
139
|
+
- 'Rakefile'
|
|
140
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
141
|
+
- 'lib/moxml/adapter/libxml.rb'
|
|
142
|
+
|
|
143
|
+
# Offense count: 1
|
|
144
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
145
|
+
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
|
146
|
+
Layout/ExtraSpacing:
|
|
147
|
+
Exclude:
|
|
148
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
97
149
|
|
|
98
|
-
# Offense count:
|
|
150
|
+
# Offense count: 20
|
|
99
151
|
# This cop supports safe autocorrection (--autocorrect).
|
|
100
152
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
101
153
|
# SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
|
|
102
154
|
Layout/FirstArgumentIndentation:
|
|
103
155
|
Exclude:
|
|
104
|
-
- 'lib/
|
|
156
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
157
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
158
|
+
- 'lib/moxml/adapter/libxml/entity_restorer.rb'
|
|
105
159
|
|
|
106
|
-
# Offense count:
|
|
160
|
+
# Offense count: 4
|
|
161
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
162
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
163
|
+
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
|
|
164
|
+
Layout/FirstArrayElementIndentation:
|
|
165
|
+
Exclude:
|
|
166
|
+
- 'lib/moxml/adapter/libxml.rb'
|
|
167
|
+
|
|
168
|
+
# Offense count: 1
|
|
107
169
|
# This cop supports safe autocorrection (--autocorrect).
|
|
108
170
|
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
|
109
171
|
# SupportedHashRocketStyles: key, separator, table
|
|
@@ -111,55 +173,182 @@ Layout/FirstArgumentIndentation:
|
|
|
111
173
|
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
|
112
174
|
Layout/HashAlignment:
|
|
113
175
|
Exclude:
|
|
114
|
-
- 'lib/moxml/
|
|
176
|
+
- 'lib/moxml/adapter/libxml.rb'
|
|
115
177
|
|
|
116
|
-
# Offense count:
|
|
178
|
+
# Offense count: 21
|
|
117
179
|
# This cop supports safe autocorrection (--autocorrect).
|
|
118
180
|
# Configuration parameters: Width, EnforcedStyleAlignWith, AllowedPatterns.
|
|
119
181
|
# SupportedStylesAlignWith: start_of_line, relative_to_receiver
|
|
120
182
|
Layout/IndentationWidth:
|
|
121
183
|
Exclude:
|
|
122
|
-
- '
|
|
184
|
+
- 'Rakefile'
|
|
185
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
186
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
123
187
|
- 'lib/moxml/adapter/libxml.rb'
|
|
124
|
-
- 'lib/moxml/adapter/ox.rb'
|
|
125
|
-
- 'spec/integration/shared_examples/edge_cases.rb'
|
|
126
|
-
- 'spec/integration/shared_examples/high_level/document_builder_behavior.rb'
|
|
127
|
-
- 'spec/integration/shared_examples/node_wrappers/entity_reference_behavior.rb'
|
|
128
|
-
- 'spec/moxml/xpath/functions/node_functions_spec.rb'
|
|
129
188
|
|
|
130
|
-
# Offense count:
|
|
189
|
+
# Offense count: 5
|
|
190
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
191
|
+
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment, AllowRBSInlineAnnotation, AllowSteepAnnotation.
|
|
192
|
+
Layout/LeadingCommentSpace:
|
|
193
|
+
Exclude:
|
|
194
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
195
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
196
|
+
|
|
197
|
+
# Offense count: 421
|
|
131
198
|
# This cop supports safe autocorrection (--autocorrect).
|
|
132
199
|
# Configuration parameters: Max, AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, AllowRBSInlineAnnotation, AllowCopDirectives, AllowedPatterns, SplitStrings.
|
|
133
200
|
# URISchemes: http, https
|
|
134
201
|
Layout/LineLength:
|
|
135
202
|
Enabled: false
|
|
136
203
|
|
|
137
|
-
# Offense count:
|
|
204
|
+
# Offense count: 1
|
|
205
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
206
|
+
# Configuration parameters: EnforcedStyle.
|
|
207
|
+
# SupportedStyles: symmetrical, new_line, same_line
|
|
208
|
+
Layout/MultilineArrayBraceLayout:
|
|
209
|
+
Exclude:
|
|
210
|
+
- 'lib/moxml/adapter/libxml.rb'
|
|
211
|
+
|
|
212
|
+
# Offense count: 20
|
|
138
213
|
# This cop supports safe autocorrection (--autocorrect).
|
|
139
214
|
# Configuration parameters: EnforcedStyle.
|
|
140
215
|
# SupportedStyles: symmetrical, new_line, same_line
|
|
141
216
|
Layout/MultilineMethodCallBraceLayout:
|
|
142
217
|
Exclude:
|
|
143
|
-
- 'lib/
|
|
218
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
219
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
220
|
+
- 'lib/moxml/adapter/libxml/entity_restorer.rb'
|
|
144
221
|
|
|
145
|
-
# Offense count:
|
|
222
|
+
# Offense count: 11
|
|
146
223
|
# This cop supports safe autocorrection (--autocorrect).
|
|
147
224
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
148
225
|
# SupportedStyles: aligned, indented
|
|
149
226
|
Layout/MultilineOperationIndentation:
|
|
150
227
|
Exclude:
|
|
151
|
-
- '
|
|
228
|
+
- 'Rakefile'
|
|
229
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
230
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
152
231
|
|
|
153
|
-
# Offense count:
|
|
232
|
+
# Offense count: 4
|
|
233
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
234
|
+
Layout/SpaceAfterComma:
|
|
235
|
+
Exclude:
|
|
236
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
237
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
238
|
+
|
|
239
|
+
# Offense count: 1
|
|
240
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
241
|
+
# Configuration parameters: EnforcedStyleInsidePipes.
|
|
242
|
+
# SupportedStylesInsidePipes: space, no_space
|
|
243
|
+
Layout/SpaceAroundBlockParameters:
|
|
244
|
+
Exclude:
|
|
245
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
246
|
+
|
|
247
|
+
# Offense count: 28
|
|
248
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
249
|
+
# Configuration parameters: EnforcedStyle.
|
|
250
|
+
# SupportedStyles: space, no_space
|
|
251
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
|
252
|
+
Exclude:
|
|
253
|
+
- 'lib/compat/opal/rexml/namespace.rb'
|
|
254
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
255
|
+
- 'lib/compat/opal/rexml/source.rb'
|
|
256
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
257
|
+
|
|
258
|
+
# Offense count: 14
|
|
259
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
260
|
+
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator, EnforcedStyleForRationalLiterals.
|
|
261
|
+
# SupportedStylesForExponentOperator: space, no_space
|
|
262
|
+
# SupportedStylesForRationalLiterals: space, no_space
|
|
263
|
+
Layout/SpaceAroundOperators:
|
|
264
|
+
Exclude:
|
|
265
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
266
|
+
- 'lib/compat/opal/rexml/source.rb'
|
|
267
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
268
|
+
|
|
269
|
+
# Offense count: 1
|
|
270
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
271
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
|
272
|
+
# SupportedStyles: space, no_space
|
|
273
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
|
274
|
+
Layout/SpaceBeforeBlockBraces:
|
|
275
|
+
Exclude:
|
|
276
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
277
|
+
|
|
278
|
+
# Offense count: 20
|
|
279
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
280
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
|
|
281
|
+
# SupportedStyles: space, no_space, compact
|
|
282
|
+
# SupportedStylesForEmptyBrackets: space, no_space
|
|
283
|
+
Layout/SpaceInsideArrayLiteralBrackets:
|
|
284
|
+
Exclude:
|
|
285
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
286
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
287
|
+
|
|
288
|
+
# Offense count: 4
|
|
289
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
290
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
|
291
|
+
# SupportedStyles: space, no_space
|
|
292
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
|
293
|
+
Layout/SpaceInsideBlockBraces:
|
|
294
|
+
Exclude:
|
|
295
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
296
|
+
|
|
297
|
+
# Offense count: 2
|
|
298
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
299
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
|
300
|
+
# SupportedStyles: space, no_space, compact
|
|
301
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
|
302
|
+
Layout/SpaceInsideHashLiteralBraces:
|
|
303
|
+
Exclude:
|
|
304
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
305
|
+
|
|
306
|
+
# Offense count: 129
|
|
307
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
308
|
+
# Configuration parameters: EnforcedStyle.
|
|
309
|
+
# SupportedStyles: space, compact, no_space
|
|
310
|
+
Layout/SpaceInsideParens:
|
|
311
|
+
Exclude:
|
|
312
|
+
- 'lib/compat/opal/rexml/namespace.rb'
|
|
313
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
314
|
+
- 'lib/compat/opal/rexml/source.rb'
|
|
315
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
316
|
+
|
|
317
|
+
# Offense count: 2
|
|
318
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
319
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
|
|
320
|
+
# SupportedStyles: space, no_space
|
|
321
|
+
# SupportedStylesForEmptyBrackets: space, no_space
|
|
322
|
+
Layout/SpaceInsideReferenceBrackets:
|
|
323
|
+
Exclude:
|
|
324
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
325
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
326
|
+
|
|
327
|
+
# Offense count: 22
|
|
154
328
|
# This cop supports safe autocorrection (--autocorrect).
|
|
155
329
|
# Configuration parameters: AllowInHeredoc.
|
|
156
330
|
Layout/TrailingWhitespace:
|
|
157
331
|
Exclude:
|
|
158
|
-
- '
|
|
332
|
+
- 'Rakefile'
|
|
333
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
334
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
159
335
|
- 'lib/moxml/adapter/libxml.rb'
|
|
160
|
-
- 'lib/moxml/adapter/
|
|
161
|
-
- 'lib/moxml/
|
|
162
|
-
- '
|
|
336
|
+
- 'lib/moxml/adapter/libxml/entity_ref_registry.rb'
|
|
337
|
+
- 'lib/moxml/entity_registry.rb'
|
|
338
|
+
- 'spec/moxml/adapter/libxml_internals_spec.rb'
|
|
339
|
+
- 'spec/moxml/adapter/platform_spec.rb'
|
|
340
|
+
|
|
341
|
+
# Offense count: 2
|
|
342
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
343
|
+
# Configuration parameters: RequireParenthesesForMethodChains.
|
|
344
|
+
Lint/AmbiguousRange:
|
|
345
|
+
Exclude:
|
|
346
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
347
|
+
|
|
348
|
+
# Offense count: 1
|
|
349
|
+
Lint/BinaryOperatorWithIdenticalOperands:
|
|
350
|
+
Exclude:
|
|
351
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
163
352
|
|
|
164
353
|
# Offense count: 7
|
|
165
354
|
# Configuration parameters: AllowedMethods.
|
|
@@ -169,22 +358,22 @@ Lint/ConstantDefinitionInBlock:
|
|
|
169
358
|
- 'spec/moxml/declaration_preservation_spec.rb'
|
|
170
359
|
- 'spec/moxml/sax_spec.rb'
|
|
171
360
|
|
|
172
|
-
# Offense count:
|
|
361
|
+
# Offense count: 11
|
|
173
362
|
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch.
|
|
174
363
|
Lint/DuplicateBranch:
|
|
175
364
|
Exclude:
|
|
176
365
|
- 'benchmarks/generate_report.rb'
|
|
366
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
177
367
|
- 'lib/moxml/adapter/customized_libxml/declaration.rb'
|
|
178
368
|
- 'lib/moxml/adapter/libxml.rb'
|
|
179
369
|
- 'lib/moxml/adapter/ox.rb'
|
|
180
370
|
- 'lib/moxml/document.rb'
|
|
181
371
|
- 'lib/moxml/entity_registry.rb'
|
|
182
372
|
|
|
183
|
-
# Offense count:
|
|
373
|
+
# Offense count: 3
|
|
184
374
|
Lint/DuplicateMethods:
|
|
185
375
|
Exclude:
|
|
186
376
|
- 'lib/moxml/config.rb'
|
|
187
|
-
- 'lib/moxml/node.rb'
|
|
188
377
|
|
|
189
378
|
# Offense count: 4
|
|
190
379
|
# Configuration parameters: AllowComments, AllowEmptyLambdas.
|
|
@@ -200,20 +389,24 @@ Lint/EmptyConditionalBody:
|
|
|
200
389
|
Exclude:
|
|
201
390
|
- 'spec/performance/xpath_benchmark_spec.rb'
|
|
202
391
|
|
|
203
|
-
# Offense count:
|
|
392
|
+
# Offense count: 3
|
|
204
393
|
# Configuration parameters: AllowComments.
|
|
205
394
|
Lint/EmptyWhen:
|
|
206
395
|
Exclude:
|
|
396
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
397
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
207
398
|
- 'lib/moxml/xpath/compiler.rb'
|
|
208
399
|
|
|
209
|
-
# Offense count:
|
|
400
|
+
# Offense count: 7
|
|
210
401
|
Lint/HashCompareByIdentity:
|
|
211
402
|
Exclude:
|
|
403
|
+
- 'lib/moxml/adapter/rexml.rb'
|
|
212
404
|
- 'lib/moxml/native_attachment/native.rb'
|
|
213
405
|
|
|
214
|
-
# Offense count:
|
|
406
|
+
# Offense count: 5
|
|
215
407
|
Lint/IneffectiveAccessModifier:
|
|
216
408
|
Exclude:
|
|
409
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
217
410
|
- 'lib/moxml/node.rb'
|
|
218
411
|
|
|
219
412
|
# Offense count: 3
|
|
@@ -229,48 +422,95 @@ Lint/NoReturnInBeginEndBlocks:
|
|
|
229
422
|
Exclude:
|
|
230
423
|
- 'examples/api_client/api_client.rb'
|
|
231
424
|
|
|
232
|
-
# Offense count:
|
|
425
|
+
# Offense count: 1
|
|
426
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
427
|
+
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
|
428
|
+
Lint/UnusedBlockArgument:
|
|
429
|
+
Exclude:
|
|
430
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
431
|
+
|
|
432
|
+
# Offense count: 5
|
|
433
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
434
|
+
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods, NotImplementedExceptions.
|
|
435
|
+
# NotImplementedExceptions: NotImplementedError
|
|
436
|
+
Lint/UnusedMethodArgument:
|
|
437
|
+
Exclude:
|
|
438
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
439
|
+
|
|
440
|
+
# Offense count: 2
|
|
441
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
442
|
+
Lint/UselessAssignment:
|
|
443
|
+
Exclude:
|
|
444
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
445
|
+
|
|
446
|
+
# Offense count: 1
|
|
447
|
+
Lint/UselessConstantScoping:
|
|
448
|
+
Exclude:
|
|
449
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
450
|
+
|
|
451
|
+
# Offense count: 125
|
|
233
452
|
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
|
|
234
453
|
Metrics/AbcSize:
|
|
235
454
|
Enabled: false
|
|
236
455
|
|
|
237
|
-
# Offense count:
|
|
456
|
+
# Offense count: 10
|
|
238
457
|
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
|
|
239
458
|
# AllowedMethods: refine
|
|
240
459
|
Metrics/BlockLength:
|
|
241
460
|
Max: 90
|
|
242
461
|
|
|
243
|
-
# Offense count:
|
|
462
|
+
# Offense count: 22
|
|
244
463
|
# Configuration parameters: CountBlocks, CountModifierForms.
|
|
245
464
|
Metrics/BlockNesting:
|
|
246
|
-
Max:
|
|
465
|
+
Max: 5
|
|
466
|
+
|
|
467
|
+
# Offense count: 1
|
|
468
|
+
# Configuration parameters: LengthThreshold.
|
|
469
|
+
Metrics/CollectionLiteralLength:
|
|
470
|
+
Exclude:
|
|
471
|
+
- 'lib/moxml/entity_registry_opal_data.rb'
|
|
247
472
|
|
|
248
|
-
# Offense count:
|
|
473
|
+
# Offense count: 90
|
|
249
474
|
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
|
250
475
|
Metrics/CyclomaticComplexity:
|
|
251
476
|
Enabled: false
|
|
252
477
|
|
|
253
|
-
# Offense count:
|
|
478
|
+
# Offense count: 211
|
|
254
479
|
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
|
255
480
|
Metrics/MethodLength:
|
|
256
|
-
Max:
|
|
481
|
+
Max: 298
|
|
257
482
|
|
|
258
|
-
# Offense count:
|
|
259
|
-
# Configuration parameters: CountKeywordArgs
|
|
483
|
+
# Offense count: 6
|
|
484
|
+
# Configuration parameters: CountKeywordArgs.
|
|
260
485
|
Metrics/ParameterLists:
|
|
261
486
|
Max: 7
|
|
487
|
+
MaxOptionalParameters: 5
|
|
262
488
|
|
|
263
|
-
# Offense count:
|
|
489
|
+
# Offense count: 66
|
|
264
490
|
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
|
265
491
|
Metrics/PerceivedComplexity:
|
|
266
492
|
Enabled: false
|
|
267
493
|
|
|
268
|
-
# Offense count:
|
|
494
|
+
# Offense count: 1
|
|
495
|
+
Naming/ConstantName:
|
|
496
|
+
Exclude:
|
|
497
|
+
- 'lib/compat/opal/rexml_compat.rb'
|
|
498
|
+
|
|
499
|
+
# Offense count: 2
|
|
500
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
501
|
+
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
|
|
502
|
+
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
|
|
503
|
+
Naming/MemoizedInstanceVariableName:
|
|
504
|
+
Exclude:
|
|
505
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
506
|
+
|
|
507
|
+
# Offense count: 17
|
|
269
508
|
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
|
270
509
|
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
|
|
271
510
|
Naming/MethodParameterName:
|
|
272
511
|
Exclude:
|
|
273
512
|
- 'benchmarks/generate_report.rb'
|
|
513
|
+
- 'lib/compat/opal/rexml/namespace.rb'
|
|
274
514
|
- 'lib/moxml/adapter/customized_oga/xml_generator.rb'
|
|
275
515
|
- 'lib/moxml/adapter/libxml.rb'
|
|
276
516
|
- 'lib/moxml/adapter/nokogiri.rb'
|
|
@@ -280,15 +520,23 @@ Naming/MethodParameterName:
|
|
|
280
520
|
- 'lib/moxml/node_set.rb'
|
|
281
521
|
- 'lib/moxml/xpath/lexer.rb'
|
|
282
522
|
|
|
283
|
-
# Offense count:
|
|
523
|
+
# Offense count: 3
|
|
284
524
|
# Configuration parameters: Mode, AllowedMethods, AllowedPatterns, AllowBangMethods, WaywardPredicates.
|
|
285
525
|
# AllowedMethods: call
|
|
286
526
|
# WaywardPredicates: infinite?, nonzero?
|
|
287
527
|
Naming/PredicateMethod:
|
|
288
528
|
Exclude:
|
|
529
|
+
- 'lib/compat/opal/rexml/source.rb'
|
|
289
530
|
- 'lib/moxml/config.rb'
|
|
290
531
|
- 'lib/moxml/xpath/ruby/node.rb'
|
|
291
532
|
|
|
533
|
+
# Offense count: 1
|
|
534
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
535
|
+
# Configuration parameters: PreferredName.
|
|
536
|
+
Naming/RescuedExceptionsVariableName:
|
|
537
|
+
Exclude:
|
|
538
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
539
|
+
|
|
292
540
|
# Offense count: 10
|
|
293
541
|
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
|
|
294
542
|
# SupportedStyles: snake_case, normalcase, non_integer
|
|
@@ -304,6 +552,18 @@ Performance/CollectionLiteralInLoop:
|
|
|
304
552
|
Exclude:
|
|
305
553
|
- 'lib/moxml/xpath/compiler.rb'
|
|
306
554
|
|
|
555
|
+
# Offense count: 1
|
|
556
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
557
|
+
Performance/ConstantRegexp:
|
|
558
|
+
Exclude:
|
|
559
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
560
|
+
|
|
561
|
+
# Offense count: 1
|
|
562
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
563
|
+
Performance/RegexpMatch:
|
|
564
|
+
Exclude:
|
|
565
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
566
|
+
|
|
307
567
|
# Offense count: 5
|
|
308
568
|
RSpec/BeforeAfterAll:
|
|
309
569
|
Exclude:
|
|
@@ -329,12 +589,17 @@ RSpec/ContextWording:
|
|
|
329
589
|
- 'spec/moxml/xpath/parser_spec.rb'
|
|
330
590
|
- 'spec/performance/benchmark_spec.rb'
|
|
331
591
|
|
|
332
|
-
# Offense count:
|
|
592
|
+
# Offense count: 26
|
|
333
593
|
# Configuration parameters: IgnoredMetadata.
|
|
334
594
|
RSpec/DescribeClass:
|
|
335
595
|
Enabled: false
|
|
336
596
|
|
|
337
|
-
# Offense count:
|
|
597
|
+
# Offense count: 1
|
|
598
|
+
RSpec/DescribeMethod:
|
|
599
|
+
Exclude:
|
|
600
|
+
- 'spec/moxml/node_type_map_spec.rb'
|
|
601
|
+
|
|
602
|
+
# Offense count: 341
|
|
338
603
|
# Configuration parameters: CountAsOne.
|
|
339
604
|
RSpec/ExampleLength:
|
|
340
605
|
Max: 64
|
|
@@ -370,7 +635,12 @@ RSpec/LeakyConstantDeclaration:
|
|
|
370
635
|
RSpec/MessageSpies:
|
|
371
636
|
EnforcedStyle: receive
|
|
372
637
|
|
|
373
|
-
# Offense count:
|
|
638
|
+
# Offense count: 1
|
|
639
|
+
RSpec/MultipleDescribes:
|
|
640
|
+
Exclude:
|
|
641
|
+
- 'spec/moxml/adapter/platform_spec.rb'
|
|
642
|
+
|
|
643
|
+
# Offense count: 427
|
|
374
644
|
RSpec/MultipleExpectations:
|
|
375
645
|
Max: 10
|
|
376
646
|
|
|
@@ -397,12 +667,14 @@ RSpec/RepeatedExample:
|
|
|
397
667
|
- 'spec/integration/shared_examples/node_wrappers/node_set_behavior.rb'
|
|
398
668
|
- 'spec/unit/rexml_isolated_test.rb'
|
|
399
669
|
|
|
400
|
-
# Offense count:
|
|
670
|
+
# Offense count: 12
|
|
401
671
|
# Configuration parameters: CustomTransform, IgnoreMethods, IgnoreMetadata, InflectorPath, EnforcedInflector.
|
|
402
672
|
# SupportedInflectors: default, active_support
|
|
403
673
|
RSpec/SpecFilePathFormat:
|
|
404
674
|
Exclude:
|
|
405
675
|
- '**/spec/routing/**/*'
|
|
676
|
+
- 'spec/moxml/node_type_map_spec.rb'
|
|
677
|
+
- 'spec/moxml/opal_rexml_adapter_spec.rb'
|
|
406
678
|
- 'spec/moxml/xpath/ast/node_spec.rb'
|
|
407
679
|
- 'spec/moxml/xpath/cache_spec.rb'
|
|
408
680
|
- 'spec/moxml/xpath/compiler_spec.rb'
|
|
@@ -430,7 +702,40 @@ Security/Eval:
|
|
|
430
702
|
Exclude:
|
|
431
703
|
- 'spec/moxml/xpath/ruby/generator_spec.rb'
|
|
432
704
|
|
|
433
|
-
# Offense count:
|
|
705
|
+
# Offense count: 6
|
|
706
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
707
|
+
# Configuration parameters: EnforcedStyle.
|
|
708
|
+
# SupportedStyles: separated, grouped
|
|
709
|
+
Style/AccessorGrouping:
|
|
710
|
+
Exclude:
|
|
711
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
712
|
+
- 'lib/compat/opal/rexml/source.rb'
|
|
713
|
+
|
|
714
|
+
# Offense count: 18
|
|
715
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
716
|
+
# Configuration parameters: EnforcedStyle.
|
|
717
|
+
# SupportedStyles: always, conditionals
|
|
718
|
+
Style/AndOr:
|
|
719
|
+
Exclude:
|
|
720
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
721
|
+
- 'lib/compat/opal/rexml/source.rb'
|
|
722
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
723
|
+
|
|
724
|
+
# Offense count: 4
|
|
725
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
726
|
+
# Configuration parameters: EnforcedStyle.
|
|
727
|
+
# SupportedStyles: percent_q, bare_percent
|
|
728
|
+
Style/BarePercentLiterals:
|
|
729
|
+
Exclude:
|
|
730
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
731
|
+
|
|
732
|
+
# Offense count: 1
|
|
733
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
734
|
+
Style/BlockComments:
|
|
735
|
+
Exclude:
|
|
736
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
737
|
+
|
|
738
|
+
# Offense count: 7
|
|
434
739
|
# This cop supports safe autocorrection (--autocorrect).
|
|
435
740
|
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
|
|
436
741
|
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
|
|
@@ -439,24 +744,105 @@ Security/Eval:
|
|
|
439
744
|
# AllowedMethods: lambda, proc, it
|
|
440
745
|
Style/BlockDelimiters:
|
|
441
746
|
Exclude:
|
|
442
|
-
- '
|
|
443
|
-
- 'lib/
|
|
444
|
-
- '
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
747
|
+
- 'Rakefile'
|
|
748
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
749
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
750
|
+
|
|
751
|
+
# Offense count: 1
|
|
752
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
753
|
+
# Configuration parameters: MinBranchesCount.
|
|
754
|
+
Style/CaseLikeIf:
|
|
755
|
+
Exclude:
|
|
756
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
757
|
+
|
|
758
|
+
# Offense count: 4
|
|
759
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
760
|
+
# Configuration parameters: EnforcedStyle.
|
|
761
|
+
# SupportedStyles: is_a?, kind_of?
|
|
762
|
+
Style/ClassCheck:
|
|
763
|
+
Exclude:
|
|
764
|
+
- 'lib/compat/opal/rexml/source.rb'
|
|
765
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
766
|
+
|
|
767
|
+
# Offense count: 6
|
|
768
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
769
|
+
Style/ClassMethods:
|
|
770
|
+
Exclude:
|
|
771
|
+
- 'lib/compat/opal/rexml/source.rb'
|
|
772
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
773
|
+
|
|
774
|
+
# Offense count: 4
|
|
775
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
776
|
+
Style/ColonMethodDefinition:
|
|
777
|
+
Exclude:
|
|
778
|
+
- 'lib/compat/opal/rexml/source.rb'
|
|
779
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
780
|
+
|
|
781
|
+
# Offense count: 5
|
|
782
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
783
|
+
# Configuration parameters: EnforcedStyle, AllowInnerBackticks.
|
|
784
|
+
# SupportedStyles: backticks, percent_x, mixed
|
|
785
|
+
Style/CommandLiteral:
|
|
786
|
+
Exclude:
|
|
787
|
+
- 'lib/compat/opal/rexml_compat.rb'
|
|
788
|
+
|
|
789
|
+
# Offense count: 2
|
|
790
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
791
|
+
Style/ComparableBetween:
|
|
792
|
+
Exclude:
|
|
793
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
794
|
+
|
|
795
|
+
# Offense count: 5
|
|
796
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
797
|
+
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
|
798
|
+
# SupportedStyles: assign_to_condition, assign_inside_condition
|
|
799
|
+
Style/ConditionalAssignment:
|
|
800
|
+
Exclude:
|
|
801
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
448
802
|
|
|
449
803
|
# Offense count: 1
|
|
450
804
|
Style/DocumentDynamicEvalDefinition:
|
|
451
805
|
Exclude:
|
|
452
806
|
- 'spec/moxml/xpath/ruby/generator_spec.rb'
|
|
453
807
|
|
|
808
|
+
# Offense count: 1
|
|
809
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
810
|
+
# Configuration parameters: EnforcedStyle, AllowComments.
|
|
811
|
+
# SupportedStyles: empty, nil, both
|
|
812
|
+
Style/EmptyElse:
|
|
813
|
+
Exclude:
|
|
814
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
815
|
+
|
|
816
|
+
# Offense count: 2
|
|
817
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
818
|
+
# Configuration parameters: EnforcedStyle.
|
|
819
|
+
# SupportedStyles: compact, expanded
|
|
820
|
+
Style/EmptyMethod:
|
|
821
|
+
Exclude:
|
|
822
|
+
- 'lib/compat/opal/rexml/source.rb'
|
|
823
|
+
|
|
454
824
|
# Offense count: 1
|
|
455
825
|
# This cop supports safe autocorrection (--autocorrect).
|
|
456
826
|
Style/EvalWithLocation:
|
|
457
827
|
Exclude:
|
|
458
828
|
- 'spec/moxml/xpath/ruby/generator_spec.rb'
|
|
459
829
|
|
|
830
|
+
# Offense count: 1
|
|
831
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
832
|
+
# Configuration parameters: EnforcedStyle.
|
|
833
|
+
# SupportedStyles: each, for
|
|
834
|
+
Style/For:
|
|
835
|
+
Exclude:
|
|
836
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
837
|
+
|
|
838
|
+
# Offense count: 2
|
|
839
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
840
|
+
# Configuration parameters: AllowedReceivers.
|
|
841
|
+
# AllowedReceivers: Thread.current
|
|
842
|
+
Style/HashEachMethods:
|
|
843
|
+
Exclude:
|
|
844
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
845
|
+
|
|
460
846
|
# Offense count: 4
|
|
461
847
|
# Configuration parameters: MinBranchesCount.
|
|
462
848
|
Style/HashLikeCase:
|
|
@@ -464,78 +850,262 @@ Style/HashLikeCase:
|
|
|
464
850
|
- 'lib/moxml/adapter/customized_rexml/formatter.rb'
|
|
465
851
|
- 'lib/moxml/adapter/ox.rb'
|
|
466
852
|
|
|
853
|
+
# Offense count: 1
|
|
854
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
855
|
+
Style/IfUnlessModifierOfIfUnless:
|
|
856
|
+
Exclude:
|
|
857
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
858
|
+
|
|
859
|
+
# Offense count: 1
|
|
860
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
861
|
+
Style/InfiniteLoop:
|
|
862
|
+
Exclude:
|
|
863
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
864
|
+
|
|
865
|
+
# Offense count: 1
|
|
866
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
867
|
+
Style/MapJoin:
|
|
868
|
+
Exclude:
|
|
869
|
+
- 'lib/moxml/adapter.rb'
|
|
870
|
+
|
|
871
|
+
# Offense count: 5
|
|
872
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
873
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
874
|
+
Style/MethodCallWithoutArgsParentheses:
|
|
875
|
+
Exclude:
|
|
876
|
+
- 'lib/compat/opal/rexml/namespace.rb'
|
|
877
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
878
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
879
|
+
|
|
880
|
+
# Offense count: 5
|
|
881
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
882
|
+
# Configuration parameters: EnforcedStyle.
|
|
883
|
+
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
|
|
884
|
+
Style/MethodDefParentheses:
|
|
885
|
+
Exclude:
|
|
886
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
887
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
888
|
+
|
|
467
889
|
# Offense count: 1
|
|
468
890
|
Style/MissingRespondToMissing:
|
|
469
891
|
Exclude:
|
|
470
892
|
- 'lib/moxml/xpath/ruby/node.rb'
|
|
471
893
|
|
|
472
|
-
# Offense count:
|
|
894
|
+
# Offense count: 14
|
|
473
895
|
# This cop supports safe autocorrection (--autocorrect).
|
|
474
896
|
Style/MultilineIfModifier:
|
|
475
897
|
Exclude:
|
|
476
|
-
- 'lib/
|
|
898
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
899
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
900
|
+
- 'lib/moxml/adapter/libxml.rb'
|
|
477
901
|
|
|
478
902
|
# Offense count: 1
|
|
479
903
|
# This cop supports safe autocorrection (--autocorrect).
|
|
480
904
|
Style/MultilineTernaryOperator:
|
|
481
905
|
Exclude:
|
|
482
|
-
- 'lib/moxml/adapter/
|
|
906
|
+
- 'lib/moxml/adapter/libxml.rb'
|
|
907
|
+
|
|
908
|
+
# Offense count: 41
|
|
909
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
910
|
+
# Configuration parameters: EnforcedStyle.
|
|
911
|
+
# SupportedStyles: literals, strict
|
|
912
|
+
Style/MutableConstant:
|
|
913
|
+
Exclude:
|
|
914
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
915
|
+
- 'lib/compat/opal/rexml/source.rb'
|
|
916
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
917
|
+
- 'lib/compat/opal/rexml/xmltokens.rb'
|
|
483
918
|
|
|
484
919
|
# Offense count: 1
|
|
485
920
|
# This cop supports safe autocorrection (--autocorrect).
|
|
486
|
-
|
|
487
|
-
Style/MultipleComparison:
|
|
921
|
+
Style/NegatedIfElseCondition:
|
|
488
922
|
Exclude:
|
|
489
|
-
- 'lib/
|
|
923
|
+
- 'lib/compat/opal/rexml/source.rb'
|
|
490
924
|
|
|
491
|
-
# Offense count:
|
|
925
|
+
# Offense count: 9
|
|
926
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
927
|
+
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
|
|
928
|
+
# SupportedStyles: predicate, comparison
|
|
929
|
+
Style/NumericPredicate:
|
|
930
|
+
Exclude:
|
|
931
|
+
- 'spec/**/*'
|
|
932
|
+
- 'lib/compat/opal/rexml/namespace.rb'
|
|
933
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
934
|
+
- 'lib/compat/opal/rexml/source.rb'
|
|
935
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
936
|
+
|
|
937
|
+
# Offense count: 6
|
|
492
938
|
# Configuration parameters: AllowedClasses.
|
|
493
939
|
Style/OneClassPerFile:
|
|
494
940
|
Exclude:
|
|
495
941
|
- 'examples/api_client/api_client.rb'
|
|
496
942
|
- 'examples/rss_parser/rss_parser.rb'
|
|
497
943
|
- 'examples/web_scraper/web_scraper.rb'
|
|
944
|
+
- 'lib/compat/opal/rexml_compat.rb'
|
|
498
945
|
|
|
499
|
-
# Offense count:
|
|
946
|
+
# Offense count: 11
|
|
500
947
|
# Configuration parameters: AllowedMethods.
|
|
501
948
|
# AllowedMethods: respond_to_missing?
|
|
502
949
|
Style/OptionalBooleanParameter:
|
|
503
950
|
Exclude:
|
|
951
|
+
- 'lib/compat/opal/rexml/source.rb'
|
|
952
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
504
953
|
- 'lib/moxml/adapter/libxml.rb'
|
|
505
954
|
- 'lib/moxml/xpath/compiler.rb'
|
|
506
955
|
|
|
507
956
|
# Offense count: 2
|
|
508
957
|
# This cop supports safe autocorrection (--autocorrect).
|
|
509
|
-
Style/
|
|
958
|
+
Style/ParallelAssignment:
|
|
510
959
|
Exclude:
|
|
511
|
-
- 'lib/
|
|
960
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
961
|
+
|
|
962
|
+
# Offense count: 2
|
|
963
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
964
|
+
# Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions.
|
|
965
|
+
Style/ParenthesesAroundCondition:
|
|
966
|
+
Exclude:
|
|
967
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
512
968
|
|
|
513
969
|
# Offense count: 1
|
|
514
970
|
# This cop supports safe autocorrection (--autocorrect).
|
|
515
|
-
|
|
971
|
+
# Configuration parameters: EnforcedStyle.
|
|
972
|
+
# SupportedStyles: lower_case_q, upper_case_q
|
|
973
|
+
Style/PercentQLiterals:
|
|
516
974
|
Exclude:
|
|
517
|
-
- '
|
|
975
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
976
|
+
|
|
977
|
+
# Offense count: 4
|
|
978
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
979
|
+
# Configuration parameters: Methods.
|
|
980
|
+
Style/RedundantArgument:
|
|
981
|
+
Exclude:
|
|
982
|
+
- 'lib/compat/opal/rexml/xmltokens.rb'
|
|
983
|
+
|
|
984
|
+
# Offense count: 2
|
|
985
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
986
|
+
# Configuration parameters: AllowedMethods.
|
|
987
|
+
# AllowedMethods: infinite?, nonzero?
|
|
988
|
+
Style/RedundantCondition:
|
|
989
|
+
Exclude:
|
|
990
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
518
991
|
|
|
519
992
|
# Offense count: 1
|
|
520
993
|
# This cop supports safe autocorrection (--autocorrect).
|
|
994
|
+
Style/RedundantConstantBase:
|
|
995
|
+
Exclude:
|
|
996
|
+
- 'lib/compat/opal/rexml_compat.rb'
|
|
997
|
+
|
|
998
|
+
# Offense count: 6
|
|
999
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
521
1000
|
Style/RedundantParentheses:
|
|
522
1001
|
Exclude:
|
|
523
|
-
- 'lib/
|
|
1002
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
1003
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
524
1004
|
|
|
525
|
-
# Offense count:
|
|
1005
|
+
# Offense count: 6
|
|
1006
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
1007
|
+
# Configuration parameters: AllowMultipleReturnValues.
|
|
1008
|
+
Style/RedundantReturn:
|
|
1009
|
+
Exclude:
|
|
1010
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
1011
|
+
|
|
1012
|
+
# Offense count: 1
|
|
1013
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
1014
|
+
# Configuration parameters: EnforcedStyle.
|
|
1015
|
+
# SupportedStyles: implicit, explicit
|
|
1016
|
+
Style/RescueStandardError:
|
|
1017
|
+
Exclude:
|
|
1018
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
1019
|
+
|
|
1020
|
+
# Offense count: 7
|
|
526
1021
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
527
|
-
|
|
1022
|
+
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
|
|
1023
|
+
# AllowedMethods: present?, blank?, presence, try, try!
|
|
1024
|
+
Style/SafeNavigation:
|
|
528
1025
|
Exclude:
|
|
529
|
-
- '
|
|
530
|
-
- '
|
|
531
|
-
- '
|
|
532
|
-
- 'spec/integration/shared_examples/node_wrappers/node_set_behavior.rb'
|
|
533
|
-
- 'spec/moxml/xpath/functions/node_functions_spec.rb'
|
|
1026
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
1027
|
+
- 'lib/compat/opal/rexml/source.rb'
|
|
1028
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
534
1029
|
|
|
535
|
-
# Offense count:
|
|
1030
|
+
# Offense count: 1
|
|
536
1031
|
# This cop supports safe autocorrection (--autocorrect).
|
|
537
|
-
# Configuration parameters:
|
|
538
|
-
|
|
539
|
-
Style/SymbolArray:
|
|
1032
|
+
# Configuration parameters: AllowAsExpressionSeparator.
|
|
1033
|
+
Style/Semicolon:
|
|
540
1034
|
Exclude:
|
|
541
|
-
- 'lib/
|
|
1035
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
1036
|
+
|
|
1037
|
+
# Offense count: 7
|
|
1038
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
1039
|
+
Style/SlicingWithRange:
|
|
1040
|
+
Exclude:
|
|
1041
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
1042
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
1043
|
+
|
|
1044
|
+
# Offense count: 3
|
|
1045
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
1046
|
+
# Configuration parameters: AllowModifier.
|
|
1047
|
+
Style/SoleNestedConditional:
|
|
1048
|
+
Exclude:
|
|
1049
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
1050
|
+
|
|
1051
|
+
# Offense count: 13
|
|
1052
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
1053
|
+
# Configuration parameters: Mode.
|
|
1054
|
+
Style/StringConcatenation:
|
|
1055
|
+
Exclude:
|
|
1056
|
+
- 'Rakefile'
|
|
1057
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
1058
|
+
- 'lib/compat/opal/rexml/source.rb'
|
|
1059
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
1060
|
+
|
|
1061
|
+
# Offense count: 89
|
|
1062
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
1063
|
+
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
|
1064
|
+
# SupportedStyles: single_quotes, double_quotes
|
|
1065
|
+
Style/StringLiterals:
|
|
1066
|
+
Exclude:
|
|
1067
|
+
- 'lib/compat/opal/rexml/namespace.rb'
|
|
1068
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
1069
|
+
- 'lib/compat/opal/rexml/source.rb'
|
|
1070
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
1071
|
+
- 'lib/compat/opal/rexml_compat.rb'
|
|
1072
|
+
- 'lib/moxml/adapter/customized_rexml/formatter.rb'
|
|
1073
|
+
|
|
1074
|
+
# Offense count: 1
|
|
1075
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
1076
|
+
# Configuration parameters: EnforcedStyle.
|
|
1077
|
+
# SupportedStyles: single_quotes, double_quotes
|
|
1078
|
+
Style/StringLiteralsInInterpolation:
|
|
1079
|
+
Exclude:
|
|
1080
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
1081
|
+
|
|
1082
|
+
# Offense count: 5
|
|
1083
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
1084
|
+
Style/SuperArguments:
|
|
1085
|
+
Exclude:
|
|
1086
|
+
- 'lib/compat/opal/rexml/source.rb'
|
|
1087
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
1088
|
+
|
|
1089
|
+
# Offense count: 1
|
|
1090
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
1091
|
+
# Configuration parameters: EnforcedStyleForMultiline.
|
|
1092
|
+
# SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
|
|
1093
|
+
Style/TrailingCommaInArrayLiteral:
|
|
1094
|
+
Exclude:
|
|
1095
|
+
- 'lib/compat/opal/rexml/text.rb'
|
|
1096
|
+
|
|
1097
|
+
# Offense count: 1
|
|
1098
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
1099
|
+
# Configuration parameters: EnforcedStyleForMultiline.
|
|
1100
|
+
# SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
|
|
1101
|
+
Style/TrailingCommaInHashLiteral:
|
|
1102
|
+
Exclude:
|
|
1103
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
1104
|
+
|
|
1105
|
+
# Offense count: 8
|
|
1106
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
1107
|
+
Style/ZeroLengthPredicate:
|
|
1108
|
+
Exclude:
|
|
1109
|
+
- 'lib/compat/opal/rexml/namespace.rb'
|
|
1110
|
+
- 'lib/compat/opal/rexml/parsers/baseparser.rb'
|
|
1111
|
+
- 'lib/compat/opal/rexml/text.rb'
|