Uploaded image for project: 'SonarJava'
  1. SonarJava
  2. SONARJAVA-3199

Secondary locations of rule S3516 should be ordered by line

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0
    • Component/s: Rules, Symbolic Execution
    • Labels:
      None

      Description

      Implementation of RSPEC-3516 does not report secondary locations in the correct order. It should be from the top of the method to the bottom, in order to have consistent reporting with UI.

       

      void foo(boolean condition) { // issue
        if (condition) {
          return true;   // should be 1st secondary
        }
        return true; // should be 2nd secondary
      }
      

        Attachments

          Activity

            People

            • Assignee:
              guillaume.dequenne Guillaume Dequenne
              Reporter:
              michael.gumowski Michael Gumowski
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: