Use the right number of parameters to the function call.

Noncompliant Code Example

Following code will compile, but on runtime will fail since the second argument is missing.

Class Sample.Foobar
{
    ClassMethod foo(x As %String, y As %String)
    {
        Write !,x
        Write !,y  // UNDEFINED
    }

    ClassMethod bar()
    {
        do ..foo("Hello")
    }
}

Exceptions

Note that this check will account for arguments with default values, which means that if in the code above foo is declared as:

ClassMethod m(x As %String, y As %String = "World")

then this issue will not be raised.