You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jump statements, such as RETURN and CONTINUE let you change the default flow of program execution, but jump statements that direct the control flow to the original direction are just a waste of keystrokes.
Noncompliant Code Example
CREATE PROCEDURE print_numbers AS
BEGIN
FOR i in 1..4 LOOP
DBMS_OUTPUT.PUT_LINE(i);
CONTINUE;
END LOOP;
RETURN;
END;
Compliant Solution
CREATE PROCEDURE print_numbers AS
BEGIN
FOR i in 1..4 LOOP
DBMS_OUTPUT.PUT_LINE(i);
END LOOP;
END;
The text was updated successfully, but these errors were encountered:
Language Usage / Control Structures / Flow Control
Avoid using jump statements that direct the flow to the default direction
from SonarQube
Jump statements should not be redundant
Jump statements, such as RETURN and CONTINUE let you change the default flow of program execution, but jump statements that direct the control flow to the original direction are just a waste of keystrokes.
Noncompliant Code Example
Compliant Solution
The text was updated successfully, but these errors were encountered: