{iframe:src=http://update.sonarsource.org/plugins/javascript.html|width=700|height=250|frameborder=0}
Your browser does not support iframes.
{iframe} |
If you want to see a live example of the capabilities of the JavaScript plugin, you can have a look at the analysis of the jQuery project on Nemo. |
The plugin enables analysis of JavaScript projects within Sonar.
It is compatible with the Issues Report plugin to run pre-commit local analysis.
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.
Maven and Ant can also be used to launch analysis on JavaScript projects.
Reports from JsTestDriver can be imported into Sonar.
A sample project is available on Github (can be browsed or downloaded): this is a JavaScript project analyzed with the Sonar Runner reusing unit tests and code coverage reports generated with JsTestDriver. It is located in /projects/languages/javascript/javascript-sonar-runner-JsTestDriver.
See Metrics documentation page.
New coding rules can be added using XPath. See the related documentation.
To navigate the AST, download the SSLR JavaScript Toolkit.