-
Notifications
You must be signed in to change notification settings - Fork 18
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
Request: Move handlers into their own functions #101
Comments
I am interested in taking this on. I'm thinking (as a first pass at least) of splitting each of the aforementioned things into functions. Also, what are your thoughts on |
That sounds good to me as long as the config object is optional. My original goal was simplicity, being able to pass any URL to be cleaned with ease, but I don't mind being able to customize the clean for more advanced users. So far the main options were for AMP links and redirects, as you've probably seen already |
I am interested. I will refactor the code and add some unit tests to make the method cleaner and more readable. Additionally, I will organize the handlers into different files. |
Thank you |
I think i do not have permission to push |
Create a pull request. I'll review it when I get the time and if it's good I'll merge |
I'm not going to let you push code into the main branch that hasn't been tested, reviewed or even seen by me. |
PR is ready for review #108 |
Right now almost all of the work is done in a single function,
clean()
.I want to split each of the parts into their own functions for easier managing and more control over the process.
Currently this is what happens in the
clean
function (not in order):Decode handlerEmpty hashesChecking reduction/differenceI think handlers should get their own file to make the project easier to read and/or debug.
If anyone has thoughts on this feel free to contact me privately (email on my profile) or you can leave a comment on this issue.
The text was updated successfully, but these errors were encountered: