Description / Features
The plugin enables analysis of ActionScript projects within Sonar.
- Install the Flex plugin through the Update Center or download it into the SONAR_HOME/extensions/plugins directory
- Restart the Sonar server
Run a Sonar Analysis with the Sonar Runner (Recommended Way)
To launch a Sonar analysis of your Flex project, use the Sonar Runner.
Run a Sonar Analysis with the other Analyzers
Unit Tests an Code Coverage Reports
If you want to have unit test results in your Sonar dashboard, execute your unit tests before running the Sonar analysis and use the "sonar.dynamicAnalysis=reuseReports" property along with the "sonar.surefire.reportsPath" one to specify where Sonar should retrieve the XML reports.
You can provide the path to the code coverage report (in cobertura xml format) using the "sonar.cobertura.reportPath" property (the value must point to the file location, not its folder).
Extending Coding Rules using XPath
New coding rules can be added using XPath. See the related documentation.
FlexPMD engine - that is embedded in the Flex plugin, suffers from some bugs which can break Sonar analyses. Here are some of them you might encounter if FlexPMD rules are activated in the Flex quality profile that you are using:
- "fb:purpose="styling" attribute in MXML files causes OutOfMemory errors (see SONARPLUGINS-2400).
- Removing it fixes the issue.
- the following code snippet make FlexPMD engine crash:
- in MXML files:
- in AS files:
Release 1.2 (29 issues)
Release 1.1 (26 issues)
Release 1.0.1 (2 issues)
|SONARPLUGINS-1732||Downgrade the requirement from JDK 1.6 to 1.5|
|SONARPLUGINS-1597||Unable to use Sonar Flex Plugin with Java 7|
Release 1.0 (12 issues)
Release 0.4 (3 issues)
|SONARPLUGINS-753||Migrate to new rules api|
|SONARPLUGINS-540||Ability to reuse an existing coverage reports for Flex projects|
|SONARPLUGINS-310||Should use Stax instead of XPath to process the FlexMetrics xml|
Release 0.3.1 (1 issues)
Release 0.3 (8 issues)
Release 0.2 (1 issues)