Full documentation for SonarQube has moved to a new location: http://docs.sonarqube.org/display/SONAR

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{iframe:src=http://updateredirect.sonarsource.orgcom/plugins/flex.html|width=700|height=250310|frameborder=0}
YourDocumentation browserhas doesbeen notmoved support iframes.
{iframe}
Tip
titleLive example

If you want to see a live example of the capabilities of the Flex plugin, you can have a look at the analysis of the AS3 Core Lib project on Nemo.

Description / Features

The plugin enables analysis of ActionScript projects within SonarQube.

...

Usage

Run an Analysis with the SonarQube Runner (Recommended method)

To run an analysis of your Flex project, use the SonarQube Runner.

A sample project is available on github that can be browsed or downloaded: /projects/languages/flex/flex-sonar-runner.

Run an Analysis with the other Analyzers

Maven and Ant can also be used to launch analysis on Flex projects.

Code Coverage

To display code coverage data:

  1. Prior to the SonarQube analysis execute your unit tests and generate the Cobertura report.
  2. Import this report while running the SonarQube analysis by setting the sonar.flex.cobertura.reportPath property to the path to the Cobertura XML report. The path may be absolute or relative to the project base directory.

A sample project is available on github that can be browsed or downloaded/projects/languages/flex/flex-sonar-runner-coverage.

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 Flex Toolkit.

Release Notes

Version 2.0

It is no longer possible to:

  • let SonarQube drive the execution of unit tests
  • import unit test execution reports

 

to [http://redirect.sonarsource.com/plugins/flex.html].
{iframe}