From a49f04a947e7af8e93737eee00d283f9f4527212 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Mart=C3=AD?= Date: Fri, 14 Feb 2014 23:59:39 +0100 Subject: [PATCH] Minor fixes to lint.py --- fdroidserver/lint.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fdroidserver/lint.py b/fdroidserver/lint.py index 164bd6a6..c7f82202 100644 --- a/fdroidserver/lint.py +++ b/fdroidserver/lint.py @@ -1,7 +1,7 @@ #!/usr/bin/env python2 # -*- coding: utf-8 -*- # -# rewritemeta.py - part of the FDroid server tool +# lint.py - part of the FDroid server tool # Copyright (C) 2013-2014 Daniel Martí # # This program is free software: you can redistribute it and/or modify @@ -142,12 +142,14 @@ def main(): warn("Summary of length %s is over the %i char limit" % ( summ_chars, config['char_limits']['Summary'])) - # Description size limit + # Invalid lists desc_chars = 0 for line in app['Description']: if re.match(r'[ ]*\*[^ ]', line): warn("Invalid bulleted list: '%s'" % line) desc_chars += len(line) + + # Description size limit if desc_chars > config['char_limits']['Description']: warn("Description of length %s is over the %i char limit" % ( desc_chars, config['char_limits']['Description'])) -- 2.30.2