From b9397733c317bb2f17ddf1aa094f172ac270771a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Tue, 18 Aug 2015 17:53:56 -0700 Subject: [PATCH] Warn about misplaced flattr donation links --- fdroidserver/lint.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fdroidserver/lint.py b/fdroidserver/lint.py index f255b502..189b52ed 100644 --- a/fdroidserver/lint.py +++ b/fdroidserver/lint.py @@ -63,6 +63,10 @@ regex_warnings = { (re.compile(r'.*github\.com/[^/]+/[^/]+[/]*$'), "/issues is missing"), ], + 'Donate': http_warnings + [ + (re.compile(r'.*flattr\.com'), + "Flattr donation methods belong in the FlattrID flag"), + ], 'Changelog': http_warnings + [ ], 'License': [ @@ -247,6 +251,8 @@ def main(): for m, r in regex_warnings[f]: t = metadata.metafieldtype(f) if t == 'string': + if app[f] is None: + continue if m.match(app[f]): warn("%s '%s': %s" % (f, app[f], r)) elif t == 'multiline':