Your browser does not support iframes.
Description / Features
The Issues Report plugin provides the ability to generate HTML report on issues.
The main use case is for developers to check the code they have added or changed before pushing it back to the SCM.
Here's an example of HTML report (you can download the full report here):
Issues can then be filtered by severity, new issues only, etc.
Sonar Eclipse Plugin
- Install the plugin through the Marketplace or download it into the SONARQUBE_HOME/extensions/plugins directory
- Restart the SonarQube server
As the main use case is for developers to check the code they have added or changed before pushing it back to the SCM, the Issues Report plugin is usually used in Preview mode. This is this usage that is detailed below.
Copy the analysis configuration file (sonar-project.properties, pom.xml, etc.) that is used to analyze the project on the remote server to your local machine. Make sure that the
sonar.sources property refers to the directory containing the source code on your local machine (or update it accordingly). The tree structure of the source code on your local machine must match the tree structure that has been remotely analyzed by SonarQube.
To get an HTML report, set the
sonar.issuesReport.html.enable property to
true. To define its location, set the
sonar.issuesReport.html.location property to an absolute or relative path to the destination for the HTML report. The default value is .sonar/issues-report.html for the SonarQube Runner and Ant, and target/sonar/issues-report.html for Maven.
To display a short report in the console, set the
sonar.issuesReport.console.enable property to
Finally, run a Preview analysis that generates an HTML report:
Another useful feature is to limit the scope of the analysis to the files that have been recently created or modified. To do so, the
sonar.inclusions property can be set. In the following example, the Preview analysis will only check the myCobolProgram.cbl Cobol program:
The Issues Report plugin is not yet compatible with multi-module projects. See https://jira.codehaus.org/browse/SONARPLUGINS-2805.