mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
lint: improve HTTPS check
It was missing some domains, so I added another rule. @IzzySoft pointed out it was redudnant, so this removes the redudant rule and fixes the original. https://gitlab.com/fdroid/fdroidserver/merge_requests/681/diffs#note_225263464
This commit is contained in:
parent
a8b7342e4c
commit
3801db064a
2 changed files with 6 additions and 6 deletions
|
|
@ -102,20 +102,22 @@ class LintTest(unittest.TestCase):
|
|||
|
||||
bad_urls = [
|
||||
'github.com/my/proj',
|
||||
'http://github.com/not/secure',
|
||||
'https://github.com/foo/bar.git',
|
||||
'https://gitlab.com/group/subgroup/project.git',
|
||||
'https://raw.githubusercontent.com/Seva-coder/Finder/master/ChangeLog.txt',
|
||||
'https://github.com/scoutant/blokish/blob/master/README.md#changelog',
|
||||
'http://htmlpreview.github.io/?https://github.com/my/project/blob/HEAD/index.html',
|
||||
'http://fdroid.gitlab.io/fdroid-website',
|
||||
]
|
||||
anywarns = False
|
||||
logging.debug('bad urls:')
|
||||
for url in bad_urls:
|
||||
anywarns = False
|
||||
app['SourceCode'] = url
|
||||
for warn in fdroidserver.lint.check_regexes(app):
|
||||
anywarns = True
|
||||
logging.debug(warn)
|
||||
self.assertTrue(anywarns)
|
||||
self.assertTrue(anywarns, url + " does not fail lint!")
|
||||
|
||||
def test_check_app_field_types(self):
|
||||
config = dict()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue