Description / Features
The plugin enables local analysis.
It is compatible with all the different languages.
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 with the Sonar Runner (Recommended Way)
To launch a Sonar analysis of your JavaScript project, use the Sonar Runner.
A sample project is available on GitHub that can be browsed or downloaded: /projects/languages/javascript/javascript-sonar-runner.
Run a Sonar Analysis with the other Analyzers
Maven and Ant can also be used to launch analysis on JavaScript projects.
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
| Release 0.3 (1 issues) | |||
|---|---|---|---|
| Type | Key | Summary | Priority |
|
|
SONARPLUGINS-1006 | Migrate JavaScript plugin from code.google.com to Codehaus |
|

