| Table of Contents |
Description / Features
The plugin enables analysis of JavaScript projects within Sonar.
Installation
- Install the JavaScript plugin through the Update Center or download it into the SONAR_HOME/extensions/plugins directory
- Restart the Sonar server
Usage
You can analyze your project with the different analyzers. Here are properties files examples for the Sonar Runner and Maven.
A list of sample projects is available on github that can be browsed or downloaded:
- JavaScript project analyzed with the Sonar Runner: /projects/languages/javascript/javascript-sonar-runner.
- 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 reusing unit tests and code coverage reports generated with JsTestDriver (integrated through jstd-maven-plugin): /projects/languages/javascript/javascript-maven-JsTestDriver
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.
Changelog
| Release 0.4 (5 issues) | |||||
|---|---|---|---|---|---|
| Type | Key | Summary | Priority | Status | Resolution |
|
|
SONARPLUGINS-1625 | NullPointer on loading test file |
|
|
Fixed |
|
|
SONARPLUGINS-1587 | Support of JsTestDriver unit test execution and code coverage reports should be added |
|
|
Fixed |
|
|
SONARPLUGINS-1319 | Doesn't work with SCM Plugin |
|
|
Fixed |
|
|
SONARPLUGINS-1295 | Cannot specify sonar.javascript.lslint.predef in POM |
|
|
Fixed |
|
|
SONARPLUGINS-1139 | Cannot define multiple predefined variables |
|
|
Fixed |
| Release 0.3 (1 issues) | |||||
|---|---|---|---|---|---|
| Type | Key | Summary | Priority | Status | Resolution |
|
|
SONARPLUGINS-1006 | Migrate JavaScript plugin from code.google.com to Codehaus |
|
|
Fixed |
Roadmap Ideas
- Add support for Jasmine

