SonarQube Plugins
  1. SonarQube Plugins
  2. SONARPLUGINS-456

In the pdf report, dadar diagram is incorrect for portability

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: PDF-REPORT-1.1
    • Fix Version/s: PDF-REPORT-1.2
    • Component/s: PDF Report
    • Labels:
      None
    • Number of attachments :
      2

      Description

      When run against sonar-2.0.1, pdf-report 1.1 plugin shows incorrect value for Portability category in the radar diagram. The attached screenshot illustrates this.

      The table (Violations by category) contains correct data.

      This is possibly due to the corner case where the violation is zero (0) and hence the % compliance is 100%. For other categories the diagram is correct.

        Activity

        Hide
        Raghuram added a comment -

        Screenshot of the same data in sonar web UI, which shows the correct radar diagram.

        Show
        Raghuram added a comment - Screenshot of the same data in sonar web UI, which shows the correct radar diagram.
        Hide
        Antonio Manuel Muñiz Martín added a comment -

        Hello Raghuram,

        I'm trying to reproduce your issue. Thanks for your feedback.

        Antonio.

        Show
        Antonio Manuel Muñiz Martín added a comment - Hello Raghuram, I'm trying to reproduce your issue. Thanks for your feedback. Antonio.
        Hide
        Antonio Manuel Muñiz Martín added a comment -

        When there are no violations on one category Sonar WS API does not include the node for that category in XML response. So PDF Plugin get a 0% RCI for this category.

        I have been modified this behaviour in the plugin side. When one category is not included in the response, RCI 100% is assumed.

        Show
        Antonio Manuel Muñiz Martín added a comment - When there are no violations on one category Sonar WS API does not include the node for that category in XML response. So PDF Plugin get a 0% RCI for this category. I have been modified this behaviour in the plugin side. When one category is not included in the response, RCI 100% is assumed.

          People

          • Assignee:
            Antonio Manuel Muñiz Martín
            Reporter:
            Raghuram
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: