Class: Fontisan::Audit::CheckRegistry
- Inherits:
-
Object
- Object
- Fontisan::Audit::CheckRegistry
- Defined in:
- lib/fontisan/audit/check_registry.rb
Overview
Central registry of audit checks. A profile is a named subset of
checks (e.g. :ots, :structural). The :default profile runs
every registered check.
Profiles let callers opt into specific validation axes without
running everything — e.g. fontisan audit font.ttf --validate ots
runs only the OTS compatibility check.
Constant Summary collapse
- PROFILES =
{ default: %i[table_directory glyph_names cmap ots_compatibility collection_integrity], structural: %i[table_directory collection_integrity], ots: %i[ots_compatibility], layout: %i[glyph_names cmap], }.freeze
Class Method Summary collapse
-
.check_for(code) ⇒ Class?
The check class.
-
.for(profile) ⇒ Array<Class>
Check classes for the profile.
Class Method Details
.check_for(code) ⇒ Class?
Returns the check class.
36 37 38 39 40 41 42 43 44 |
# File 'lib/fontisan/audit/check_registry.rb', line 36 def self.check_for(code) case code when :table_directory then Checks::TableDirectoryCheck when :glyph_names then Checks::GlyphNameCheck when :cmap then Checks::CmapCheck when :ots_compatibility then Checks::OtsCompatibilityCheck when :collection_integrity then Checks::CollectionIntegrityCheck end end |