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

Detection of changed lines between branches without SCM not working with Cobol

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.1
    • Component/s: None
    • Labels:
      None
    • Edition:
      Developer
    • Production Notes:
      None

      Description

      The cobol plugin defines what part of the source code lines have "significant code" that should be used when comparing source code to detect the "new lines of code" for a given context.

      When the comparison is done between the current analysis and the previous analysis of the branch, it is working correctly. Lines will have the right last changed date and they will be classified accurately as new or not new based on the New Code Period.

      When doing a comparison between a branch being analyzed and its target, it's not working correctly. Instead of checking if the matching file in the target branch is using "significant code", it checks if the file in the current branch is using it. As a result, the comparison ends up using "significant code" for the file in the current branch, and no "significant code" for the file in the target branch, resulting in differences. Lines that should be classified as "not new" will appear as "new".

       

      Technical details: Check DbLineHashVersion. It should use the same strategy as used in SourceLinesDiffImpl, to get the UUID of the matching file in the target or merge branch.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              duarte.meneses Duarte Meneses
              Reporter:
              duarte.meneses Duarte Meneses
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: