mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Report missing argument type as a warning instead of error
This commit is contained in:
parent
af96b17a48
commit
daee832af4
1 changed files with 1 additions and 1 deletions
|
@ -277,7 +277,7 @@ def check_manifest(path):
|
||||||
|
|
||||||
for argument in manifest["arguments"]["install"]:
|
for argument in manifest["arguments"]["install"]:
|
||||||
if not "type" in argument.keys():
|
if not "type" in argument.keys():
|
||||||
print_error("[YEP-2.1] You should specify the type of the argument '%s'. You can use : %s." % (argument["name"], ', '.join(recognized_types)))
|
print_warning("[YEP-2.1] You should specify the type of the argument '%s'. You can use : %s." % (argument["name"], ', '.join(recognized_types)))
|
||||||
elif argument["type"] not in recognized_types:
|
elif argument["type"] not in recognized_types:
|
||||||
print_warning("[YEP-2.1] The type '%s' for argument '%s' is not recognized... it probably doesn't behave as you expect ? Choose among those instead : %s" % (argument["type"], argument["name"], ', '.join(recognized_types)))
|
print_warning("[YEP-2.1] The type '%s' for argument '%s' is not recognized... it probably doesn't behave as you expect ? Choose among those instead : %s" % (argument["type"], argument["name"], ', '.join(recognized_types)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue