chiark / gitweb /
lint: warn about spaces in summaries too
authorDaniel Martí <mvdan@mvdan.cc>
Thu, 31 Dec 2015 10:21:47 +0000 (11:21 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 31 Dec 2015 10:21:47 +0000 (11:21 +0100)
fdroidserver/lint.py

index cca735b0b80c21089e34a4cdd87ce7d93c57f6ae..8722c6fd5af5532eb6e777ca7102ded4aae5c965 100644 (file)
@@ -87,6 +87,10 @@ regex_checks = {
          "No need to specify that the app is for Android"),
         (re.compile(r'.*[a-z0-9][.!?]( |$)'),
          "Punctuation should be avoided"),
+        (re.compile(r'^\s'),
+         "Unnecessary leading space"),
+        (re.compile(r'.*\s$'),
+         "Unnecessary trailing space"),
     ],
     'Description': [
         (re.compile(r'^No description available$'),