Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-3475

Algorithm for tracking issues should use difference in position of line

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.0
    • Fix Version/s: None
    • Component/s: Issues
    • Labels:
      None

      Description

      Current algorithm depends only on size of block (SONAR-3072), whereas would be better also take into account difference in position of lines.
      As an example:

      version 1
      line 1: A
      line 2: B // violation
      line 3: B // violation
      
      version 2
      line 1: C
      line 2: A
      line 3: B // violation
      line 4: B // violation
      

      Current algorithm can create association between version 1 line 2 and version 2 line 4 or version 1 line 2 and version 2 line 3, depending on order of violations in lists, because size of block is the same (3 unmodified lines).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              godin OLD - Evgeny Mandrikov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: