Your browser does not support iframes.
Not yet released.
Description / Features
The 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 list violations that can be filtered by new violations only, severity, etc. See the following example.
It is compatible with any language.
Installation
- Install the Issues Report plugin through the Update Center or download it into the SONAR_HOME/extensions/plugins directory
- Restart the Sonar server
Usage
Run a Sonar analysis on your project with your usual analyzer (Sonar Runner, Maven 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
- To display a short report on the console, set the 'sonar.issuesReport.console.enable' to 'true'
- Utilisation de la nouvelle propriété Sonar -Dsonar.inclusions=**/monFichier.toto pour limiter les fichiers à analyser
- Support du tracking des violations
To generate
Unit Tests and Code Coverage Reports
Reports from JsTestDriver can be imported into Sonar.
Sample projects are available on github that can be browsed or downloaded:
- JavaScript project analyzed with the Sonar Runner reusing unit tests and code coverage reports generated with JsTestDriver: /projects/languages/javascript/javascript-sonar-runner-JsTestDriver
- JavaScript project analyzed with Maven running unit tests and code coverage reports with JsTestDriver (integrated through jstd-maven-plugin): /projects/languages/javascript/javascript-maven-JsTestDriver
Metrics
See Metrics documentation page.
Extending Coding Rules using XPath
New coding rules can be added using XPath. See the related documentation.
To navigate the AST, download the SSLR JavaScript Toolkit.
Change Log