1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-17 10:40:12 +02:00

lint: warn about redundant links too

This commit is contained in:
Daniel Martí 2014-08-26 13:32:44 +02:00
parent 0da8c2c365
commit 298934afa5

View 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():