Skip to content

Support keys for the doi-link-valid error rule #2489

@mfisher87

Description

@mfisher87

Proposal

Currently, I can control the doi-link-valid error rule by adjusting the level of all errors that fall under that rule. I only want to handle cases where I'm trying to link to a webpage on DOI.org, not to an actual DOI (#828).

Rowan was providing some support and found that this rule doesn't support keys:

ruleId: RuleId.doiLinkValid,

I'd like to use a key that corresponds exactly to the URL I'm using in my code, e.g.:

  error_rules:
    - rule: "doi-link-valid"
      key: "https://doi.org/the-identifier/what-is-a-doi/"
      severity: "warn"

i.e. I would prefer that the key not look like doi:the-identifier/what-is-a-doi/!

Additional notes

Thanks, y'all are awesome ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions