Warning: Put the postconditional on the command keyword, not on its argument
Under {"command":{"allowPostconditionOnArgument":false}}, a postconditional on an argument
of Do, Goto or Xecute is reported, as in Do ^R:x. The same key under commandDo,
commandGoto or commandXecute sets the rule for that one command. A condition on an
argument skips that argument alone, while one on the keyword, as in Do:x ^R, skips the
whole command. Move the condition onto the keyword, and split a command with several
arguments into one command per argument.
IRIS compiles the example. Checked with the style {"command":{"allowPostconditionOnArgument":false}}.
Class Demo.ArgumentPostconditional
{
ClassMethod Run(verbose As %Boolean)
{
Do ..Log("starting"):verbose //! S6307
Do:verbose ..Log("done")
}
ClassMethod Log(text As %String)
{
Write text, !
}
}