Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-16688

Duplications in different files shown only in one file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • dry-plugin
    • None
    • Jenkins 1.498
      Duplicate Code Scanner Plug-in 2.33

      If CPD reports same duplication in different files Jenkins shows this duplication only in one of this files. This behavior confuses our developers so much that they prefer not to use this, nevertheless great, plugin any longer.

      Please have a look at attachment.
      For file B.cpp "Summary" in B.jpg shows a total of 3 duplications but in "Details" there is only one. For users it is hard to find the two other duplications if the project consists of many source files.

      I assume this behavior has something to to with JENKINS-12738 and JENKINS-11376.
      Therefore I´m not sure if this issue is a "Bug" or an "Improvement"

      Is it possible to display same duplicates in report of all related files?
      Or at least have a check-box which toggles behavior introduced in version 2.31?

        1. A.cpp
          0.2 kB
        2. A.jpg
          A.jpg
          30 kB
        3. B.cpp
          0.2 kB
        4. B.jpg
          B.jpg
          29 kB
        5. cpd.xml
          0.8 kB
        6. dry1.png
          dry1.png
          21 kB

            drulli Ulli Hafner
            hjhafner Hans-Juergen Hafner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: