From 272910a42e6e86debda1a7939d230517fd2503d2 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 16 Sep 2021 20:16:16 +0200 Subject: [PATCH] No need to define default/example values for domain, user, passwords --- package_linter.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package_linter.py b/package_linter.py index b0d6a10..8c1a425 100755 --- a/package_linter.py +++ b/package_linter.py @@ -1121,6 +1121,11 @@ class Manifest(TestSuite): yield Warning( "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(): choices = [c.lower() for c in argument["choices"]]