From 6d8dd4bed29ceb80641e3aeab7f06f968403a021 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Mart=C3=AD?= Date: Fri, 18 Apr 2014 20:54:44 +0200 Subject: [PATCH] Add summary-related lint warnings --- fdroidserver/lint.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/fdroidserver/lint.py b/fdroidserver/lint.py index 13479286..7d36c612 100644 --- a/fdroidserver/lint.py +++ b/fdroidserver/lint.py @@ -170,6 +170,18 @@ def main(): warn("Summary of length %s is over the %i char limit" % ( summ_chars, config['char_limits']['Summary'])) + # Redundant summaries + summary = app['Summary'] + name = str(app['Name'] if app['Name'] else app['Auto Name']) + if summary and name: + summary_l = summary.lower() + name_l = name.lower() + if summary_l == name_l: + warn("Summary '%s' is just the app's name" % summary) + elif (summary_l in name_l or name_l in summary_l): + pwarn("Summary '%s' probably contains redundant info of app name '%s'" % ( + summary, name)) + # Invalid lists desc_chars = 0 for line in app['Description']: -- 2.30.2