Method arguments with default values not at the end

CachéQuality release 
1.0.0
Id 
OS0063
Rule type 
Severity 

Major

Major
SQALE characteristic 
  • Maintainability
    • Readability
Tags 
coding-guidelines, confusing
Remediation function 
Constant/issue
Remediation cost 
10min

ObjectScript allows to add default value to method arguments, and it does not require that such default values be at the end.

It is therefore legal to define a method as:

    Method m(x as %Integer = 1, y)
    {
        // code of method here
    }

However, this is rather confusing and should preferrably be avoided.