From 76b026e572bc0ec2467579d56447addc392e4deb Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 3 Jan 2019 20:48:08 +0100 Subject: [PATCH] lint: check whether the locale was included in an f-droid.org URL --- fdroidserver/lint.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fdroidserver/lint.py b/fdroidserver/lint.py index 63cf1293..465954cc 100644 --- a/fdroidserver/lint.py +++ b/fdroidserver/lint.py @@ -165,6 +165,8 @@ regex_checks = { 'Description': https_enforcings + http_url_shorteners + [ (re.compile(r'\s*[*#][^ .]'), _("Invalid bulleted list")), + (re.compile(r'https://f-droid.org/[a-z][a-z](_[A-Za-z]{2,4})?/'), + _("Locale included in f-droid.org URL")), (re.compile(r'^\s'), _("Unnecessary leading space")), (re.compile(r'.*\s$'),