Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation: perform link checking #202

Open
fingolfin opened this issue Mar 19, 2022 · 0 comments
Open

Validation: perform link checking #202

fingolfin opened this issue Mar 19, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@fingolfin
Copy link
Member

fingolfin commented Mar 19, 2022

... at the very least for "local" links. That is, look for <a href="HREF"> elements, and perform some checks on the HREF value:

  • it should start either with http:// or https:// or mailto:,
  • it must not start with file:// nor with /
  • for relative paths, the referenced file should exist
  • bonus points for checking that the link does not extend outside the GAP directory (so no ../../../../../../etc/passwd or ../../../pkg/../../../../etc/passwd or other similar nonsense)
  • more bonus points if external links are also checked, but I am not sure that's feasible, soo...

There are probably existing tools out there that we can use for this. E.g. here is one written in Python 3: https://linkchecker.github.io/linkchecker/

@fingolfin fingolfin added the enhancement New feature or request label Mar 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant