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

Global ncloc for telemetry should be sum of ncloc of largest long-lived branch

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.2
    • Component/s: Telemetry
    • Labels:
      None

      Description

      The GitFlow Pattern doesn't really use the master branch. Currently the total Lines of Code calculation of projects using the pattern is 0. Instead, it should be the sum of ncloc from the largest long-lived branch.

      For example:

      • If Main Branch = 0 LOCs (provisioned but never analyzed) and the "largest long-lived branch" is 120 LOCs, I'm expecting to consider the value 120.
      • If Main Branch = 100 LOCs and the "largest long-lived branch" is 120 LOCs, I'm expecting to consider the value 120.
      • If Main Branch = 100 LOCs and the "largest long-lived branch" is 80 LOCs, I'm expecting to consider the value 100.

      The number of Lines of Code exposed by the application should remain consistent, in particular in:

      • telemetry data
      • the system info page
      • system & support info files

        Attachments

          Activity

            People

            • Assignee:
              teryk.bellahsene Teryk Bellahsene (Inactive)
              Reporter:
              ann.campbell.2 Ann Campbell
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: