chiark / gitweb /
Remove now unnecessary regex_pedantic
authorDaniel Martí <mvdan@mvdan.cc>
Thu, 4 Jun 2015 13:49:00 +0000 (15:49 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 4 Jun 2015 13:49:00 +0000 (15:49 +0200)
fdroidserver/lint.py

index 7036bf2bb86fe31a9768c74ba65738420c4da6b4..c8588b36dd1aff45b9e782c8b570aff0a8f0b23e 100644 (file)
@@ -91,13 +91,6 @@ regex_warnings = {
     ],
 }
 
-regex_pedantic = {
-    'Issue Tracker': [
-        (re.compile(r'.*github\.com/[^/]+/[^/]+/issues/.*'),
-         "/issues is often enough on its own"),
-    ],
-}
-
 
 def main():
 
@@ -210,13 +203,6 @@ def main():
                         if m.match(l):
                             warn("%s at line '%s': %s" % (f, l, r))
 
-        # Regex pedantic checks in all kinds of fields
-        if options.pedantic:
-            for f in regex_pedantic:
-                for m, r in regex_pedantic[f]:
-                    if m.match(app[f]):
-                        warn("%s '%s': %s" % (f, app[f], r))
-
         # Build warnings
         for build in app['builds']:
             if build['disable']: