-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
Skip unsupported schemes #236
Conversation
lychee-bin/src/stats.rs
Outdated
@@ -42,6 +42,10 @@ impl ResponseStats { | |||
|
|||
pub(crate) fn add(&mut self, response: Response) { | |||
let Response(source, ResponseBody { ref status, .. }) = response; | |||
if status.is_unsupported() { | |||
// Silently skip unsupported URIs for now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can add a TODO: or FIXME: keyword
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe I should remove the "for now" part, because I think it's a permanent thing. If we don't support a URI, we just ignore it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right.
So we currently support HTTP(s) and MAILTO? FILE?
It's nice to add them to readme.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup
@@ -51,6 +55,7 @@ impl ResponseStats { | |||
Status::Timeout(_) => self.timeouts += 1, | |||
Status::Redirected(_) => self.redirects += 1, | |||
Status::Excluded => self.excludes += 1, | |||
Status::Unsupported(_) => (), // Just skip unsupported URI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above. TODO: or FIXEME:
until next lychee release which contains lycheeverse/lychee#236. Try to fix verbose flag by moving it before options.
This requires to spin up a local webserver to be able to check internal links. The GitHub actions virtual machines come with Apache2 and Nginx on board, so we can configure and start Nginx. Additionally migrate to new Java setup action and version for v.Nu. Exclude "chrome://gpu" until next lychee release which contains lycheeverse/lychee#236.
Fixes #199