chiark / gitweb /
Make lint check for trailing spaces
authorDaniel Martí <mvdan@mvdan.cc>
Wed, 15 Oct 2014 12:36:59 +0000 (14:36 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Wed, 15 Oct 2014 12:36:59 +0000 (14:36 +0200)
fdroidserver/lint.py

index d42efdf72feba7c90d72941c68874c2e8c5d3180..ff1c0c7c175c3f7fc911961a2632472d4a788fa0 100644 (file)
@@ -89,6 +89,8 @@ regex_warnings = {
          "Invalid bulleted list"),
         (re.compile(r'^ '),
          "Unnecessary leading space"),
+        (re.compile(r'.* $'),
+         "Unnecessary trailing space"),
         ],
 }