Home
Jump statements should not be redundant
Rule description
- Jump statements should not be redundant
Non-compliant Code Example
function string TestFunctionCall (string cnt)
integer A = 1, B = 1
DO WHILE A <= 15
A = (A + 1) * B;
CONTINUE; //Non compliant code (Jump statement is redundant)
LOOP
return cnt
end function
Compliant Code Example
function string TestFunctionCall (string cnt) integer A = 1, B = 1 DO WHILE A <= 15 A = (A + 1) * B; LOOP return cnt end function