From: Daniel Martí Date: Mon, 24 Aug 2015 23:34:39 +0000 (-0700) Subject: lint: warn about /master/ usage X-Git-Tag: 0.5.0~181 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=e88816bbe30e8f82f9a78caa28a1584ad463329a;p=fdroidserver.git lint: warn about /master/ usage --- diff --git a/fdroidserver/lint.py b/fdroidserver/lint.py index 61b2b639..d8d6a962 100644 --- a/fdroidserver/lint.py +++ b/fdroidserver/lint.py @@ -58,6 +58,8 @@ http_url_shorteners = [ http_warnings = https_enforcings + http_url_shorteners + [ (re.compile(r'.*github\.com/[^/]+/[^/]+\.git'), "Appending .git is not necessary"), + (re.compile(r'(.*/blob/master/|.*raw\.github.com/[^/]*/[^/]*/master/)'), + "Use /HEAD/ instead of /master/ to point at a file in the default branch"), # 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?"),