mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Report is_public default value being a string
This commit is contained in:
parent
b00ef3d23c
commit
6cc1b2f330
1 changed files with 4 additions and 0 deletions
|
@ -984,6 +984,10 @@ class Manifest(TestSuite):
|
||||||
"The type '%s' for argument '%s' is not recognized... "
|
"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))
|
"it probably doesn't behave as you expect ? Choose among those instead : %s" % (argument["type"], argument["name"], ', '.join(recognized_types))
|
||||||
)
|
)
|
||||||
|
elif argument["type"] == "boolean" and argument.get("default", True) not in [True, False]:
|
||||||
|
yield Warning(
|
||||||
|
"Default value for boolean-type arguments should be a boolean... (in particular, make sure it's not a string!)"
|
||||||
|
)
|
||||||
|
|
||||||
if "choices" in argument.keys():
|
if "choices" in argument.keys():
|
||||||
choices = [c.lower() for c in argument["choices"]]
|
choices = [c.lower() for c in argument["choices"]]
|
||||||
|
|
Loading…
Reference in a new issue