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

Do Not Warn for Redirects to Given Patterns #85

Merged
merged 2 commits into from
May 19, 2024

Conversation

EagleoutIce
Copy link
Contributor

As proposed in #84, this adds the new option --do-not-warn-for-redirect-to which allows to mute warnings for redirections if they lead to an URL which matches the specified pattern.

I've used my (rudimentary) understanding of Rust to implement this option roughly mirrored to the existing --ignore-links option, so feel free to suggest any kind of improvements/problems which my solution has (I hope my choice of using Arc to share the do_not_warn_for_redirect_to vector was at least not an utter failure)!

The PR includes three new tests for check_http and adds the option to the main Readme.
For now, I haven't changed the CHANGELOG.md because I am not sure if I am even supposed to do that.

Mutes warnings caused by redirections which lead to an url matching the given patterns.
@EagleoutIce
Copy link
Contributor Author

I am confused, are the failing actions my fault? If so, I am really sorry - I can (locally) only test on Linux and do not really understand how the errors should be caused by my changes.

@becheran
Copy link
Owner

Thanks for the PR. I don't know yet why it is failing on Windows. Will give it a try localy on Windows machine.

Copy link
Owner

@becheran becheran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@becheran
Copy link
Owner

CI is broken, but it is not because of this PR. Will merge and fix seperately. Thanks!

@becheran becheran merged commit d73269b into becheran:master May 19, 2024
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants