Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  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

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

To run the analysis without pushing the results to the database, set the 'sonar.dryRun' to 'true'. Then, the analysis will be run locally.

To get a local report:

  • To generate an HTML report, set the property 'sonar.issuesReport.html.enable' to 'true'
  • To set the localtion 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 on in the console, set the 'sonar.issuesReport.console.enable' 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.

...