From 7018e32b2cb77ef1b8e7156f98816d9fbd325c0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Wed, 3 Jun 2015 22:51:05 +0200 Subject: [PATCH] Move github .git lint warning to http_warnings --- fdroidserver/lint.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/fdroidserver/lint.py b/fdroidserver/lint.py index bd587cbe..4a47746c 100644 --- a/fdroidserver/lint.py +++ b/fdroidserver/lint.py @@ -44,6 +44,8 @@ https_enforcings = [ http_warnings = https_enforcings + [ (re.compile(r'.*/$'), "HTTP links shouldn't end with a slash"), + (re.compile(r'.*github\.com/[^/]+/[^/]+\.git'), + "Appending .git is not necessary"), # 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?"), @@ -90,16 +92,6 @@ regex_warnings = { } regex_pedantic = { - 'Web Site': [ - (re.compile(r'.*github\.com/[^/]+/[^/]+\.git'), - "Appending .git is not necessary"), - ], - 'Source Code': [ - (re.compile(r'.*github\.com/[^/]+/[^/]+\.git'), - "Appending .git is not necessary"), - ], - 'Repo': [ - ], 'Issue Tracker': [ (re.compile(r'.*github\.com/[^/]+/[^/]+/issues/.*'), "/issues is often enough on its own"),