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

Moved File Detection should be used when calculating new lines

    XMLWordPrintable

    Details

    • Edition:
      Community
    • Production Notes:
      None

      Description

      We have an algorithm to detect files that have been moved or renamed. This allows us to keep track of changes in those files without considering that one file was deleted and the other file is all new.

      The matches are currently used when doing issue tracking and we should also use them when detecting new lines of code.

      So we have the following situations:

      • Detection of new lines in a moved file based on the New Code Period, with SCM: works fine, blame info will correctly reflect the file move
      • Detection of new line in a moved file based on the New Code Period, without SCM: doesn't work, generated modification dates based on our diff algorithm doesn't take into account moved file

        Attachments

          Activity

            People

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

              Dates

              Due:
              Created:
              Updated:
              Resolved: