Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{iframe:src=http://update.sonarsource.org/plugins/issuesreport.html|width=700|height=250|frameborder=0}
Your browser does not 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 his/her 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 supports all languages.

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

...

Info
titleSonar Eclipse Plugin
Note that to perform local analyses, a Sonar Eclipse plugin is also available. It currently supports Java, C/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 Note that you do not need to install any local Sonar server and database.

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

To get a local report:

  • To generate an HTML report, set the property 'sonar.issuesReport.html.enable' to 'true'
  • To set the location of this report, set the property 'sonar.issuesReport.html.location' (default is '.sonar/issues-report.html' for the Sonar Runner and Ant, 'target/sonar/issues-report.html ' for Maven)
  • To display a short report in the console, set the 'sonar.issuesReport.console.enable' to 'true':


...

 

Code Block
languagenone
sonar-runner -Dsonar.dryRun=true -Dsonar.issuesReport.html.enable=true -Dsonar.inclusions=src/myCobolProgram.cbl
Note
titleMulti-module project compatibility
Note that the Issues Report plugin is not yet compatible with multi-module projects. See https://jira.codehaus.org/browse/SONARPLUGINS-2805.

 

Change Log

JIRA Issues
anonymoustrue
titleRelease Version 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