From: Daniel Martí Date: Wed, 3 Jun 2015 19:00:15 +0000 (+0200) Subject: Enforce https uniformly in all http links X-Git-Tag: 0.4.0~51 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=128b19e0108178a6d5af2b8ddc1509112b4d4fb3;p=fdroidserver.git Enforce https uniformly in all http links --- diff --git a/fdroidserver/lint.py b/fdroidserver/lint.py index 12e1cc25..d1d0c522 100644 --- a/fdroidserver/lint.py +++ b/fdroidserver/lint.py @@ -35,6 +35,12 @@ def enforce_https(domain): http_warnings = [ (re.compile(r'.*/$'), "HTTP links shouldn't end with a slash"), + enforce_https('github.com'), + enforce_https('gitorious.org'), + enforce_https('apache.org'), + enforce_https('google.com'), + enforce_https('svn.code.sf.net'), + enforce_https('googlecode.com'), # TODO enable in August 2015, when Google Code goes read-only # (re.compile(r'.*://code\.google\.com/.*'), # "code.google.com will be soon switching down, perhaps the project moved to github.com?"), @@ -46,12 +52,6 @@ regex_warnings = { 'Source Code': http_warnings + [ ], 'Repo': [ - enforce_https('github.com'), - enforce_https('gitorious.org'), - enforce_https('apache.org'), - enforce_https('google.com'), - enforce_https('svn.code.sf.net'), - enforce_https('googlecode.com'), ], 'Issue Tracker': http_warnings + [ (re.compile(r'.*github\.com/[^/]+/[^/]+[/]*$'),