mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Merge pull request #60 from YunoHost/explain-what-ispublic-means
Encourage packagers to detail what is_public means
This commit is contained in:
commit
4ce3e0c023
1 changed files with 10 additions and 0 deletions
|
@ -354,6 +354,16 @@ class App():
|
||||||
"No need to specify the choices list yourself." % argument["name"]
|
"No need to specify the choices list yourself." % argument["name"]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if argument["name"] == "is_public" and "help" not in argument.keys():
|
||||||
|
print_warning(
|
||||||
|
"Consider adding an 'help' key for argument 'is_public' "
|
||||||
|
"to explain to the user what it means for *this* app "
|
||||||
|
"to be public or private :\n"
|
||||||
|
' "help": {\n'
|
||||||
|
' "en": "Some explanation"\n'
|
||||||
|
' }')
|
||||||
|
|
||||||
|
|
||||||
if "url" in manifest and manifest["url"].endswith("_ynh"):
|
if "url" in manifest and manifest["url"].endswith("_ynh"):
|
||||||
print_warning(
|
print_warning(
|
||||||
"'url' is not meant to be the url of the yunohost package, "
|
"'url' is not meant to be the url of the yunohost package, "
|
||||||
|
|
Loading…
Reference in a new issue