fontisan 0.2.4 → 0.2.5
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 +150 -30
- data/README.adoc +497 -242
- data/lib/fontisan/cli.rb +67 -6
- data/lib/fontisan/commands/validate_command.rb +107 -151
- data/lib/fontisan/converters/woff2_encoder.rb +7 -29
- data/lib/fontisan/models/validation_report.rb +227 -0
- data/lib/fontisan/pipeline/transformation_pipeline.rb +4 -8
- data/lib/fontisan/tables/cmap.rb +82 -2
- data/lib/fontisan/tables/glyf.rb +118 -0
- data/lib/fontisan/tables/head.rb +60 -0
- data/lib/fontisan/tables/hhea.rb +74 -0
- data/lib/fontisan/tables/maxp.rb +60 -0
- data/lib/fontisan/tables/name.rb +76 -0
- data/lib/fontisan/tables/os2.rb +113 -0
- data/lib/fontisan/tables/post.rb +57 -0
- data/lib/fontisan/validators/basic_validator.rb +85 -0
- data/lib/fontisan/validators/font_book_validator.rb +130 -0
- data/lib/fontisan/validators/opentype_validator.rb +112 -0
- data/lib/fontisan/validators/profile_loader.rb +139 -0
- data/lib/fontisan/validators/validator.rb +484 -0
- data/lib/fontisan/validators/web_font_validator.rb +102 -0
- data/lib/fontisan/version.rb +1 -1
- data/lib/fontisan.rb +78 -6
- metadata +7 -11
- data/lib/fontisan/config/validation_rules.yml +0 -149
- data/lib/fontisan/validation/checksum_validator.rb +0 -170
- data/lib/fontisan/validation/consistency_validator.rb +0 -197
- data/lib/fontisan/validation/structure_validator.rb +0 -198
- data/lib/fontisan/validation/table_validator.rb +0 -158
- data/lib/fontisan/validation/validator.rb +0 -152
- data/lib/fontisan/validation/variable_font_validator.rb +0 -218
- data/lib/fontisan/validation/woff2_header_validator.rb +0 -278
- data/lib/fontisan/validation/woff2_table_validator.rb +0 -270
- data/lib/fontisan/validation/woff2_validator.rb +0 -248
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f9e4f20ee30027ebf8a4b3ab32962f140f534499bbf092a9612536e55ba32a98
|
|
4
|
+
data.tar.gz: 04d9460282cb09bbecc12cb370ccbbadcaceea130eff6287a8ac30042b3e3a0f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 87bb6f593f2ff100fec38820360a540323fd25a2c54309b7a639829b3536d31b8bdbc188071677aebb1d3fbf9fd0e3ddcd5777b4c2444d8150873a8a75989bfa
|
|
7
|
+
data.tar.gz: b22a61de6d8cf929c951dfda40a5388331b2a23ca72dc785d96a872d102733dab263de01036968547702a2e421673315d83c50672efd813d1191d0ca7a31079b
|
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-01-03
|
|
3
|
+
# on 2026-01-03 10:07:45 UTC using RuboCop version 1.81.7.
|
|
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
|
|
@@ -20,11 +20,13 @@ Layout/ArgumentAlignment:
|
|
|
20
20
|
Exclude:
|
|
21
21
|
- 'lib/fontisan/converters/woff2_encoder.rb'
|
|
22
22
|
|
|
23
|
-
# Offense count:
|
|
23
|
+
# Offense count: 3
|
|
24
24
|
# This cop supports safe autocorrection (--autocorrect).
|
|
25
25
|
Layout/EmptyLineAfterGuardClause:
|
|
26
26
|
Exclude:
|
|
27
|
+
- 'lib/fontisan/commands/validate_command.rb'
|
|
27
28
|
- 'lib/fontisan/hints/truetype_instruction_analyzer.rb'
|
|
29
|
+
- 'lib/fontisan/models/validation_report.rb'
|
|
28
30
|
|
|
29
31
|
# Offense count: 1
|
|
30
32
|
# This cop supports safe autocorrection (--autocorrect).
|
|
@@ -32,18 +34,23 @@ Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
|
|
32
34
|
Exclude:
|
|
33
35
|
- 'lib/fontisan/hints/hint_validator.rb'
|
|
34
36
|
|
|
35
|
-
# Offense count:
|
|
37
|
+
# Offense count: 31
|
|
36
38
|
# This cop supports safe autocorrection (--autocorrect).
|
|
37
39
|
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
|
38
40
|
Layout/ExtraSpacing:
|
|
39
41
|
Exclude:
|
|
40
42
|
- 'lib/fontisan/commands/info_command.rb'
|
|
41
43
|
- 'lib/fontisan/hints/truetype_instruction_analyzer.rb'
|
|
44
|
+
- 'lib/fontisan/tables/glyf.rb'
|
|
45
|
+
- 'lib/fontisan/tables/head.rb'
|
|
46
|
+
- 'lib/fontisan/tables/maxp.rb'
|
|
47
|
+
- 'lib/fontisan/tables/os2.rb'
|
|
42
48
|
- 'lib/fontisan/tables/sbix.rb'
|
|
43
49
|
- 'spec/fontisan/tables/sbix_spec.rb'
|
|
50
|
+
- 'spec/fontisan/validators/basic_validator_spec.rb'
|
|
44
51
|
- 'spec/integration/color_emoji_fonts_spec.rb'
|
|
45
52
|
|
|
46
|
-
# Offense count:
|
|
53
|
+
# Offense count: 1242
|
|
47
54
|
# This cop supports safe autocorrection (--autocorrect).
|
|
48
55
|
# Configuration parameters: Max, AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
|
|
49
56
|
# URISchemes: http, https
|
|
@@ -57,7 +64,7 @@ Layout/TrailingWhitespace:
|
|
|
57
64
|
Exclude:
|
|
58
65
|
- 'spec/fontisan/converters/woff2_encoder_integration_spec.rb'
|
|
59
66
|
|
|
60
|
-
# Offense count:
|
|
67
|
+
# Offense count: 25
|
|
61
68
|
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch.
|
|
62
69
|
Lint/DuplicateBranch:
|
|
63
70
|
Enabled: false
|
|
@@ -76,7 +83,7 @@ Lint/EmptyConditionalBody:
|
|
|
76
83
|
- 'lib/fontisan/cli.rb'
|
|
77
84
|
- 'lib/fontisan/variation/variable_svg_generator.rb'
|
|
78
85
|
|
|
79
|
-
# Offense count:
|
|
86
|
+
# Offense count: 3
|
|
80
87
|
Lint/FloatComparison:
|
|
81
88
|
Exclude:
|
|
82
89
|
- 'lib/fontisan/tables/post.rb'
|
|
@@ -87,10 +94,11 @@ Lint/IneffectiveAccessModifier:
|
|
|
87
94
|
- 'lib/fontisan/models/outline.rb'
|
|
88
95
|
- 'lib/fontisan/models/ttx/tables/binary_table.rb'
|
|
89
96
|
|
|
90
|
-
# Offense count:
|
|
97
|
+
# Offense count: 2
|
|
91
98
|
# Configuration parameters: AllowedParentClasses.
|
|
92
99
|
Lint/MissingSuper:
|
|
93
100
|
Exclude:
|
|
101
|
+
- 'lib/fontisan/commands/validate_command.rb'
|
|
94
102
|
- 'lib/fontisan/tables/cff2/table_builder.rb'
|
|
95
103
|
|
|
96
104
|
# Offense count: 1
|
|
@@ -98,35 +106,50 @@ Lint/StructNewOverride:
|
|
|
98
106
|
Exclude:
|
|
99
107
|
- 'lib/fontisan/optimizers/pattern_analyzer.rb'
|
|
100
108
|
|
|
101
|
-
# Offense count:
|
|
109
|
+
# Offense count: 22
|
|
102
110
|
# This cop supports safe autocorrection (--autocorrect).
|
|
103
111
|
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
|
104
112
|
Lint/UnusedBlockArgument:
|
|
105
113
|
Exclude:
|
|
114
|
+
- 'lib/fontisan/validators/opentype_validator.rb'
|
|
106
115
|
- 'spec/fontisan/tables/sbix_spec.rb'
|
|
116
|
+
- 'spec/fontisan/validators/profile_loader_spec.rb'
|
|
117
|
+
- 'spec/fontisan/validators/validator_spec.rb'
|
|
107
118
|
|
|
108
|
-
# Offense count:
|
|
119
|
+
# Offense count: 11
|
|
109
120
|
# This cop supports safe autocorrection (--autocorrect).
|
|
110
121
|
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods, NotImplementedExceptions.
|
|
111
122
|
# NotImplementedExceptions: NotImplementedError
|
|
112
123
|
Lint/UnusedMethodArgument:
|
|
113
124
|
Exclude:
|
|
125
|
+
- 'lib/fontisan.rb'
|
|
114
126
|
- 'lib/fontisan/font_loader.rb'
|
|
115
127
|
- 'lib/fontisan/optimizers/charstring_rewriter.rb'
|
|
116
128
|
- 'lib/fontisan/tables/cff2/private_dict_blend_handler.rb'
|
|
129
|
+
- 'lib/fontisan/tables/glyf.rb'
|
|
117
130
|
- 'lib/fontisan/utilities/brotli_wrapper.rb'
|
|
131
|
+
- 'lib/fontisan/validators/validator.rb'
|
|
118
132
|
- 'lib/fontisan/variation/table_accessor.rb'
|
|
119
133
|
- 'lib/fontisan/woff2/glyf_transformer.rb'
|
|
120
134
|
- 'lib/fontisan/woff_font.rb'
|
|
121
135
|
|
|
122
|
-
# Offense count:
|
|
136
|
+
# Offense count: 2
|
|
137
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
138
|
+
# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
|
|
139
|
+
Lint/UselessAccessModifier:
|
|
140
|
+
Exclude:
|
|
141
|
+
- 'lib/fontisan.rb'
|
|
142
|
+
- 'lib/fontisan/tables/cmap.rb'
|
|
143
|
+
|
|
144
|
+
# Offense count: 4
|
|
123
145
|
# This cop supports safe autocorrection (--autocorrect).
|
|
124
146
|
Lint/UselessAssignment:
|
|
125
147
|
Exclude:
|
|
126
148
|
- 'lib/fontisan/hints/truetype_instruction_analyzer.rb'
|
|
127
149
|
- 'spec/fontisan/hints/hint_round_trip_spec.rb'
|
|
150
|
+
- 'spec/fontisan/validators/validator_spec.rb'
|
|
128
151
|
|
|
129
|
-
# Offense count:
|
|
152
|
+
# Offense count: 452
|
|
130
153
|
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
|
|
131
154
|
Metrics/AbcSize:
|
|
132
155
|
Enabled: false
|
|
@@ -142,23 +165,23 @@ Metrics/BlockLength:
|
|
|
142
165
|
Metrics/BlockNesting:
|
|
143
166
|
Max: 5
|
|
144
167
|
|
|
145
|
-
# Offense count:
|
|
168
|
+
# Offense count: 230
|
|
146
169
|
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
|
147
170
|
Metrics/CyclomaticComplexity:
|
|
148
171
|
Enabled: false
|
|
149
172
|
|
|
150
|
-
# Offense count:
|
|
173
|
+
# Offense count: 678
|
|
151
174
|
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
|
152
175
|
Metrics/MethodLength:
|
|
153
176
|
Max: 135
|
|
154
177
|
|
|
155
|
-
# Offense count:
|
|
178
|
+
# Offense count: 19
|
|
156
179
|
# Configuration parameters: CountKeywordArgs.
|
|
157
180
|
Metrics/ParameterLists:
|
|
158
181
|
Max: 39
|
|
159
182
|
MaxOptionalParameters: 4
|
|
160
183
|
|
|
161
|
-
# Offense count:
|
|
184
|
+
# Offense count: 167
|
|
162
185
|
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
|
163
186
|
Metrics/PerceivedComplexity:
|
|
164
187
|
Enabled: false
|
|
@@ -206,18 +229,17 @@ Performance/TimesMap:
|
|
|
206
229
|
- 'lib/fontisan/font_loader.rb'
|
|
207
230
|
- 'lib/fontisan/tables/cff2.rb'
|
|
208
231
|
|
|
209
|
-
# Offense count:
|
|
232
|
+
# Offense count: 23
|
|
210
233
|
RSpec/AnyInstance:
|
|
211
234
|
Exclude:
|
|
212
235
|
- 'spec/fontisan/converters/format_converter_spec.rb'
|
|
213
236
|
- 'spec/fontisan/hints/truetype_instruction_analyzer_spec.rb'
|
|
214
|
-
- 'spec/fontisan/validation/validator_spec.rb'
|
|
215
237
|
- 'spec/fontisan/variation/delta_applier_spec.rb'
|
|
216
238
|
- 'spec/fontisan/variation/instance_writer_spec.rb'
|
|
217
239
|
- 'spec/fontisan/variation/parallel_generator_spec.rb'
|
|
218
240
|
- 'spec/integration/format_conversion_spec.rb'
|
|
219
241
|
|
|
220
|
-
# Offense count:
|
|
242
|
+
# Offense count: 107
|
|
221
243
|
# Configuration parameters: Prefixes, AllowedPatterns.
|
|
222
244
|
# Prefixes: when, with, without
|
|
223
245
|
RSpec/ContextWording:
|
|
@@ -234,12 +256,12 @@ RSpec/DescribeMethod:
|
|
|
234
256
|
- 'spec/fontisan/collection/variable_font_builder_spec.rb'
|
|
235
257
|
- 'spec/fontisan/converters/woff2_encoder_integration_spec.rb'
|
|
236
258
|
|
|
237
|
-
# Offense count:
|
|
259
|
+
# Offense count: 1269
|
|
238
260
|
# Configuration parameters: CountAsOne.
|
|
239
261
|
RSpec/ExampleLength:
|
|
240
262
|
Max: 66
|
|
241
263
|
|
|
242
|
-
# Offense count:
|
|
264
|
+
# Offense count: 8
|
|
243
265
|
# This cop supports safe autocorrection (--autocorrect).
|
|
244
266
|
RSpec/ExpectActual:
|
|
245
267
|
Exclude:
|
|
@@ -249,6 +271,7 @@ RSpec/ExpectActual:
|
|
|
249
271
|
- 'spec/fontisan/converters/woff2_round_trip_spec.rb'
|
|
250
272
|
- 'spec/fontisan/subset/builder_spec.rb'
|
|
251
273
|
- 'spec/fontisan/utils/thread_pool_spec.rb'
|
|
274
|
+
- 'spec/fontisan/validators/basic_validator_spec.rb'
|
|
252
275
|
- 'spec/fontisan/variation/validator_spec.rb'
|
|
253
276
|
- 'spec/fontisan/woff2/table_transformer_spec.rb'
|
|
254
277
|
|
|
@@ -299,20 +322,19 @@ RSpec/MessageSpies:
|
|
|
299
322
|
- 'spec/fontisan/variation/instance_writer_spec.rb'
|
|
300
323
|
- 'spec/fontisan/woff2_font_spec.rb'
|
|
301
324
|
|
|
302
|
-
# Offense count:
|
|
325
|
+
# Offense count: 4
|
|
303
326
|
RSpec/MultipleDescribes:
|
|
304
327
|
Exclude:
|
|
305
328
|
- 'spec/fontisan/loading_modes_spec.rb'
|
|
306
329
|
- 'spec/fontisan/models/table_info_spec.rb'
|
|
307
330
|
- 'spec/fontisan/utils/thread_pool_spec.rb'
|
|
308
|
-
- 'spec/fontisan/validation/woff2_validator_spec.rb'
|
|
309
331
|
- 'spec/fontisan/variation/cache_spec.rb'
|
|
310
332
|
|
|
311
|
-
# Offense count:
|
|
333
|
+
# Offense count: 1674
|
|
312
334
|
RSpec/MultipleExpectations:
|
|
313
335
|
Max: 22
|
|
314
336
|
|
|
315
|
-
# Offense count:
|
|
337
|
+
# Offense count: 148
|
|
316
338
|
# Configuration parameters: AllowSubject.
|
|
317
339
|
RSpec/MultipleMemoizedHelpers:
|
|
318
340
|
Max: 13
|
|
@@ -322,13 +344,14 @@ RSpec/MultipleMemoizedHelpers:
|
|
|
322
344
|
RSpec/NestedGroups:
|
|
323
345
|
Max: 4
|
|
324
346
|
|
|
325
|
-
# Offense count:
|
|
347
|
+
# Offense count: 11
|
|
326
348
|
# Configuration parameters: AllowedPatterns.
|
|
327
349
|
# AllowedPatterns: ^expect_, ^assert_
|
|
328
350
|
RSpec/NoExpectationExample:
|
|
329
351
|
Exclude:
|
|
330
352
|
- 'spec/benchmarks/subroutine_optimization_benchmark.rb'
|
|
331
353
|
- 'spec/fontisan/hints/truetype_instruction_generator_spec.rb'
|
|
354
|
+
- 'spec/fontisan/validators/validator_spec.rb'
|
|
332
355
|
- 'spec/fontisan/variation/variable_svg_generator_spec.rb'
|
|
333
356
|
|
|
334
357
|
# Offense count: 11
|
|
@@ -338,7 +361,7 @@ RSpec/RepeatedExample:
|
|
|
338
361
|
- 'spec/fontisan/metrics_calculator_spec.rb'
|
|
339
362
|
- 'spec/fontisan/tables/os2_spec.rb'
|
|
340
363
|
|
|
341
|
-
# Offense count:
|
|
364
|
+
# Offense count: 15
|
|
342
365
|
# Configuration parameters: CustomTransform, IgnoreMethods, IgnoreMetadata, InflectorPath, EnforcedInflector.
|
|
343
366
|
# SupportedInflectors: default, active_support
|
|
344
367
|
RSpec/SpecFilePathFormat:
|
|
@@ -357,6 +380,7 @@ RSpec/SpecFilePathFormat:
|
|
|
357
380
|
- 'spec/fontisan/tables/cff/charstring_spec.rb'
|
|
358
381
|
- 'spec/fontisan/tables/glyf/curve_converter_spec.rb'
|
|
359
382
|
- 'spec/fontisan/tables/glyf/glyph_builder_spec.rb'
|
|
383
|
+
- 'spec/fontisan/validators/opentype_validator_spec.rb'
|
|
360
384
|
- 'spec/fontisan/woff2/header_spec.rb'
|
|
361
385
|
|
|
362
386
|
# Offense count: 1
|
|
@@ -380,7 +404,7 @@ RSpec/VerifiedDoubleReference:
|
|
|
380
404
|
Exclude:
|
|
381
405
|
- 'spec/fontisan/variation/parallel_generator_spec.rb'
|
|
382
406
|
|
|
383
|
-
# Offense count:
|
|
407
|
+
# Offense count: 288
|
|
384
408
|
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
|
|
385
409
|
RSpec/VerifiedDoubles:
|
|
386
410
|
Enabled: false
|
|
@@ -395,7 +419,7 @@ Security/Open:
|
|
|
395
419
|
Exclude:
|
|
396
420
|
- 'Rakefile'
|
|
397
421
|
|
|
398
|
-
# Offense count:
|
|
422
|
+
# Offense count: 12
|
|
399
423
|
# This cop supports safe autocorrection (--autocorrect).
|
|
400
424
|
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
|
|
401
425
|
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
|
|
@@ -409,6 +433,8 @@ Style/BlockDelimiters:
|
|
|
409
433
|
- 'spec/fontisan/hints/truetype_instruction_analyzer_spec.rb'
|
|
410
434
|
- 'spec/fontisan/tables/colr_spec.rb'
|
|
411
435
|
- 'spec/fontisan/tables/cpal_spec.rb'
|
|
436
|
+
- 'spec/fontisan/validators/profile_loader_spec.rb'
|
|
437
|
+
- 'spec/integration/font_validation_spec.rb'
|
|
412
438
|
|
|
413
439
|
# Offense count: 1
|
|
414
440
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
@@ -424,6 +450,14 @@ Style/ConditionalAssignment:
|
|
|
424
450
|
Exclude:
|
|
425
451
|
- 'lib/fontisan/formatters/text_formatter.rb'
|
|
426
452
|
|
|
453
|
+
# Offense count: 1
|
|
454
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
455
|
+
# Configuration parameters: EnforcedStyle, AllowComments.
|
|
456
|
+
# SupportedStyles: empty, nil, both
|
|
457
|
+
Style/EmptyElse:
|
|
458
|
+
Exclude:
|
|
459
|
+
- 'lib/fontisan/validators/validator.rb'
|
|
460
|
+
|
|
427
461
|
# Offense count: 17
|
|
428
462
|
# This cop supports safe autocorrection (--autocorrect).
|
|
429
463
|
# Configuration parameters: EnforcedStyle, MaxUnannotatedPlaceholdersAllowed, Mode, AllowedMethods, AllowedPatterns.
|
|
@@ -433,7 +467,7 @@ Style/FormatStringToken:
|
|
|
433
467
|
- 'lib/fontisan/formatters/text_formatter.rb'
|
|
434
468
|
- 'scripts/measure_optimization.rb'
|
|
435
469
|
|
|
436
|
-
# Offense count:
|
|
470
|
+
# Offense count: 5
|
|
437
471
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
438
472
|
# Configuration parameters: AllowedReceivers.
|
|
439
473
|
# AllowedReceivers: Thread.current
|
|
@@ -442,6 +476,7 @@ Style/HashEachMethods:
|
|
|
442
476
|
- 'lib/fontisan/converters/woff_writer.rb'
|
|
443
477
|
- 'lib/fontisan/subset/table_subsetter.rb'
|
|
444
478
|
- 'spec/fontisan/subset/glyph_mapping_spec.rb'
|
|
479
|
+
- 'spec/fontisan/validators/profile_loader_spec.rb'
|
|
445
480
|
|
|
446
481
|
# Offense count: 2
|
|
447
482
|
# Configuration parameters: MinBranchesCount.
|
|
@@ -458,6 +493,28 @@ Style/IfInsideElse:
|
|
|
458
493
|
- 'Rakefile'
|
|
459
494
|
|
|
460
495
|
# Offense count: 6
|
|
496
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
497
|
+
Style/MultilineTernaryOperator:
|
|
498
|
+
Exclude:
|
|
499
|
+
- 'lib/fontisan/validators/validator.rb'
|
|
500
|
+
|
|
501
|
+
# Offense count: 3
|
|
502
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
503
|
+
# Configuration parameters: AllowMethodComparison, ComparisonsThreshold.
|
|
504
|
+
Style/MultipleComparison:
|
|
505
|
+
Exclude:
|
|
506
|
+
- 'lib/fontisan/tables/head.rb'
|
|
507
|
+
- 'lib/fontisan/tables/name.rb'
|
|
508
|
+
- 'lib/fontisan/tables/post.rb'
|
|
509
|
+
|
|
510
|
+
# Offense count: 6
|
|
511
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
512
|
+
# Configuration parameters: IncludeSemanticChanges.
|
|
513
|
+
Style/NonNilCheck:
|
|
514
|
+
Exclude:
|
|
515
|
+
- 'lib/fontisan/validators/validator.rb'
|
|
516
|
+
|
|
517
|
+
# Offense count: 24
|
|
461
518
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
462
519
|
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
|
|
463
520
|
# SupportedStyles: predicate, comparison
|
|
@@ -469,6 +526,24 @@ Style/NumericPredicate:
|
|
|
469
526
|
- 'lib/fontisan/hints/hint_validator.rb'
|
|
470
527
|
- 'lib/fontisan/hints/truetype_instruction_analyzer.rb'
|
|
471
528
|
- 'lib/fontisan/tables/cff2/private_dict_blend_handler.rb'
|
|
529
|
+
- 'lib/fontisan/tables/cmap.rb'
|
|
530
|
+
- 'lib/fontisan/tables/head.rb'
|
|
531
|
+
- 'lib/fontisan/tables/hhea.rb'
|
|
532
|
+
- 'lib/fontisan/tables/name.rb'
|
|
533
|
+
- 'lib/fontisan/tables/os2.rb'
|
|
534
|
+
- 'lib/fontisan/tables/post.rb'
|
|
535
|
+
|
|
536
|
+
# Offense count: 1
|
|
537
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
538
|
+
Style/RedundantAssignment:
|
|
539
|
+
Exclude:
|
|
540
|
+
- 'lib/fontisan/converters/woff2_encoder.rb'
|
|
541
|
+
|
|
542
|
+
# Offense count: 1
|
|
543
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
544
|
+
Style/RedundantBegin:
|
|
545
|
+
Exclude:
|
|
546
|
+
- 'lib/fontisan/tables/glyf.rb'
|
|
472
547
|
|
|
473
548
|
# Offense count: 10
|
|
474
549
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
@@ -477,6 +552,26 @@ Style/RedundantFetchBlock:
|
|
|
477
552
|
Exclude:
|
|
478
553
|
- 'spec/fontisan/variation/cache_spec.rb'
|
|
479
554
|
|
|
555
|
+
# Offense count: 3
|
|
556
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
557
|
+
# Configuration parameters: EnforcedStyle.
|
|
558
|
+
# SupportedStyles: implicit, explicit
|
|
559
|
+
Style/RescueStandardError:
|
|
560
|
+
Exclude:
|
|
561
|
+
- 'lib/fontisan/cli.rb'
|
|
562
|
+
- 'lib/fontisan/commands/validate_command.rb'
|
|
563
|
+
- 'lib/fontisan/validators/validator.rb'
|
|
564
|
+
|
|
565
|
+
# Offense count: 6
|
|
566
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
567
|
+
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
|
|
568
|
+
# AllowedMethods: present?, blank?, presence, try, try!
|
|
569
|
+
Style/SafeNavigation:
|
|
570
|
+
Exclude:
|
|
571
|
+
- 'lib/fontisan/tables/maxp.rb'
|
|
572
|
+
- 'lib/fontisan/tables/os2.rb'
|
|
573
|
+
- 'lib/fontisan/validators/validator.rb'
|
|
574
|
+
|
|
480
575
|
# Offense count: 1
|
|
481
576
|
# This cop supports safe autocorrection (--autocorrect).
|
|
482
577
|
# Configuration parameters: AllowModifier.
|
|
@@ -491,6 +586,16 @@ Style/StringConcatenation:
|
|
|
491
586
|
Exclude:
|
|
492
587
|
- 'spec/fontisan/tables/cbdt_spec.rb'
|
|
493
588
|
|
|
589
|
+
# Offense count: 48
|
|
590
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
591
|
+
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
|
592
|
+
# SupportedStyles: single_quotes, double_quotes
|
|
593
|
+
Style/StringLiterals:
|
|
594
|
+
Exclude:
|
|
595
|
+
- 'lib/fontisan/validators/font_book_validator.rb'
|
|
596
|
+
- 'lib/fontisan/validators/opentype_validator.rb'
|
|
597
|
+
- 'lib/fontisan/validators/web_font_validator.rb'
|
|
598
|
+
|
|
494
599
|
# Offense count: 2
|
|
495
600
|
# This cop supports safe autocorrection (--autocorrect).
|
|
496
601
|
# Configuration parameters: .
|
|
@@ -499,17 +604,32 @@ Style/SymbolArray:
|
|
|
499
604
|
EnforcedStyle: percent
|
|
500
605
|
MinSize: 3
|
|
501
606
|
|
|
502
|
-
# Offense count:
|
|
607
|
+
# Offense count: 50
|
|
608
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
609
|
+
# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
|
|
610
|
+
# AllowedMethods: define_method
|
|
611
|
+
Style/SymbolProc:
|
|
612
|
+
Exclude:
|
|
613
|
+
- 'lib/fontisan/validators/basic_validator.rb'
|
|
614
|
+
- 'lib/fontisan/validators/font_book_validator.rb'
|
|
615
|
+
- 'lib/fontisan/validators/opentype_validator.rb'
|
|
616
|
+
- 'lib/fontisan/validators/web_font_validator.rb'
|
|
617
|
+
- 'spec/fontisan/validators/validator_spec.rb'
|
|
618
|
+
|
|
619
|
+
# Offense count: 65
|
|
503
620
|
# This cop supports safe autocorrection (--autocorrect).
|
|
504
621
|
# Configuration parameters: EnforcedStyleForMultiline.
|
|
505
622
|
# SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
|
|
506
623
|
Style/TrailingCommaInArguments:
|
|
507
624
|
Exclude:
|
|
625
|
+
- 'lib/fontisan/cli.rb'
|
|
508
626
|
- 'lib/fontisan/commands/info_command.rb'
|
|
509
627
|
- 'spec/fontisan/converters/woff2_encoder_integration_spec.rb'
|
|
628
|
+
- 'spec/fontisan/models/validation_report_spec.rb'
|
|
510
629
|
- 'spec/fontisan/optimizers/charstring_rewriter_spec.rb'
|
|
511
630
|
- 'spec/fontisan/tables/cblc_spec.rb'
|
|
512
631
|
- 'spec/fontisan/tables/sbix_spec.rb'
|
|
632
|
+
- 'spec/fontisan/validators/basic_validator_spec.rb'
|
|
513
633
|
- 'spec/integration/color_emoji_fonts_spec.rb'
|
|
514
634
|
|
|
515
635
|
# Offense count: 12
|