Details

    • Type: Finding Detection
    • Status: Closed
    • Resolution: Won't Fix
    • Labels:
      None
    • Default Severity:
      Major
    • Impact:
      Low
    • Likelihood:
      High
    • Remediation Function:
      Linear
    • Constant Cost:
      1

      Description

      return, break, continue, and throw statements should be followed by a }, case, or default.

      function sayHello() {
        if (true) {
          return;
          var b; // Non-Compliant - this will never be executed
        } else {
          var c;
        }
      
        while (true) {
          break;
          var d; // Non-Compliant - this will never be executed
        }
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                freddy.mallet Freddy Mallet (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: