Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{iframe:src=http://updateredirect.sonarsource.orgcom/plugins/issuesreport.html|width=700|height=250300|frameborder=0}
YourDocumentation browserhas doesbeen notmoved support iframes.
{iframe}
Note

Not released yet.

Description / Features

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

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

It support all languages.

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

Image Removed

Info
titleSonar Eclipse Plugin
Note that to perform local analyses, a Sonar Eclipse plugin is also available. It currently supports Java, C++ and Python.

Installation

  1. Install the Issues Report plugin through the Update Center or download it into the SONAR_HOME/extensions/plugins directory
  2. Restart the Sonar server

Usage

Simply run a Sonar analysis on your project with your favorite analyzer (Sonar RunnerMaven or Ant).

To run the analysis locally (without making the results available on the Sonar server), set the 'sonar.dryRun' property to 'true'.

To get a local report:

...

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, Sonar will only check the 'myProgram.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 Sonar server web interface. An HTML report will be generated to display the list of violations on the 'myCobolProgram.cbl' file:

 

Code Block
languagenone
sonar-runner -Dsonar.dryRun=true -Dsonar.issuesReport.html.enable=true -Dsonar.inclusions=src/myCobolProgram.cbl

 

Change Log

JIRA Issues
anonymoustrue
titleRelease 1.0
height60
renderModestatic
width900
columnstype;key;summary;priority
urlhttp://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=19094&pid=11911&sorter/field=priority&sorter/order=DESC&tempMax=1000

to [http://redirect.sonarsource.com/plugins/issuesreport.html].
{iframe}