SonarQube Plugins
  1. SonarQube Plugins
  2. SONARPLUGINS-3097

Some SCM do not report blame on last empty line

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: SCM-ACTIVITY-1.5.1
    • Fix Version/s: SCM-ACTIVITY-1.6
    • Component/s: SCM Activity
    • Labels:
      None
    • Number of attachments :
      0

      Description

      With some SCM (at least Git) if the last line is an empty line it is not included in the blame. As a result the metrics are not populated for this line and it leads to SONAR-4171.

        Issue Links

          Activity

          Hide
          Julien HENRY added a comment -

          When we detect that the file has one more line than the blame information then the last blame line is duplicated to populate metrics

          Show
          Julien HENRY added a comment - When we detect that the file has one more line than the blame information then the last blame line is duplicated to populate metrics
          Hide
          Fabrice Bellingard added a comment -

          Tested

          Show
          Fabrice Bellingard added a comment - Tested
          Hide
          Freddy Mallet added a comment -

          Ping -> candidate to be closed !

          Show
          Freddy Mallet added a comment - Ping -> candidate to be closed !
          Hide
          Julien HENRY added a comment -

          No IT

          Show
          Julien HENRY added a comment - No IT

            People

            • Assignee:
              Julien HENRY
              Reporter:
              Julien HENRY
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: