fontisan 0.2.13 → 0.2.16
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 +56 -196
- data/Gemfile +1 -1
- data/docs/.gitignore +17 -0
- data/docs/.vitepress/config.ts +317 -0
- data/docs/.vitepress/theme/components/ApiMethod.vue +127 -0
- data/docs/.vitepress/theme/components/Badge.vue +51 -0
- data/docs/.vitepress/theme/components/FeatureComparison.vue +87 -0
- data/docs/.vitepress/theme/components/HeroCodeBlock.vue +98 -0
- data/docs/.vitepress/theme/components/WithinHero.vue +30 -0
- data/docs/.vitepress/theme/index.ts +22 -0
- data/docs/.vitepress/theme/style.css +330 -0
- data/docs/api/conversion-options.md +141 -0
- data/docs/api/converters/curve-converter.md +34 -0
- data/docs/api/converters/hint-converter.md +34 -0
- data/docs/api/converters/outline-converter.md +27 -0
- data/docs/api/font-loader.md +111 -0
- data/docs/api/font-writer.md +103 -0
- data/docs/api/index.md +79 -0
- data/docs/api/models/glyph-accessor.md +43 -0
- data/docs/api/models/glyph.md +40 -0
- data/docs/api/models/table-analyzer.md +35 -0
- data/docs/api/sfnt-font.md +53 -0
- data/docs/api/type1-font.md +43 -0
- data/docs/api/validators/font-validator.md +31 -0
- data/docs/api/validators/helper.md +36 -0
- data/docs/api/validators/profile.md +39 -0
- data/docs/cli/convert.md +87 -0
- data/docs/cli/dump-table.md +110 -0
- data/docs/cli/export.md +176 -0
- data/docs/cli/features.md +124 -0
- data/docs/cli/glyphs.md +90 -0
- data/docs/cli/index.md +208 -0
- data/docs/cli/info.md +254 -0
- data/docs/cli/instance.md +122 -0
- data/docs/cli/ls.md +95 -0
- data/docs/cli/optical-size.md +94 -0
- data/docs/cli/pack.md +125 -0
- data/docs/cli/scripts.md +105 -0
- data/docs/cli/subset.md +39 -0
- data/docs/cli/tables.md +84 -0
- data/docs/cli/unicode.md +101 -0
- data/docs/cli/validate.md +48 -0
- data/docs/cli/variable.md +126 -0
- data/docs/cli/version.md +46 -0
- data/docs/guide/cli/convert.md +108 -0
- data/docs/guide/cli/export.md +138 -0
- data/docs/guide/cli/index.md +99 -0
- data/docs/guide/cli/info.md +144 -0
- data/docs/guide/cli/pack.md +155 -0
- data/docs/guide/cli/subset.md +118 -0
- data/docs/guide/cli/validate.md +139 -0
- data/docs/guide/color-fonts/bitmaps.md +177 -0
- data/docs/guide/color-fonts/colr-cpal.md +175 -0
- data/docs/guide/color-fonts/index.md +140 -0
- data/docs/guide/color-fonts/svg.md +154 -0
- data/docs/guide/color.md +51 -0
- data/docs/guide/comparisons/font-validator.md +222 -0
- data/docs/guide/comparisons/fonttools.md +200 -0
- data/docs/guide/comparisons/index.md +83 -0
- data/docs/guide/comparisons/lcdf-typetools.md +205 -0
- data/docs/guide/contributing.md +279 -0
- data/docs/guide/conversion/collections.md +251 -0
- data/docs/guide/conversion/curves.md +246 -0
- data/docs/guide/conversion/index.md +157 -0
- data/docs/guide/conversion/options.md +251 -0
- data/docs/guide/conversion/ttf-otf.md +184 -0
- data/docs/guide/conversion/type1.md +208 -0
- data/docs/guide/conversion/web.md +240 -0
- data/docs/guide/conversion.md +39 -0
- data/docs/guide/formats/collections.md +147 -0
- data/docs/guide/formats/dfont.md +99 -0
- data/docs/guide/formats/index.md +65 -0
- data/docs/guide/formats/otf.md +103 -0
- data/docs/guide/formats/svg.md +97 -0
- data/docs/guide/formats/ttf.md +105 -0
- data/docs/guide/formats/type1.md +118 -0
- data/docs/guide/formats/woff.md +115 -0
- data/docs/guide/hinting/autohint.md +141 -0
- data/docs/guide/hinting/conversion.md +161 -0
- data/docs/guide/hinting/index.md +86 -0
- data/docs/guide/hinting/postscript.md +149 -0
- data/docs/guide/hinting/truetype.md +135 -0
- data/docs/guide/hinting.md +44 -0
- data/docs/guide/index.md +152 -0
- data/docs/guide/installation.md +116 -0
- data/docs/guide/migrations/extract-ttc.md +549 -0
- data/docs/guide/migrations/font-validator.md +260 -0
- data/docs/guide/migrations/fonttools.md +208 -0
- data/docs/guide/migrations/index.md +64 -0
- data/docs/guide/migrations/otfinfo.md +197 -0
- data/docs/guide/quick-start.md +204 -0
- data/docs/guide/type1.md +58 -0
- data/docs/guide/universal-outline.md +151 -0
- data/docs/guide/validation/custom.md +195 -0
- data/docs/guide/validation/helpers.md +188 -0
- data/docs/guide/validation/index.md +132 -0
- data/docs/guide/validation/profiles.md +156 -0
- data/docs/guide/validation.md +47 -0
- data/docs/guide/variable-fonts/advanced.md +231 -0
- data/docs/guide/variable-fonts/axes.md +209 -0
- data/docs/guide/variable-fonts/conversion.md +197 -0
- data/docs/guide/variable-fonts/index.md +84 -0
- data/docs/guide/variable-fonts/instances.md +187 -0
- data/docs/guide/variable-fonts/named-instances.md +194 -0
- data/docs/guide/variable-fonts/static.md +168 -0
- data/docs/guide/variable.md +58 -0
- data/docs/guide/woff.md +59 -0
- data/docs/index.md +136 -0
- data/docs/lychee.toml +37 -0
- data/docs/package-lock.json +2560 -0
- data/docs/package.json +15 -0
- data/docs/public/apple-touch-icon.png +0 -0
- data/docs/public/favicon-96x96.png +0 -0
- data/docs/public/favicon.ico +0 -0
- data/docs/public/favicon.svg +1 -0
- data/docs/public/logo-full.svg +1 -0
- data/docs/public/logo.svg +1 -0
- data/docs/public/site.webmanifest +21 -0
- data/docs/public/web-app-manifest-192x192.png +0 -0
- data/docs/public/web-app-manifest-512x512.png +0 -0
- data/fontisan.gemspec +1 -1
- data/lib/fontisan/commands/features_command.rb +0 -1
- data/lib/fontisan/commands/info_command.rb +5 -5
- data/lib/fontisan/commands/scripts_command.rb +0 -1
- data/lib/fontisan/converters/format_converter.rb +2 -1
- data/lib/fontisan/converters/type1_converter.rb +65 -60
- data/lib/fontisan/hints/hint_converter.rb +2 -1
- data/lib/fontisan/loading_modes.rb +0 -2
- data/lib/fontisan/open_type_font.rb +0 -40
- data/lib/fontisan/sfnt_font.rb +41 -22
- data/lib/fontisan/tables/glyf/compound_glyph.rb +0 -1
- data/lib/fontisan/true_type_collection.rb +8 -8
- data/lib/fontisan/true_type_font.rb +1 -59
- data/lib/fontisan/type1/afm_parser.rb +2 -1
- data/lib/fontisan/type1/cff_to_type1_converter.rb +24 -19
- data/lib/fontisan/type1/private_dict.rb +28 -7
- data/lib/fontisan/type1/seac_expander.rb +22 -17
- data/lib/fontisan/variable/delta_applicator.rb +3 -3
- data/lib/fontisan/variation/optimizer.rb +0 -1
- data/lib/fontisan/version.rb +1 -1
- data/lib/fontisan/woff2_font.rb +2 -2
- data/lib/fontisan/woff_font.rb +3 -3
- data/lib/fontisan.rb +3 -2
- metadata +122 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 356bd0157b272462910d8822c6b77a6c768e12a45f4c56b2646d6bc683413239
|
|
4
|
+
data.tar.gz: 981dca0c122d3d3e2dab683c6a7962bc2bcc1be35fb5c0818857d6c55ff7bbbf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '0852e6bc36559c125cab91cf4fe4d65256628df2e8c873bc52b4f291b2adc944126ed2a0e26d6daafbe7d568934a9788677cb47c8b70982097320addbc93365a'
|
|
7
|
+
data.tar.gz: dc9d8fdacf95fc0761bb62cfec0f56e7a7da1a78986915db76243461cf2434d3f8142a0547e153d6746e242aa4a3a5dc33b5b505e8ac073e467e9b9c269d97bf
|
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-02 04:07: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
|
|
@@ -8,95 +8,56 @@
|
|
|
8
8
|
|
|
9
9
|
# Offense count: 1
|
|
10
10
|
# This cop supports safe autocorrection (--autocorrect).
|
|
11
|
-
|
|
12
|
-
Bundler/OrderedGems:
|
|
11
|
+
Gemspec/RequireMFA:
|
|
13
12
|
Exclude:
|
|
14
|
-
- '
|
|
13
|
+
- 'docs/node_modules/speakingurl/speakingurl-rails.gemspec'
|
|
15
14
|
|
|
16
|
-
# Offense count:
|
|
15
|
+
# Offense count: 2
|
|
17
16
|
Gemspec/RequiredRubyVersion:
|
|
18
17
|
Exclude:
|
|
18
|
+
- 'docs/node_modules/speakingurl/speakingurl-rails.gemspec'
|
|
19
19
|
- 'fontisan.gemspec'
|
|
20
20
|
|
|
21
|
-
# Offense count: 2
|
|
22
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
23
|
-
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
24
|
-
# SupportedStyles: with_first_argument, with_fixed_indentation
|
|
25
|
-
Layout/ArgumentAlignment:
|
|
26
|
-
Exclude:
|
|
27
|
-
- 'lib/fontisan/type1/cff_to_type1_converter.rb'
|
|
28
|
-
- 'spec/performance/type1_performance_spec.rb'
|
|
29
|
-
|
|
30
|
-
# Offense count: 2
|
|
31
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
32
|
-
Layout/ElseAlignment:
|
|
33
|
-
Exclude:
|
|
34
|
-
- 'lib/fontisan/commands/info_command.rb'
|
|
35
|
-
- 'lib/fontisan/converters/type1_converter.rb'
|
|
36
|
-
|
|
37
21
|
# Offense count: 1
|
|
38
22
|
# This cop supports safe autocorrection (--autocorrect).
|
|
39
|
-
Layout/
|
|
23
|
+
Layout/EmptyLines:
|
|
40
24
|
Exclude:
|
|
41
|
-
- '
|
|
25
|
+
- 'lib/fontisan/loading_modes.rb'
|
|
42
26
|
|
|
43
|
-
# Offense count:
|
|
44
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
45
|
-
# Configuration parameters: EnforcedStyleAlignWith.
|
|
46
|
-
# SupportedStylesAlignWith: keyword, variable, start_of_line
|
|
47
|
-
Layout/EndAlignment:
|
|
48
|
-
Exclude:
|
|
49
|
-
- 'lib/fontisan/commands/info_command.rb'
|
|
50
|
-
- 'lib/fontisan/converters/type1_converter.rb'
|
|
51
|
-
|
|
52
|
-
# Offense count: 63
|
|
27
|
+
# Offense count: 4
|
|
53
28
|
# This cop supports safe autocorrection (--autocorrect).
|
|
54
29
|
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
|
55
30
|
Layout/ExtraSpacing:
|
|
56
31
|
Exclude:
|
|
57
|
-
- '
|
|
58
|
-
- '
|
|
59
|
-
- 'lib/fontisan/type1/cff_to_type1_converter.rb'
|
|
60
|
-
- 'lib/fontisan/type1/seac_expander.rb'
|
|
61
|
-
- 'spec/fontisan/converters/type1_converter_spec.rb'
|
|
62
|
-
- 'spec/fontisan/type1/cff_to_type1_converter_spec.rb'
|
|
63
|
-
- 'spec/fontisan/type1/seac_expander_spec.rb'
|
|
64
|
-
|
|
65
|
-
# Offense count: 24
|
|
66
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
67
|
-
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
68
|
-
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
|
69
|
-
Layout/FirstHashElementIndentation:
|
|
70
|
-
Exclude:
|
|
71
|
-
- 'spec/fontisan/converters/type1_converter_spec.rb'
|
|
72
|
-
- 'spec/fontisan/type1/seac_expander_spec.rb'
|
|
73
|
-
- 'spec/integration/type1_conversion_spec.rb'
|
|
74
|
-
- 'spec/validation/type1_validation_spec.rb'
|
|
32
|
+
- 'docs/node_modules/speakingurl/lib/speakingurl-rails.rb'
|
|
33
|
+
- 'docs/node_modules/speakingurl/speakingurl-rails.gemspec'
|
|
75
34
|
|
|
76
|
-
# Offense count:
|
|
35
|
+
# Offense count: 1
|
|
77
36
|
# This cop supports safe autocorrection (--autocorrect).
|
|
78
|
-
# Configuration parameters:
|
|
79
|
-
|
|
37
|
+
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
|
38
|
+
# SupportedHashRocketStyles: key, separator, table
|
|
39
|
+
# SupportedColonStyles: key, separator, table
|
|
40
|
+
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
|
41
|
+
Layout/HashAlignment:
|
|
80
42
|
Exclude:
|
|
81
|
-
- '
|
|
82
|
-
- 'lib/fontisan/converters/type1_converter.rb'
|
|
43
|
+
- 'docs/node_modules/speakingurl/speakingurl-rails.gemspec'
|
|
83
44
|
|
|
84
|
-
# Offense count:
|
|
45
|
+
# Offense count: 1585
|
|
85
46
|
# This cop supports safe autocorrection (--autocorrect).
|
|
86
47
|
# Configuration parameters: Max, AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, AllowRBSInlineAnnotation, AllowCopDirectives, AllowedPatterns, SplitStrings.
|
|
87
48
|
# URISchemes: http, https
|
|
88
49
|
Layout/LineLength:
|
|
89
50
|
Enabled: false
|
|
90
51
|
|
|
91
|
-
# Offense count:
|
|
52
|
+
# Offense count: 5
|
|
92
53
|
# This cop supports safe autocorrection (--autocorrect).
|
|
93
54
|
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator, EnforcedStyleForRationalLiterals.
|
|
94
55
|
# SupportedStylesForExponentOperator: space, no_space
|
|
95
56
|
# SupportedStylesForRationalLiterals: space, no_space
|
|
96
57
|
Layout/SpaceAroundOperators:
|
|
97
58
|
Exclude:
|
|
98
|
-
- '
|
|
99
|
-
- '
|
|
59
|
+
- 'docs/node_modules/speakingurl/lib/speakingurl-rails.rb'
|
|
60
|
+
- 'docs/node_modules/speakingurl/speakingurl-rails.gemspec'
|
|
100
61
|
|
|
101
62
|
# Offense count: 3
|
|
102
63
|
Lint/CopDirectiveSyntax:
|
|
@@ -153,16 +114,14 @@ Lint/MissingSuper:
|
|
|
153
114
|
- 'lib/fontisan/commands/validate_command.rb'
|
|
154
115
|
- 'lib/fontisan/tables/cff2/table_builder.rb'
|
|
155
116
|
|
|
156
|
-
# Offense count:
|
|
157
|
-
# This cop supports
|
|
158
|
-
|
|
159
|
-
# AllowedMethods: instance_of?, kind_of?, is_a?, eql?, respond_to?, equal?
|
|
160
|
-
# AdditionalNilMethods: present?, blank?, try, try!
|
|
161
|
-
Lint/RedundantSafeNavigation:
|
|
117
|
+
# Offense count: 4
|
|
118
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
119
|
+
Lint/RedundantRequireStatement:
|
|
162
120
|
Exclude:
|
|
163
|
-
- 'lib/fontisan/
|
|
164
|
-
- 'lib/fontisan/
|
|
165
|
-
- '
|
|
121
|
+
- 'lib/fontisan/commands/features_command.rb'
|
|
122
|
+
- 'lib/fontisan/commands/scripts_command.rb'
|
|
123
|
+
- 'lib/fontisan/loading_modes.rb'
|
|
124
|
+
- 'lib/fontisan/variation/optimizer.rb'
|
|
166
125
|
|
|
167
126
|
# Offense count: 1
|
|
168
127
|
Lint/StructNewOverride:
|
|
@@ -183,20 +142,13 @@ Lint/UnusedMethodArgument:
|
|
|
183
142
|
- 'lib/fontisan/woff2/glyf_transformer.rb'
|
|
184
143
|
- 'lib/fontisan/woff_font.rb'
|
|
185
144
|
|
|
186
|
-
# Offense count: 5
|
|
187
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
188
|
-
Lint/UselessAssignment:
|
|
189
|
-
Exclude:
|
|
190
|
-
- 'lib/fontisan/type1/seac_expander.rb'
|
|
191
|
-
- 'spec/performance/type1_performance_spec.rb'
|
|
192
|
-
|
|
193
145
|
# Offense count: 5
|
|
194
146
|
Lint/UselessConstantScoping:
|
|
195
147
|
Exclude:
|
|
196
148
|
- 'lib/fontisan/conversion_options.rb'
|
|
197
149
|
- 'lib/fontisan/type1/charstrings.rb'
|
|
198
150
|
|
|
199
|
-
# Offense count:
|
|
151
|
+
# Offense count: 549
|
|
200
152
|
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
|
|
201
153
|
Metrics/AbcSize:
|
|
202
154
|
Enabled: false
|
|
@@ -205,7 +157,7 @@ Metrics/AbcSize:
|
|
|
205
157
|
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
|
|
206
158
|
# AllowedMethods: refine
|
|
207
159
|
Metrics/BlockLength:
|
|
208
|
-
Max:
|
|
160
|
+
Max: 104
|
|
209
161
|
|
|
210
162
|
# Offense count: 8
|
|
211
163
|
# Configuration parameters: CountBlocks, CountModifierForms.
|
|
@@ -224,7 +176,7 @@ Metrics/CollectionLiteralLength:
|
|
|
224
176
|
Metrics/CyclomaticComplexity:
|
|
225
177
|
Enabled: false
|
|
226
178
|
|
|
227
|
-
# Offense count:
|
|
179
|
+
# Offense count: 842
|
|
228
180
|
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
|
229
181
|
Metrics/MethodLength:
|
|
230
182
|
Max: 135
|
|
@@ -255,7 +207,7 @@ Naming/MethodParameterName:
|
|
|
255
207
|
# Offense count: 13
|
|
256
208
|
# Configuration parameters: Mode, AllowedMethods, AllowedPatterns, AllowBangMethods, WaywardPredicates.
|
|
257
209
|
# AllowedMethods: call
|
|
258
|
-
# WaywardPredicates: nonzero?
|
|
210
|
+
# WaywardPredicates: infinite?, nonzero?
|
|
259
211
|
Naming/PredicateMethod:
|
|
260
212
|
Exclude:
|
|
261
213
|
- 'lib/fontisan/collection/builder.rb'
|
|
@@ -278,7 +230,7 @@ Naming/PredicateMethod:
|
|
|
278
230
|
# MethodDefinitionMacros: define_method, define_singleton_method
|
|
279
231
|
Naming/PredicatePrefix:
|
|
280
232
|
Exclude:
|
|
281
|
-
- '
|
|
233
|
+
- 'spec/**/*'
|
|
282
234
|
- 'lib/fontisan/type1/afm_generator.rb'
|
|
283
235
|
|
|
284
236
|
# Offense count: 21
|
|
@@ -306,13 +258,7 @@ RSpec/AnyInstance:
|
|
|
306
258
|
- 'spec/fontisan/variation/parallel_generator_spec.rb'
|
|
307
259
|
- 'spec/integration/format_conversion_spec.rb'
|
|
308
260
|
|
|
309
|
-
# Offense count:
|
|
310
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
311
|
-
RSpec/BeEq:
|
|
312
|
-
Exclude:
|
|
313
|
-
- 'spec/fontisan/converters/type1_property_spec.rb'
|
|
314
|
-
|
|
315
|
-
# Offense count: 127
|
|
261
|
+
# Offense count: 128
|
|
316
262
|
# Configuration parameters: Prefixes, AllowedPatterns.
|
|
317
263
|
# Prefixes: when, with, without
|
|
318
264
|
RSpec/ContextWording:
|
|
@@ -334,7 +280,7 @@ RSpec/DescribeMethod:
|
|
|
334
280
|
- 'spec/fontisan/type1/seac_expander_spec.rb'
|
|
335
281
|
- 'spec/fontisan/type1_real_fonts_spec.rb'
|
|
336
282
|
|
|
337
|
-
# Offense count:
|
|
283
|
+
# Offense count: 1428
|
|
338
284
|
# Configuration parameters: CountAsOne.
|
|
339
285
|
RSpec/ExampleLength:
|
|
340
286
|
Max: 66
|
|
@@ -386,12 +332,6 @@ RSpec/IteratedExpectation:
|
|
|
386
332
|
Exclude:
|
|
387
333
|
- 'spec/fontisan/tables/glyf_spec.rb'
|
|
388
334
|
|
|
389
|
-
# Offense count: 1
|
|
390
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
391
|
-
RSpec/LeadingSubject:
|
|
392
|
-
Exclude:
|
|
393
|
-
- 'spec/fontisan/type1/seac_expander_spec.rb'
|
|
394
|
-
|
|
395
335
|
# Offense count: 25
|
|
396
336
|
# Configuration parameters: EnforcedStyle.
|
|
397
337
|
# SupportedStyles: have_received, receive
|
|
@@ -417,7 +357,7 @@ RSpec/MultipleDescribes:
|
|
|
417
357
|
- 'spec/fontisan/utils/thread_pool_spec.rb'
|
|
418
358
|
- 'spec/fontisan/variation/cache_spec.rb'
|
|
419
359
|
|
|
420
|
-
# Offense count:
|
|
360
|
+
# Offense count: 1855
|
|
421
361
|
RSpec/MultipleExpectations:
|
|
422
362
|
Max: 19
|
|
423
363
|
|
|
@@ -441,16 +381,6 @@ RSpec/NoExpectationExample:
|
|
|
441
381
|
- 'spec/fontisan/validators/validator_spec.rb'
|
|
442
382
|
- 'spec/fontisan/variation/variable_svg_generator_spec.rb'
|
|
443
383
|
|
|
444
|
-
# Offense count: 415
|
|
445
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
446
|
-
RSpec/ReceiveMessages:
|
|
447
|
-
Exclude:
|
|
448
|
-
- 'spec/fontisan/converters/type1_converter_spec.rb'
|
|
449
|
-
- 'spec/fontisan/converters/type1_property_spec.rb'
|
|
450
|
-
- 'spec/integration/type1_conversion_spec.rb'
|
|
451
|
-
- 'spec/performance/type1_performance_spec.rb'
|
|
452
|
-
- 'spec/validation/type1_validation_spec.rb'
|
|
453
|
-
|
|
454
384
|
# Offense count: 13
|
|
455
385
|
RSpec/RepeatedExample:
|
|
456
386
|
Exclude:
|
|
@@ -495,17 +425,6 @@ Security/Open:
|
|
|
495
425
|
Exclude:
|
|
496
426
|
- 'Rakefile'
|
|
497
427
|
|
|
498
|
-
# Offense count: 2
|
|
499
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
500
|
-
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
|
|
501
|
-
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
|
|
502
|
-
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
|
503
|
-
# FunctionalMethods: let, let!, subject, watch
|
|
504
|
-
# AllowedMethods: lambda, proc, it
|
|
505
|
-
Style/BlockDelimiters:
|
|
506
|
-
Exclude:
|
|
507
|
-
- 'spec/fontisan/type1/seac_expander_spec.rb'
|
|
508
|
-
|
|
509
428
|
# Offense count: 6
|
|
510
429
|
# This cop supports safe autocorrection (--autocorrect).
|
|
511
430
|
Style/ComparableClamp:
|
|
@@ -515,14 +434,6 @@ Style/ComparableClamp:
|
|
|
515
434
|
- 'lib/fontisan/variable/axis_normalizer.rb'
|
|
516
435
|
- 'lib/fontisan/variation/interpolator.rb'
|
|
517
436
|
|
|
518
|
-
# Offense count: 4
|
|
519
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
520
|
-
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
|
521
|
-
# SupportedStyles: assign_to_condition, assign_inside_condition
|
|
522
|
-
Style/ConditionalAssignment:
|
|
523
|
-
Exclude:
|
|
524
|
-
- 'lib/fontisan/converters/type1_converter.rb'
|
|
525
|
-
|
|
526
437
|
# Offense count: 2
|
|
527
438
|
# This cop supports safe autocorrection (--autocorrect).
|
|
528
439
|
# Configuration parameters: EnforcedStyle, AllowComments.
|
|
@@ -531,6 +442,13 @@ Style/EmptyElse:
|
|
|
531
442
|
Exclude:
|
|
532
443
|
- 'lib/fontisan/type1/seac_expander.rb'
|
|
533
444
|
|
|
445
|
+
# Offense count: 2
|
|
446
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
447
|
+
Style/ExpandPathArguments:
|
|
448
|
+
Exclude:
|
|
449
|
+
- 'docs/node_modules/speakingurl/lib/speakingurl-rails.rb'
|
|
450
|
+
- 'docs/node_modules/speakingurl/speakingurl-rails.gemspec'
|
|
451
|
+
|
|
534
452
|
# Offense count: 11
|
|
535
453
|
# This cop supports safe autocorrection (--autocorrect).
|
|
536
454
|
# Configuration parameters: EnforcedStyle, MaxUnannotatedPlaceholdersAllowed, Mode, AllowedMethods, AllowedPatterns.
|
|
@@ -540,12 +458,6 @@ Style/FormatStringToken:
|
|
|
540
458
|
- 'lib/fontisan/formatters/text_formatter.rb'
|
|
541
459
|
- 'scripts/measure_optimization.rb'
|
|
542
460
|
|
|
543
|
-
# Offense count: 1
|
|
544
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
545
|
-
Style/HashExcept:
|
|
546
|
-
Exclude:
|
|
547
|
-
- 'lib/fontisan/hints/hint_converter.rb'
|
|
548
|
-
|
|
549
461
|
# Offense count: 3
|
|
550
462
|
# Configuration parameters: MinBranchesCount.
|
|
551
463
|
Style/HashLikeCase:
|
|
@@ -554,15 +466,14 @@ Style/HashLikeCase:
|
|
|
554
466
|
- 'lib/fontisan/commands/unpack_command.rb'
|
|
555
467
|
- 'lib/fontisan/models/validation_report.rb'
|
|
556
468
|
|
|
557
|
-
# Offense count:
|
|
558
|
-
# This cop supports
|
|
559
|
-
# Configuration parameters: EnforcedStyle,
|
|
560
|
-
# SupportedStyles:
|
|
561
|
-
|
|
469
|
+
# Offense count: 1
|
|
470
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
471
|
+
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
|
472
|
+
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
|
473
|
+
# SupportedShorthandSyntax: always, never, either, consistent, either_consistent
|
|
474
|
+
Style/HashSyntax:
|
|
562
475
|
Exclude:
|
|
563
|
-
- '
|
|
564
|
-
- 'lib/fontisan/type1/cff_to_type1_converter.rb'
|
|
565
|
-
- 'lib/fontisan/type1/seac_expander.rb'
|
|
476
|
+
- 'docs/node_modules/speakingurl/lib/speakingurl-rails.rb'
|
|
566
477
|
|
|
567
478
|
# Offense count: 1
|
|
568
479
|
# Configuration parameters: AllowedMethods.
|
|
@@ -571,62 +482,11 @@ Style/OptionalBooleanParameter:
|
|
|
571
482
|
Exclude:
|
|
572
483
|
- 'lib/fontisan/conversion_options.rb'
|
|
573
484
|
|
|
574
|
-
# Offense count:
|
|
575
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
576
|
-
Style/ParallelAssignment:
|
|
577
|
-
Exclude:
|
|
578
|
-
- 'lib/fontisan/type1/cff_to_type1_converter.rb'
|
|
579
|
-
|
|
580
|
-
# Offense count: 2
|
|
581
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
582
|
-
# Configuration parameters: Methods.
|
|
583
|
-
Style/RedundantArgument:
|
|
584
|
-
Exclude:
|
|
585
|
-
- 'lib/fontisan/type1/cff_to_type1_converter.rb'
|
|
586
|
-
|
|
587
|
-
# Offense count: 1
|
|
588
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
589
|
-
Style/RedundantParentheses:
|
|
590
|
-
Exclude:
|
|
591
|
-
- 'lib/fontisan/converters/type1_converter.rb'
|
|
592
|
-
|
|
593
|
-
# Offense count: 1
|
|
594
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
595
|
-
# Configuration parameters: AllowModifier.
|
|
596
|
-
Style/SoleNestedConditional:
|
|
597
|
-
Exclude:
|
|
598
|
-
- 'lib/fontisan/converters/type1_converter.rb'
|
|
599
|
-
|
|
600
|
-
# Offense count: 1
|
|
601
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
602
|
-
# Configuration parameters: EnforcedStyle, AllowSafeAssignment.
|
|
603
|
-
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
|
|
604
|
-
Style/TernaryParentheses:
|
|
605
|
-
Exclude:
|
|
606
|
-
- 'lib/fontisan/converters/type1_converter.rb'
|
|
607
|
-
|
|
608
|
-
# Offense count: 2
|
|
609
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
610
|
-
# Configuration parameters: EnforcedStyleForMultiline.
|
|
611
|
-
# SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
|
|
612
|
-
Style/TrailingCommaInArguments:
|
|
613
|
-
Exclude:
|
|
614
|
-
- 'lib/fontisan/converters/type1_converter.rb'
|
|
615
|
-
|
|
616
|
-
# Offense count: 4
|
|
617
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
618
|
-
# Configuration parameters: EnforcedStyleForMultiline.
|
|
619
|
-
# SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
|
|
620
|
-
Style/TrailingCommaInArrayLiteral:
|
|
621
|
-
Exclude:
|
|
622
|
-
- 'spec/fontisan/converters/type1_property_spec.rb'
|
|
623
|
-
- 'spec/fontisan/type1/seac_expander_spec.rb'
|
|
624
|
-
|
|
625
|
-
# Offense count: 8
|
|
485
|
+
# Offense count: 7
|
|
626
486
|
# This cop supports safe autocorrection (--autocorrect).
|
|
627
|
-
# Configuration parameters:
|
|
628
|
-
#
|
|
629
|
-
Style/
|
|
487
|
+
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
|
488
|
+
# SupportedStyles: single_quotes, double_quotes
|
|
489
|
+
Style/StringLiterals:
|
|
630
490
|
Exclude:
|
|
631
|
-
- '
|
|
632
|
-
- '
|
|
491
|
+
- 'docs/node_modules/speakingurl/lib/speakingurl-rails.rb'
|
|
492
|
+
- 'docs/node_modules/speakingurl/speakingurl-rails.gemspec'
|
data/Gemfile
CHANGED
|
@@ -11,7 +11,6 @@ gem "get_process_mem", "~> 0.2"
|
|
|
11
11
|
gem "bigdecimal"
|
|
12
12
|
gem "openssl", "~> 3.0"
|
|
13
13
|
# sys-proctable is required by get_process_mem on Windows
|
|
14
|
-
gem "sys-proctable", platforms: %i[mswin mingw mswin64]
|
|
15
14
|
gem "rake"
|
|
16
15
|
gem "rspec"
|
|
17
16
|
gem "rubocop"
|
|
@@ -19,3 +18,4 @@ gem "rubocop-performance"
|
|
|
19
18
|
gem "rubocop-rake"
|
|
20
19
|
gem "rubocop-rspec"
|
|
21
20
|
gem "rubyzip"
|
|
21
|
+
gem "sys-proctable", platforms: %i[mswin mingw mswin64]
|