chiark / gitweb /
lint: warn about redundant links too
authorDaniel Martí <mvdan@mvdan.cc>
Tue, 26 Aug 2014 11:32:44 +0000 (13:32 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Tue, 26 Aug 2014 11:33:17 +0000 (13:33 +0200)
fdroidserver/lint.py

index 9c0dcfdc23eb26320656d42dcd658e93a74be425..98482be0cfb1f8988cc1880aa31d13c27f28b52f 100644 (file)
@@ -185,7 +185,12 @@ def main():
             warn("Summary of length %s is over the %i char limit" % (
                 summ_chars, config['char_limits']['Summary']))
 
-        # Redundant summaries or descriptions
+        # Redundant info
+        if app['Web Site'] and app['Source Code']:
+            if app['Web Site'].lower() == app['Source Code'].lower():
+                warn("Website '%s' is just the app's source code link" % app['Web Site'])
+                app['Web Site'] = ''
+
         name = app['Name'] or app['Auto Name']
         if app['Summary'] and name:
             if app['Summary'].lower() == name.lower():