chiark / gitweb /
lint: also check for trailing spaces in names
[fdroidserver.git] / fdroidserver / lint.py
index 8722c6fd5af5532eb6e777ca7102ded4aae5c965..ee4381c0f10c4a4a73adad3a71be4ebc9b6aa281 100644 (file)
@@ -74,6 +74,12 @@ regex_checks = {
          "Flattr donation methods belong in the FlattrID flag"),
     ],
     'Changelog': http_checks,
+    'Author Name': [
+        (re.compile(r'^\s'),
+         "Unnecessary leading space"),
+        (re.compile(r'.*\s$'),
+         "Unnecessary trailing space"),
+    ],
     'License': [
         (re.compile(r'^(|None|Unknown)$'),
          "No license specified"),