mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-07 18:01:06 +03:00
lint: Warn about links left off from old sites
This commit is contained in:
parent
03deda914f
commit
29dea4aad5
1 changed files with 16 additions and 0 deletions
|
@ -205,6 +205,22 @@ def main():
|
||||||
if app['Web Site'].lower() == app['Source Code'].lower():
|
if app['Web Site'].lower() == app['Source Code'].lower():
|
||||||
warn("Website '%s' is just the app's source code link" % app['Web Site'])
|
warn("Website '%s' is just the app's source code link" % app['Web Site'])
|
||||||
|
|
||||||
|
# Old links
|
||||||
|
usual_sites = [
|
||||||
|
'github.com',
|
||||||
|
'gitlab.com',
|
||||||
|
'bitbucket.org',
|
||||||
|
]
|
||||||
|
old_sites = [
|
||||||
|
'gitorious.org',
|
||||||
|
'code.google.com',
|
||||||
|
# 'sourceforge.net', # too many false positives as of now
|
||||||
|
]
|
||||||
|
if any(s in app['Repo'] for s in usual_sites):
|
||||||
|
for f in ['Web Site', 'Source Code', 'Issue Tracker', 'Changelog']:
|
||||||
|
if any(s in app[f] for s in old_sites):
|
||||||
|
warn("App is in '%s' but has a link to '%s'" % (app['Repo'], app[f]))
|
||||||
|
|
||||||
if filling_ucms.match(app['Update Check Mode']):
|
if filling_ucms.match(app['Update Check Mode']):
|
||||||
if all(app[f] == metadata.app_defaults[f] for f in [
|
if all(app[f] == metadata.app_defaults[f] for f in [
|
||||||
'Auto Name',
|
'Auto Name',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue