Skip to content

Make it possible to specify a custom format for reporting broken links #297

Description

@gromakovsky

Clarification and motivation

xrefcheck is supposed to be used mainly on CI, e. g. GitHub Actions.
GitHub Actions has a special syntax for emitting warnings. AFAIU, it may look like this (image from the internet):
image

I think it would be neat to report broken links in such a way. And probably the best approach is to make xrefcheck accept some specification of a format in which it will report broken links.

Acceptance criteria

The user can run xrefcheck in such a way that it will report broken links in a user-defined format.
This format should be a function that takes:

  • file name
  • position in the file
  • a message like Resource unavailable (404 Not Found)
  • a link being checked
  • maybe something else

and returns formatted text to be printed instead of the default message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions