riboseinc / uri_format_validator

Validate URL for Rails
MIT License
3 stars 2 forks source link

Refactor and simplify validation flow #54

Closed skalee closed 6 years ago

skalee commented 6 years ago

Refactor large and complex do_checks method.

Extract larger pieces of logic into separate methods. Improve argument lists in methods in order to make them similar to each other, then remove duplications.

After merging this one in, only 2 code style violations are left in the project.