Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 37 Next »

Description / Features

The Issues Report plugin provides the ability to run local SonarQubeTM analyses. The main use case is for a developer to check his/her code before pushing it to the SCM.

It generates an HTML report that displays a list of issues that can be filtered by severity, new issues only, etc.

It supports all languages.

Here's an example of HTML report that you can download:

Sonar Eclipse Plugin

Icon
Note that to perform local analyses, a SonarQubeTM Eclipse plugin is also available. It currently supports Java, C/C++ and Python.

Installation

  1. Install the plugin through the Update Center or download it into the SONARQUBE_HOME/extensions/plugins directory
  2. Restart the SonarQubeTM server

 Usage

Note that you do not need to install any local SonarQubeTM server and database.

Just run a SonarQubeTM analysis on your project with your favorite analyzer (SonarQubeTM RunnerMaven or Ant). To run the analysis locally (without making the results available on the remote SonarQubeTM server), just set the sonar.dryRun property to true and make sure that the sonar.host.url is properly set to match your remote SonarQubeTM server.

To get a local report:

  • To generate an HTML report, set the sonar.issuesReport.html.enable property to true
  • To set the location of the HTML report, set the sonar.issuesReport.html.location property: absolute or relative path to the SonarQubeTM working directory; default is .sonar/issues-report.html for the SonarQubeTM Runner and Ant, target/sonar/issues-report.html for Maven.
  • To display a short report in the console, set the sonar.issuesReport.console.enable property to true:


A useful feature is to limit the scope of the analysis to the files that have been created or modified. To do so, the sonar.inclusions property can be set.

In the following example, SonarQubeTM will only check the myCobolProgram.cbl Cobol program and ignore the other programs of the application. The analysis will be local: nothing will be pushed to the database, thus the results will not be available through the SonarQubeTM server web interface. An HTML report will be generated to display the list of issues on the myCobolProgram.cbl file:

 

Multi-module project compatibility

Icon
Note that the Issues Report plugin is not yet compatible with multi-module projects. See https://jira.codehaus.org/browse/SONARPLUGINS-2805.

 

Change Log

Loading

Version 1.0 (4 issues)

  • No labels