mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 07:20:29 +03:00
Warn about misplaced flattr donation links
This commit is contained in:
parent
57ba6f0307
commit
b9397733c3
1 changed files with 6 additions and 0 deletions
|
|
@ -63,6 +63,10 @@ regex_warnings = {
|
|||
(re.compile(r'.*github\.com/[^/]+/[^/]+[/]*$'),
|
||||
"/issues is missing"),
|
||||
],
|
||||
'Donate': http_warnings + [
|
||||
(re.compile(r'.*flattr\.com'),
|
||||
"Flattr donation methods belong in the FlattrID flag"),
|
||||
],
|
||||
'Changelog': http_warnings + [
|
||||
],
|
||||
'License': [
|
||||
|
|
@ -247,6 +251,8 @@ def main():
|
|||
for m, r in regex_warnings[f]:
|
||||
t = metadata.metafieldtype(f)
|
||||
if t == 'string':
|
||||
if app[f] is None:
|
||||
continue
|
||||
if m.match(app[f]):
|
||||
warn("%s '%s': %s" % (f, app[f], r))
|
||||
elif t == 'multiline':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue