Skip to content

Support --ignore and/or --ignore-fileΒ #193

@AgentEnder

Description

@AgentEnder

I've recently started using hyperlink to validate my static sites internal links πŸŽ‰ - it works really well. But I've got some requests from real world usages that I'm going to file issues for.

Current Behavior

The output for hyperlink is not machine parseable, so its hard to wire up checks that may accept some known errors or inconsistencies. For example, I currently have a site that reports the following error output:

./dist/client/404.html
  error: bad link /404

./dist/client/_redirects
  error: bad link /roster/@slug/matches/1

Both of these resolve to known good files.

Expected Behaviour

It would be nice to be able to pass --ignore '/404' and/or --ignore-file ./dist/client/_redirects to exclude these files from checking since they each contain links that we know resolve once deployed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions