Re-define lychee
as both a link checker and a link linter
#880
Replies: 6 comments
-
This is labelled as You can already enforce some basic pattern-policies today: Use Is the list of policies in your OP exhaustive? |
Beta Was this translation helpful? Give feedback.
-
@lebensterben any thoughts? |
Beta Was this translation helpful? Give feedback.
-
prior art: https://github.com/wjdp/htmltest |
Beta Was this translation helpful? Give feedback.
-
Link validation is a whole other use-case with a lot of design decisions to consider along the way. We have to be careful to keep the scope manageable. I guess we can commit to the following:
Outside of that, I'd probably defer to other tools (e.g. htmltest that @untitaker mentioned) or workarounds using |
Beta Was this translation helpful? Give feedback.
-
I checked OP again, what you currently cannot do is hook into before/after link traversal for linting, or define your own link extraction logic. eg you may want to lint a link and based on the linting decide whether to follow the link. I wonder if OP meant to build a scripting platform on top of lychee where the user could hook custom logic into any of those stages, and that's why internals are discussed so much in detail. |
Beta Was this translation helpful? Give feedback.
-
FYI: I've converted this from and issue into a discussion as we still need to discuss more details before taking any action. |
Beta Was this translation helpful? Give feedback.
-
Currently,
lychee
is just a link checker, which conceptually has the following components:We can extend
lychee
so that it's also a link linter.Note that the overseer hands the job to its workers, and workers are only responsible for validating the URLs. The linting facility should also be done by overseer.
Conceptually, linting could happen before and/or after the overseer dispatches the job. For example:
Beta Was this translation helpful? Give feedback.
All reactions