Skip to content

Add a function to to include checks on profiles. #563

@guidoferreyra

Description

@guidoferreyra

Currently, when defining a profile it’s possible to: include an entire profile with .include_profile("adobefonts") and exclude individual checks with .exclude_check("math_signs_width")

However, afaik there’s no way to include only a subset of checks from an existing profile.

If I want just a few checks from a given profile, I have to manually list every check I want to exclude.

I was wondering if it would be nice to have a helper that allows including one or more checks from a specific profile, for example:

.include_checks_from_profile(
    "googlefonts",
    vec![
        "googlefonts/family/equal_codepoint_coverage",
        "googlefonts/STAT/axis_order",
    ]
)

The problem that I see with this is that the profile will require more maintenance to manually add new checks from other profiles when these are updated 🤔

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions