4teamwork / ftw.linkchecker

0 stars 0 forks source link

Refactor: Make information better accessible and code better readable #28

Closed busykoala closed 5 years ago

busykoala commented 5 years ago

Since most of the function are there to handle links and their validity we should introduce a link object having the attributes:

So that we could address the object nicely the obj class should also have methods to:

This refactoring is especially important at places like: https://github.com/4teamwork/ftw.linkchecker/blob/63347068e01f86a79f138bf550b7f20890e46202/ftw/linkchecker/command/checking_links.py#L54-L58

Also we should loop through both in one loop instead of going through everything twice.

busykoala commented 5 years ago

Solved in #42