Merge ~pfsmorigo/review-tools:check_link_improvements into review-tools:master
Proposed by
Paulo Flabiano Smorigo
Status: | Merged |
---|---|
Merged at revision: | 80021aab0553f647060685ec62f862314af53766 |
Proposed branch: | ~pfsmorigo/review-tools:check_link_improvements |
Merge into: | review-tools:master |
Diff against target: |
220 lines (+105/-34) 4 files modified
reviewtools/common.py (+0/-3) reviewtools/sr_lint.py (+56/-10) reviewtools/tests/test_sr_lint.py (+49/-18) snapcraft.yaml (+0/-3) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alex Murray | Approve | ||
Review via email: mp+412055@code.launchpad.net |
Description of the change
I used the ValidateLinks from snapd but had to make some changes. In snapd, the validation relies on an url parser that can check the syntax. For the review tools I'm using a regex for that.
To post a comment you must log in.
Thanks for this - I don't think we need LINK_TYPES anymore and I think you should just use the python standard library to parse / validate the URLs rather than a regex as that will be too fragile.