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

Take custom duplications into account when computing duplication measures

    XMLWordPrintable

    Details

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

      Description

      There is two ways for a language plugin to report duplications:

      • implement CpdMapping extension point to tokenize files and let the platform compute duplication using its own algorithm
      • directly call SensorContext::newDuplication() to register duplicated blocks

      The issue is that the 3 duplication measures (duplicated_files, duplicated_blocks, duplicated_lines) are computed by considering only "core" duplications (ie the one computed by the platform).

      We should consider moving computation of those metrics to the compute engine on server side and take into account all duplications.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              julien.henry Julien Henry
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: