Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 62 Next »

Live example

Icon

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.

Description / Features

The plugin enables analysis of JavaScript projects within SonarQubeTM.

It is compatible with the Issues Report plugin to run pre-commit local analysis.

Installation

  1. Install the plugin through the Update Center or download it into the SONARQUBE_HOME/extensions/plugins directory
  2. Restart the SonarQubeTM server

Usage

Run a SonarQubeTM Analysis with the Sonar Runner (Recommended Way)

To run an 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 SonarQubeTM 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 SonarQubeTM.

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.

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

Loading

Version 1.4 (unreleased) (${entries.size()} issues)

Type Key Summary Priority Status

 

Loading

Version 1.3 (${entries.size()} issues)

Type Key Summary Priority

 

Loading

Version 1.2 (${entries.size()} issues)

Type Key Summary Priority

 

Loading

Version 1.1 (${entries.size()} issues)

Type Key Summary Priority

 

Loading

Version 1.0 (${entries.size()} issues)

Type Key Summary Priority

 

Loading

Version 0.4 (${entries.size()} issues)

Type Key Summary Priority

 

Loading

Version 0.3 (${entries.size()} issues)

Type Key Summary Priority

  • No labels