Improve tip about the description

This commit is contained in:
Alexandre Aubin 2019-01-29 01:36:53 +01:00
parent a0c400f946
commit 7e4fecf6e6

View file

@ -238,10 +238,16 @@ def check_manifest(path):
# YEP 1.8 Publish test request # YEP 1.8 Publish test request
# YEP 1.9 Document app # YEP 1.9 Document app
if "description" in manifest and "name" in manifest: if "description" in manifest:
if manifest["description"] == manifest["name"]: descr = manifest["description"]
print_warning("[YEP-1.9] You should write a good description of the" if isinstance(descr, dict):
"app (1 line is enough).") descr = descr.get("en", None)
if descr is None or descr == manifest.get("name", None):
print_warning("[YEP-1.9] You should write a good description of the""app, at least in english (1 line is enough).")
elif "for yunohost" in descr.lower():
print_warning("[YEP-1.9] The 'description' should explain what the app actually does. No need to say that it is 'for YunoHost' - this is a YunoHost app so of course we know it is for YunoHost ;-).")
# TODO test a specific template in README.md # TODO test a specific template in README.md