Uploaded image for project: 'SonarPLSQL'
  1. SonarPLSQL
  2. SONARPLSQL-586

FunctionLastStatementReturnCheck should check all execution paths

    XMLWordPrintable

    Details

    • Type: False-Positive
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.8
    • Fix Version/s: 3.5
    • Component/s: Rules
    • Labels:

      Description

      FunctionLastStatementReturnCheck (RSPEC-2466) should not raise an issue on the following code:

      CREATE OR REPLACE FUNCTION f1(x IN number) RETURN number
      IS
      BEGIN
        IF x > 42 THEN
          RETURN 0;
        ELSE
          RETURN 1;
        END IF;
      END;
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              quentin.jaquier Quentin Jaquier
              Reporter:
              pierre-yves.nicolas Pierre-Yves Nicolas
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: