mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
No need to define default/example values for domain, user, passwords
This commit is contained in:
parent
18b26598da
commit
272910a42e
1 changed files with 5 additions and 0 deletions
|
@ -1121,6 +1121,11 @@ class Manifest(TestSuite):
|
||||||
yield Warning(
|
yield Warning(
|
||||||
"Default value for boolean-type arguments should be a boolean... (in particular, make sure it's not a string!)"
|
"Default value for boolean-type arguments should be a boolean... (in particular, make sure it's not a string!)"
|
||||||
)
|
)
|
||||||
|
elif argument["type"] in ["domain", "user", "password"]:
|
||||||
|
if argument.get("default"):
|
||||||
|
yield Info("Default value for argument %s is superflous, will be ignored" % argument["name"])
|
||||||
|
if argument.get("example"):
|
||||||
|
yield Info("Example value for argument %s is superflous, will be ignored" % argument["name"])
|
||||||
|
|
||||||
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…
Add table
Reference in a new issue