mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Improve tip about the description
This commit is contained in:
parent
a0c400f946
commit
7e4fecf6e6
1 changed files with 10 additions and 4 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue