SonarQube Plugins
  1. SonarQube Plugins
  2. SONARPLUGINS-1676

Plugin don't collect neither the most violated rules nor Violation Details

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PDF-REPORT-1.3
    • Component/s: PDF Report
    • Environment:
      Windows 7 x64
      Dotnet 3.5
      Maven 3.0.4
      Sonar 2.13.1
    • Number of attachments :
      1

      Description

      I generate the report skipping Gendarme execution (because it fails) but I run FxCop, StyleCop, PartCover and Gallio. The report shows "Most violated files", "Most complex files" and "Most duplicated files" but "Most violated rules" is empty. The section "Violation details" is empty too.

      I can see this information in Sonar... I execute the command mvn clean install sonar:sonar org.codehaus.sonar-plugins.pdf-report:maven-pdfreport-plugin:1.2.1:generate -Dreport.type=workbook

        Activity

        Hide
        Antonio Manuel Muñiz Martín added a comment -

        Hello,

        This issue is related to PDF Report, the .NET plugin has nothing to do here.

        In fact, PDF Report has a little incompatibility with Sonar 2.13, since the metric "violations" is not available through WS API.
        A modification is required in roder to retrieve info_violations, minor_violations, ..., blocker_violations and compute the aggregation at the plugin side.

        Show
        Antonio Manuel Muñiz Martín added a comment - Hello, This issue is related to PDF Report, the .NET plugin has nothing to do here. In fact, PDF Report has a little incompatibility with Sonar 2.13, since the metric "violations" is not available through WS API. A modification is required in roder to retrieve info_violations, minor_violations, ..., blocker_violations and compute the aggregation at the plugin side.
        Hide
        Juan Cuello added a comment -

        Modifications in Sonar or PDF Report? No problem to use a minor version of Sonar. Do you know which version of Sonar PDF report runs right?

        Show
        Juan Cuello added a comment - Modifications in Sonar or PDF Report? No problem to use a minor version of Sonar. Do you know which version of Sonar PDF report runs right?
        Hide
        Antonio Manuel Muñiz Martín added a comment -

        Try Sonar 2.12, it should work fine.

        Show
        Antonio Manuel Muñiz Martín added a comment - Try Sonar 2.12, it should work fine.
        Hide
        Juan Cuello added a comment -

        Thank you

        Show
        Juan Cuello added a comment - Thank you
        Hide
        Antonio Manuel Muñiz Martín added a comment -

        This issue must not be closed, it's a bug related to the interaction of PDF Plugin and Sonar 2.13 API, so it needs to be resolved.

        Show
        Antonio Manuel Muñiz Martín added a comment - This issue must not be closed, it's a bug related to the interaction of PDF Plugin and Sonar 2.13 API, so it needs to be resolved.
        Hide
        Juan Cuello added a comment -

        With Sonar 2.12 I get this exception with workbook style:

        [ERROR] Failed to execute goal org.codehaus.sonar-plugins.pdf-report:maven-pdfreport-plugin:1.2.1:generate
        (default-cli) on project gIMM: Execution default-cli of goal org.codehaus.sonar-plugins.pdf-report:maven-pdfreport-plugin:1.2.1:generate failed: Index: -1, Size: 0 -> [Help 1]

        The plugin works in Executive style

        Show
        Juan Cuello added a comment - With Sonar 2.12 I get this exception with workbook style: [ERROR] Failed to execute goal org.codehaus.sonar-plugins.pdf-report:maven-pdfreport-plugin:1.2.1:generate (default-cli) on project gIMM: Execution default-cli of goal org.codehaus.sonar-plugins.pdf-report:maven-pdfreport-plugin:1.2.1:generate failed: Index: -1, Size: 0 -> [Help 1] The plugin works in Executive style
        Hide
        Antonio Manuel Muñiz Martín added a comment -

        Hi Juan,

        Could you create another Jira ticket for this issue and attach full stack trace in debug mode?
        It's not related to the current issue.

        Thanks.

        Show
        Antonio Manuel Muñiz Martín added a comment - Hi Juan, Could you create another Jira ticket for this issue and attach full stack trace in debug mode? It's not related to the current issue. Thanks.
        Hide
        Juan Cuello added a comment -

        OK. ASAP

        Show
        Juan Cuello added a comment - OK. ASAP
        Hide
        Antonio Manuel Muñiz Martín added a comment -

        Related to SONARPLUGINS-1679 which is resolved.

        Closing issue.

        Show
        Antonio Manuel Muñiz Martín added a comment - Related to SONARPLUGINS-1679 which is resolved. Closing issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: