Forum: Cfengine Help Subject: Strategy for parameter validation? Author: jgreer Link to topic: https://cfengine.com/forum/read.php?3,19826,19826#msg-19826
On multiple occasions, I've accidentally passed incorrect parameters to a body, bundle or function - either an incorrect number of parameters or an invalid option from a set (a recent example: passing "shell", rather than "useshell" or "noshell" to returnszero()). Cfengine does not generate warnings or errors on these cases, and in many cases, I wish it had done so. My question is, should I be reporting these as bugs? What should we expect to be validated by the parser and what are we responsible for sanity-checking ourselves? Thanks, -Jessica _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine