...
The plugin enables analysis of ActionScript projects within Sonar.
It is compatible with the Issues Report plugin to run pre-commit local analysis.
Installation
- Install the Flex plugin through the Update Center or download it into the SONAR_HOME/extensions/plugins directory
- Restart the Sonar server
...
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).
Metrics
See Metrics documentation page.
...
To navigate the AST, download the SSLR Flex Toolkit.
Troubleshooting
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:
| Code Block |
|---|
<!-- this crashes FlexPMD -->
<fx:Metadata>
<![CDATA[[HostComponent("spark.components.ToggleButton")]]]>
</fx:Metadata>
<!-- this crashes FlexPMD as well (note the space between the 2 opening brackets -->
<fx:Metadata>
<![CDATA[ [HostComponent("spark.components.ToggleButton")]]]>
</fx:Metadata>
<!-- this does not crash -->
<!--fx:Metadata>
<![CDATA[
[HostComponent("spark.components.ToggleButton")]
]]>
</fx:Metadata--> |
- in AS files:
| Code Block |
|---|
private function foo(partName:String):void
{
switch (partName)
{
/*comment*/
case "test":
trace("foo");
break;
case "foo":
trace("foo");
break;
case "bar":
trace("foo");
break;
}
} |
Change Log
| JIRA Issues | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
...
| JIRA Issues | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
...
| JIRA Issues | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
...
| JIRA Issues | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
...
| JIRA Issues | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
...
| JIRA Issues | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
...
| JIRA Issues | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
...
| JIRA Issues | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
...
| JIRA Issues | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|

