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

Do not show a deprecation warning if cross-project duplication is overridden and disabled at project level

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Duplications, Scanner
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      Cross-project duplication detection is a deprecated feature. Hence, when it is used, we show a warning in the scanner logs, as well as on the project overview:

      2020.04.09 11:27:09 WARN  ce[AXFesZCYLxAOY0gNscTA][o.s.c.t.p.d.IntegrateCrossProjectDuplications] This analysis uses the deprecated cross-project duplication feature.
      2020.04.09 11:27:09 INFO  ce[AXFesZCYLxAOY0gNscTA][o.s.c.t.s.ComputationStepExecutor] Compute cross project duplications | status=SUCCESS | time=135ms
      

      This can be activated at the global level, which will enable it for all projects. However, we can override this per project. When cross-project duplication is activated at global level, but deactivated at project level, SonarQube still issues a depreciation warning for the analyzed project. This is incorrect, as the duplication is indeed not being computed for this project. We should not show these warnings in these cases.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              wouter.admiraal Wouter Admiraal
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: