Skip to content

Local link verification in source code #162

Description

@cbachhuber

I find markdown link checks highly useful, even if they only check relative links in the repo. Examples:

I still often encounter dead relative links from source code, though. For example, people often reference other files from source code comments.

Do you think it would make sense to offer a pre-commit hook that verifies relative links in source code? It could expect some pattern (possibly r"<[^\n]>") to define a relative, checked link, and then verify existence in the repo.

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