chiark / gitweb /
lint: move punctuation warnings out of pedantic
authorDaniel Martí <mvdan@mvdan.cc>
Thu, 4 Jun 2015 13:45:33 +0000 (15:45 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 4 Jun 2015 13:45:33 +0000 (15:45 +0200)
fdroidserver/lint.py

index 4a47746ccc47a8068e487416b2e7d6962ad4ff6f..1d6d95483d04fff6c1b97f507cc24ff26484adf1 100644 (file)
@@ -78,6 +78,8 @@ regex_warnings = {
          "No need to specify that the app is Free Software"),
         (re.compile(r'.*((your|for).*android|android.*(app|device|client|port|version))', re.IGNORECASE),
          "No need to specify that the app is for Android"),
+        (re.compile(r'.*[a-z0-9][.!?]( |$)'),
+         "Punctuation should be avoided"),
     ],
     'Description': [
         (re.compile(r'^No description available$'),
@@ -96,10 +98,6 @@ regex_pedantic = {
         (re.compile(r'.*github\.com/[^/]+/[^/]+/issues/.*'),
          "/issues is often enough on its own"),
     ],
-    'Summary': [
-        (re.compile(r'.*[a-z0-9][.!?][ $]'),
-         "Punctuation should be avoided"),
-    ],
 }