Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The plugin enables analysis of ActionScript projects within SonarSonarQubeTM.

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

Installation

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

Usage

Run a

...

SonarQubeTM Analysis with the Sonar Runner (Recommended Way)

To launch a Sonar run an analysis of your Flex project, use the Sonar Runner.

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

Run a

...

SonarQubeTM Analysis with the other Analyzers

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

Unit Tests an Code Coverage Reports

If you want to have display unit test results in your Sonar dashboardon dashboards, execute your unit tests before running the Sonar SonarQubeTM analysis and use set the ":

  • sonar.dynamicAnalysis

...

  • property to reuseReports
  • sonar.surefire.reportsPath

...

  • property to the path to the directory containing the XML reports
  • sonar.cobertura.reportPath

...

  • property

...

  • to the

...

  • path to the Cobertura XML report

Metrics

See Metrics documentation page.

...

FlexPMD engine - that is embedded in the Flex plugin, suffers from some bugs which can break Sonar the SonarQubeTM analyses. Here are some of them you might encounter if FlexPMD rules are activated in the Flex quality profile that you are using:

...