metanorma-document 0.2.1 → 0.2.3
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/.rubocop_todo.yml +232 -53
- data/lib/metanorma/document/version.rb +1 -1
- data/lib/metanorma/html/base_renderer.rb +252 -185
- data/lib/metanorma/html/bipm_renderer.rb +0 -1
- data/lib/metanorma/html/cc_renderer.rb +0 -1
- data/lib/metanorma/html/iec_renderer.rb +0 -1
- data/lib/metanorma/html/ieee_renderer.rb +0 -1
- data/lib/metanorma/html/ietf_renderer.rb +0 -1
- data/lib/metanorma/html/iho_renderer.rb +0 -1
- data/lib/metanorma/html/iso_renderer.rb +15 -189
- data/lib/metanorma/html/itu_renderer.rb +0 -1
- data/lib/metanorma/html/ogc_renderer.rb +0 -1
- data/lib/metanorma/html/oiml_renderer.rb +0 -1
- data/lib/metanorma/html/pdfa_renderer.rb +0 -1
- data/lib/metanorma/html/ribose_renderer.rb +0 -1
- data/lib/metanorma/html/standard_renderer.rb +43 -87
- data/lib/metanorma/html.rb +0 -1
- metadata +2 -3
- data/lib/metanorma/html/component_registry.rb +0 -37
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c2f0bcb971c3831683b2786c9596f336f6c80597b8747ed05fb7f195eb6dc492
|
|
4
|
+
data.tar.gz: bf6154b258dda4bc3e5c6eb8073001d214ee6268f2b5747bb9f73683950f6fa7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 74d4cf3024d3096c93df42af04695cbf01581e82ef3e4ac5771900e1fc729bba43f53a5070f748d640755c69a4c54df4cc242558407e26ccad67be91ceac4faa
|
|
7
|
+
data.tar.gz: 821daad319b1f3a38457082d3719af6cc23c7f7843bae9eb50841784b9c4a4f8466b9b75ef61aaf3c0079f2081b91194292a3a574cf15b5e2f12f73a01d1f902
|
data/.rubocop_todo.yml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config`
|
|
3
|
-
# on 2026-
|
|
3
|
+
# on 2026-05-06 10:09:39 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
|
|
@@ -13,114 +13,221 @@ Gemspec/RequiredRubyVersion:
|
|
|
13
13
|
|
|
14
14
|
# Offense count: 1
|
|
15
15
|
# This cop supports safe autocorrection (--autocorrect).
|
|
16
|
-
|
|
16
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
17
|
+
# SupportedStyles: with_first_argument, with_fixed_indentation
|
|
18
|
+
Layout/ArgumentAlignment:
|
|
17
19
|
Exclude:
|
|
18
|
-
- 'lib/metanorma/html/
|
|
20
|
+
- 'lib/metanorma/html/component/index_term_collector.rb'
|
|
19
21
|
|
|
20
|
-
# Offense count:
|
|
22
|
+
# Offense count: 5
|
|
21
23
|
# This cop supports safe autocorrection (--autocorrect).
|
|
22
|
-
|
|
23
|
-
# SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
|
|
24
|
-
Layout/FirstArgumentIndentation:
|
|
24
|
+
Layout/EmptyLineAfterGuardClause:
|
|
25
25
|
Exclude:
|
|
26
|
-
- 'lib/metanorma/html/
|
|
26
|
+
- 'lib/metanorma/html/generator.rb'
|
|
27
|
+
- 'lib/metanorma/iso_document/metadata/iso_localized_title.rb'
|
|
27
28
|
|
|
28
|
-
# Offense count:
|
|
29
|
+
# Offense count: 11
|
|
30
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
31
|
+
# Configuration parameters: EnforcedStyle.
|
|
32
|
+
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
|
|
33
|
+
Layout/EmptyLinesAroundClassBody:
|
|
34
|
+
Exclude:
|
|
35
|
+
- 'lib/metanorma/html/bipm_renderer.rb'
|
|
36
|
+
- 'lib/metanorma/html/cc_renderer.rb'
|
|
37
|
+
- 'lib/metanorma/html/iec_renderer.rb'
|
|
38
|
+
- 'lib/metanorma/html/ieee_renderer.rb'
|
|
39
|
+
- 'lib/metanorma/html/ietf_renderer.rb'
|
|
40
|
+
- 'lib/metanorma/html/iho_renderer.rb'
|
|
41
|
+
- 'lib/metanorma/html/itu_renderer.rb'
|
|
42
|
+
- 'lib/metanorma/html/ogc_renderer.rb'
|
|
43
|
+
- 'lib/metanorma/html/oiml_renderer.rb'
|
|
44
|
+
- 'lib/metanorma/html/pdfa_renderer.rb'
|
|
45
|
+
- 'lib/metanorma/html/ribose_renderer.rb'
|
|
46
|
+
|
|
47
|
+
# Offense count: 5
|
|
48
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
49
|
+
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
|
50
|
+
Layout/ExtraSpacing:
|
|
51
|
+
Exclude:
|
|
52
|
+
- 'lib/metanorma/html/bipm_renderer.rb'
|
|
53
|
+
- 'lib/metanorma/html/generator.rb'
|
|
54
|
+
- 'lib/metanorma/html/iho_renderer.rb'
|
|
55
|
+
- 'lib/metanorma/html/theme.rb'
|
|
56
|
+
|
|
57
|
+
# Offense count: 809
|
|
29
58
|
# This cop supports safe autocorrection (--autocorrect).
|
|
30
59
|
# Configuration parameters: Max, AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, AllowRBSInlineAnnotation, AllowCopDirectives, AllowedPatterns, SplitStrings.
|
|
31
60
|
# URISchemes: http, https
|
|
32
61
|
Layout/LineLength:
|
|
33
62
|
Enabled: false
|
|
34
63
|
|
|
35
|
-
# Offense count:
|
|
64
|
+
# Offense count: 3
|
|
36
65
|
# This cop supports safe autocorrection (--autocorrect).
|
|
37
|
-
# Configuration parameters:
|
|
38
|
-
#
|
|
39
|
-
|
|
66
|
+
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator, EnforcedStyleForRationalLiterals.
|
|
67
|
+
# SupportedStylesForExponentOperator: space, no_space
|
|
68
|
+
# SupportedStylesForRationalLiterals: space, no_space
|
|
69
|
+
Layout/SpaceAroundOperators:
|
|
40
70
|
Exclude:
|
|
41
|
-
- 'lib/metanorma/html/
|
|
71
|
+
- 'lib/metanorma/html/bipm_renderer.rb'
|
|
72
|
+
- 'lib/metanorma/html/iho_renderer.rb'
|
|
73
|
+
- 'lib/metanorma/html/theme.rb'
|
|
42
74
|
|
|
43
|
-
# Offense count:
|
|
75
|
+
# Offense count: 1
|
|
76
|
+
# Configuration parameters: AllowedMethods.
|
|
77
|
+
# AllowedMethods: enums
|
|
78
|
+
Lint/ConstantDefinitionInBlock:
|
|
79
|
+
Exclude:
|
|
80
|
+
- 'spec/metanorma/html/renderer/class_ownership_spec.rb'
|
|
81
|
+
|
|
82
|
+
# Offense count: 1
|
|
44
83
|
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch.
|
|
45
84
|
Lint/DuplicateBranch:
|
|
46
85
|
Exclude:
|
|
47
|
-
- 'lib/metanorma/html/
|
|
48
|
-
- 'lib/metanorma/html/renderer.rb'
|
|
86
|
+
- 'lib/metanorma/html/base_renderer.rb'
|
|
49
87
|
|
|
50
|
-
# Offense count:
|
|
88
|
+
# Offense count: 3
|
|
51
89
|
# Configuration parameters: AllowComments, AllowEmptyLambdas.
|
|
52
90
|
Lint/EmptyBlock:
|
|
53
91
|
Exclude:
|
|
92
|
+
- 'lib/metanorma/html/drops/formula_drop.rb'
|
|
54
93
|
- 'spec/metanorma/iso_document/metadata/title_roundtrip_spec.rb'
|
|
55
94
|
|
|
95
|
+
# Offense count: 2
|
|
96
|
+
# Configuration parameters: AllowedParentClasses.
|
|
97
|
+
Lint/MissingSuper:
|
|
98
|
+
Exclude:
|
|
99
|
+
- 'lib/metanorma/html/drops/block_element_drop.rb'
|
|
100
|
+
- 'lib/metanorma/html/drops/footnote_drop.rb'
|
|
101
|
+
|
|
56
102
|
# Offense count: 1
|
|
57
|
-
|
|
58
|
-
# AllowedPatterns: (?-mix:(exactly|at_least|at_most)\(\d+\)\.times)
|
|
59
|
-
Lint/UnreachableLoop:
|
|
103
|
+
Lint/StructNewOverride:
|
|
60
104
|
Exclude:
|
|
61
|
-
- 'lib/metanorma/html/
|
|
105
|
+
- 'lib/metanorma/html/component/index_term_collector.rb'
|
|
106
|
+
|
|
107
|
+
# Offense count: 2
|
|
108
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
109
|
+
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods, NotImplementedExceptions.
|
|
110
|
+
# NotImplementedExceptions: NotImplementedError
|
|
111
|
+
Lint/UnusedMethodArgument:
|
|
112
|
+
Exclude:
|
|
113
|
+
- 'lib/metanorma/html/component/index_section.rb'
|
|
114
|
+
- 'lib/metanorma/html/generator.rb'
|
|
62
115
|
|
|
63
116
|
# Offense count: 1
|
|
64
117
|
Lint/UselessConstantScoping:
|
|
65
118
|
Exclude:
|
|
66
|
-
- 'lib/metanorma/html/
|
|
119
|
+
- 'lib/metanorma/html/base_renderer.rb'
|
|
67
120
|
|
|
68
|
-
# Offense count:
|
|
121
|
+
# Offense count: 80
|
|
69
122
|
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
|
|
70
123
|
Metrics/AbcSize:
|
|
71
|
-
|
|
72
|
-
- 'lib/metanorma/document/components/lists/list_item.rb'
|
|
73
|
-
- 'lib/metanorma/html/index_generator.rb'
|
|
74
|
-
- 'lib/metanorma/html/renderer.rb'
|
|
75
|
-
- 'lib/metanorma/html/transformer.rb'
|
|
124
|
+
Enabled: false
|
|
76
125
|
|
|
77
|
-
# Offense count:
|
|
126
|
+
# Offense count: 22
|
|
78
127
|
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
|
|
79
128
|
# AllowedMethods: refine
|
|
80
129
|
Metrics/BlockLength:
|
|
81
|
-
Max:
|
|
130
|
+
Max: 66
|
|
82
131
|
|
|
83
132
|
# Offense count: 2
|
|
84
133
|
# Configuration parameters: CountBlocks, CountModifierForms.
|
|
85
134
|
Metrics/BlockNesting:
|
|
86
135
|
Max: 4
|
|
87
136
|
|
|
88
|
-
# Offense count:
|
|
137
|
+
# Offense count: 60
|
|
89
138
|
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
|
90
139
|
Metrics/CyclomaticComplexity:
|
|
91
140
|
Exclude:
|
|
92
141
|
- 'lib/metanorma/document/components/lists/list_item.rb'
|
|
93
|
-
- 'lib/metanorma/html/
|
|
94
|
-
- 'lib/metanorma/html/
|
|
95
|
-
- 'lib/metanorma/html/
|
|
142
|
+
- 'lib/metanorma/html/base_renderer.rb'
|
|
143
|
+
- 'lib/metanorma/html/bipm_renderer.rb'
|
|
144
|
+
- 'lib/metanorma/html/component/index_term_collector.rb'
|
|
145
|
+
- 'lib/metanorma/html/drops/example_drop.rb'
|
|
146
|
+
- 'lib/metanorma/html/drops/figure_drop.rb'
|
|
147
|
+
- 'lib/metanorma/html/drops/formula_drop.rb'
|
|
148
|
+
- 'lib/metanorma/html/drops/note_drop.rb'
|
|
149
|
+
- 'lib/metanorma/html/generator.rb'
|
|
150
|
+
- 'lib/metanorma/html/iso_renderer.rb'
|
|
151
|
+
- 'lib/metanorma/html/ogc_renderer.rb'
|
|
152
|
+
- 'lib/metanorma/html/standard_renderer.rb'
|
|
153
|
+
- 'lib/metanorma/html/theme.rb'
|
|
96
154
|
- 'lib/metanorma/iso_document/metadata/iso_localized_title.rb'
|
|
97
155
|
|
|
98
|
-
# Offense count:
|
|
156
|
+
# Offense count: 85
|
|
99
157
|
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
|
100
158
|
Metrics/MethodLength:
|
|
101
|
-
Max:
|
|
159
|
+
Max: 75
|
|
102
160
|
|
|
103
|
-
# Offense count:
|
|
161
|
+
# Offense count: 1
|
|
162
|
+
# Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
|
|
163
|
+
Metrics/ParameterLists:
|
|
164
|
+
Max: 7
|
|
165
|
+
|
|
166
|
+
# Offense count: 54
|
|
104
167
|
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
|
105
168
|
Metrics/PerceivedComplexity:
|
|
106
169
|
Exclude:
|
|
107
170
|
- 'lib/metanorma/document/components/lists/list_item.rb'
|
|
108
|
-
- 'lib/metanorma/html/
|
|
109
|
-
- 'lib/metanorma/html/
|
|
110
|
-
- 'lib/metanorma/html/
|
|
171
|
+
- 'lib/metanorma/html/base_renderer.rb'
|
|
172
|
+
- 'lib/metanorma/html/bipm_renderer.rb'
|
|
173
|
+
- 'lib/metanorma/html/component/index_term_collector.rb'
|
|
174
|
+
- 'lib/metanorma/html/drops/example_drop.rb'
|
|
175
|
+
- 'lib/metanorma/html/drops/figure_drop.rb'
|
|
176
|
+
- 'lib/metanorma/html/drops/formula_drop.rb'
|
|
177
|
+
- 'lib/metanorma/html/drops/note_drop.rb'
|
|
178
|
+
- 'lib/metanorma/html/generator.rb'
|
|
179
|
+
- 'lib/metanorma/html/iso_renderer.rb'
|
|
180
|
+
- 'lib/metanorma/html/ogc_renderer.rb'
|
|
181
|
+
- 'lib/metanorma/html/standard_renderer.rb'
|
|
182
|
+
- 'lib/metanorma/html/theme.rb'
|
|
183
|
+
- 'lib/metanorma/iso_document/metadata/iso_localized_title.rb'
|
|
111
184
|
|
|
112
|
-
# Offense count:
|
|
185
|
+
# Offense count: 2
|
|
186
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
187
|
+
# Configuration parameters: EnforcedStyle, BlockForwardingName.
|
|
188
|
+
# SupportedStyles: anonymous, explicit
|
|
189
|
+
Naming/BlockForwarding:
|
|
190
|
+
Exclude:
|
|
191
|
+
- 'lib/metanorma/html/component/footnote_collector.rb'
|
|
192
|
+
|
|
193
|
+
# Offense count: 39
|
|
113
194
|
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
|
114
195
|
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
|
|
115
196
|
Naming/MethodParameterName:
|
|
116
197
|
Exclude:
|
|
117
|
-
- 'lib/metanorma/html/
|
|
198
|
+
- 'lib/metanorma/html/base_renderer.rb'
|
|
199
|
+
- 'lib/metanorma/html/component/footnote_collector.rb'
|
|
200
|
+
- 'lib/metanorma/html/drops/sourcecode_drop.rb'
|
|
201
|
+
- 'lib/metanorma/html/iso_renderer.rb'
|
|
202
|
+
- 'spec/metanorma/html/renderer/footnote_collector_spec.rb'
|
|
203
|
+
|
|
204
|
+
# Offense count: 2
|
|
205
|
+
# Configuration parameters: Mode, AllowedMethods, AllowedPatterns, AllowBangMethods, WaywardPredicates.
|
|
206
|
+
# AllowedMethods: call
|
|
207
|
+
# WaywardPredicates: infinite?, nonzero?
|
|
208
|
+
Naming/PredicateMethod:
|
|
209
|
+
Exclude:
|
|
210
|
+
- 'lib/metanorma/html/base_renderer.rb'
|
|
211
|
+
|
|
212
|
+
# Offense count: 1
|
|
213
|
+
# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros, UseSorbetSigs.
|
|
214
|
+
# NamePrefix: is_, has_, have_, does_
|
|
215
|
+
# ForbiddenPrefixes: is_, has_, have_, does_
|
|
216
|
+
# AllowedMethods: is_a?
|
|
217
|
+
# MethodDefinitionMacros: define_method, define_singleton_method
|
|
218
|
+
Naming/PredicatePrefix:
|
|
219
|
+
Exclude:
|
|
220
|
+
- 'lib/metanorma/html/standard_renderer.rb'
|
|
118
221
|
|
|
119
|
-
# Offense count:
|
|
222
|
+
# Offense count: 14
|
|
120
223
|
# Configuration parameters: IgnoredMetadata.
|
|
121
224
|
RSpec/DescribeClass:
|
|
122
225
|
Exclude:
|
|
123
226
|
- 'spec/metanorma/document_spec.rb'
|
|
227
|
+
- 'spec/metanorma/html/renderer/class_ownership_spec.rb'
|
|
228
|
+
- 'spec/metanorma/html/renderer/dead_code_removal_spec.rb'
|
|
229
|
+
- 'spec/metanorma/html/renderer/section_rendering_spec.rb'
|
|
230
|
+
- 'spec/metanorma/html/renderer/type_registry_spec.rb'
|
|
124
231
|
- 'spec/metanorma/iso_document/metadata/title_roundtrip_spec.rb'
|
|
125
232
|
- 'spec/metanorma/iso_document/roundtrip/bipm_roundtrip_spec.rb'
|
|
126
233
|
- 'spec/metanorma/iso_document/roundtrip/cc_roundtrip_spec.rb'
|
|
@@ -131,36 +238,108 @@ RSpec/DescribeClass:
|
|
|
131
238
|
- 'spec/metanorma/iso_document/roundtrip/oiml_collection_roundtrip_spec.rb'
|
|
132
239
|
- 'spec/metanorma/iso_document/roundtrip/oiml_roundtrip_spec.rb'
|
|
133
240
|
|
|
134
|
-
# Offense count:
|
|
241
|
+
# Offense count: 4
|
|
135
242
|
# Configuration parameters: CountAsOne.
|
|
136
243
|
RSpec/ExampleLength:
|
|
137
|
-
Max:
|
|
244
|
+
Max: 8
|
|
245
|
+
|
|
246
|
+
# Offense count: 1
|
|
247
|
+
RSpec/LeakyConstantDeclaration:
|
|
248
|
+
Exclude:
|
|
249
|
+
- 'spec/metanorma/html/renderer/class_ownership_spec.rb'
|
|
138
250
|
|
|
139
251
|
# Offense count: 1
|
|
140
252
|
RSpec/MultipleDescribes:
|
|
141
253
|
Exclude:
|
|
142
254
|
- 'spec/metanorma/document_spec.rb'
|
|
143
255
|
|
|
144
|
-
# Offense count:
|
|
256
|
+
# Offense count: 303
|
|
145
257
|
# Configuration parameters: AllowedPatterns.
|
|
146
258
|
# AllowedPatterns: ^expect_, ^assert_
|
|
147
259
|
RSpec/NoExpectationExample:
|
|
148
260
|
Enabled: false
|
|
149
261
|
|
|
150
|
-
# Offense count:
|
|
262
|
+
# Offense count: 25
|
|
151
263
|
# Configuration parameters: CustomTransform, IgnoreMethods, IgnoreMetadata, InflectorPath, EnforcedInflector.
|
|
152
264
|
# SupportedInflectors: default, active_support
|
|
153
265
|
RSpec/SpecFilePathFormat:
|
|
154
266
|
Enabled: false
|
|
155
267
|
|
|
156
268
|
# Offense count: 2
|
|
269
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
270
|
+
# Configuration parameters: AllowOnlyRestArgument, UseAnonymousForwarding, RedundantRestArgumentNames, RedundantKeywordRestArgumentNames, RedundantBlockArgumentNames.
|
|
271
|
+
# RedundantRestArgumentNames: args, arguments
|
|
272
|
+
# RedundantKeywordRestArgumentNames: kwargs, options, opts
|
|
273
|
+
# RedundantBlockArgumentNames: blk, block, proc
|
|
274
|
+
Style/ArgumentsForwarding:
|
|
275
|
+
Exclude:
|
|
276
|
+
- 'lib/metanorma/html/component/footnote_collector.rb'
|
|
277
|
+
|
|
278
|
+
# Offense count: 1
|
|
279
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
280
|
+
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
|
|
281
|
+
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
|
|
282
|
+
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
|
283
|
+
# FunctionalMethods: let, let!, subject, watch
|
|
284
|
+
# AllowedMethods: lambda, proc, it
|
|
285
|
+
Style/BlockDelimiters:
|
|
286
|
+
Exclude:
|
|
287
|
+
- 'lib/metanorma/iso_document/metadata/iso_bibliographic_item.rb'
|
|
288
|
+
|
|
289
|
+
# Offense count: 5
|
|
290
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
291
|
+
Style/ComparableClamp:
|
|
292
|
+
Exclude:
|
|
293
|
+
- 'lib/metanorma/html/base_renderer.rb'
|
|
294
|
+
- 'lib/metanorma/html/iso_renderer.rb'
|
|
295
|
+
- 'lib/metanorma/html/standard_renderer.rb'
|
|
296
|
+
|
|
297
|
+
# Offense count: 1
|
|
298
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
299
|
+
# Configuration parameters: InverseMethods, InverseBlocks.
|
|
300
|
+
Style/InverseMethods:
|
|
301
|
+
Exclude:
|
|
302
|
+
- 'lib/metanorma/html/component/index_term_collector.rb'
|
|
303
|
+
|
|
304
|
+
# Offense count: 1
|
|
157
305
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
158
|
-
|
|
306
|
+
# Configuration parameters: EnforcedStyle.
|
|
307
|
+
# SupportedStyles: literals, strict
|
|
308
|
+
Style/MutableConstant:
|
|
159
309
|
Exclude:
|
|
160
|
-
- 'lib/metanorma/html/
|
|
310
|
+
- 'lib/metanorma/html/base_renderer.rb'
|
|
161
311
|
|
|
162
312
|
# Offense count: 1
|
|
163
|
-
#
|
|
164
|
-
Style/
|
|
313
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
314
|
+
Style/NegatedIfElseCondition:
|
|
315
|
+
Exclude:
|
|
316
|
+
- 'lib/metanorma/iso_document/metadata/iso_localized_title.rb'
|
|
317
|
+
|
|
318
|
+
# Offense count: 1
|
|
319
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
320
|
+
Style/RedundantRegexpArgument:
|
|
321
|
+
Exclude:
|
|
322
|
+
- 'lib/metanorma/html/bipm_renderer.rb'
|
|
323
|
+
|
|
324
|
+
# Offense count: 2
|
|
325
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
326
|
+
Style/RescueModifier:
|
|
327
|
+
Exclude:
|
|
328
|
+
- 'lib/metanorma/html/generator.rb'
|
|
329
|
+
|
|
330
|
+
# Offense count: 1
|
|
331
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
332
|
+
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
|
|
333
|
+
# AllowedMethods: present?, blank?, presence, try, try!
|
|
334
|
+
Style/SafeNavigation:
|
|
335
|
+
Exclude:
|
|
336
|
+
- 'lib/metanorma/html/bipm_renderer.rb'
|
|
337
|
+
|
|
338
|
+
# Offense count: 2
|
|
339
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
340
|
+
# Configuration parameters: EnforcedStyleForMultiline.
|
|
341
|
+
# SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
|
|
342
|
+
Style/TrailingCommaInArguments:
|
|
165
343
|
Exclude:
|
|
166
|
-
- 'lib/metanorma/html/
|
|
344
|
+
- 'lib/metanorma/html/component/footnote_collector.rb'
|
|
345
|
+
- 'lib/metanorma/html/component/index_term_collector.rb'
|