-
-
Notifications
You must be signed in to change notification settings - Fork 142
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Re-define lychee
as both a link checker and a link linter
#269
Comments
This is labelled as You can already enforce some basic pattern-policies today: Use Is the list of policies in your OP exhaustive? |
@lebensterben any thoughts? |
prior art: https://github.com/wjdp/htmltest |
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 |
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. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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:
The text was updated successfully, but these errors were encountered: