Description / Features
The plugin enables analysis of ActionScript projects within Sonar.
Installation
- Install the Flex plugin through the Update Center
- Restart Sonar
Usage
You don't need to do anything at this point if your project can be built with Maven and FlexMojos, but if not then you should create a pom.xml at the root of the project:
pom.xml- Launch a quality analysis on a flex project: "mvn sonar:sonar -Pflex"
Note 1: If you want to have unit test results in your Sonar dashboard, the best option is execute your unit tests before running the Sonar analysis and to use "sonar.dynamicAnalysis=reuseReports" along with "sonar.surefire.reportsPath" property to specify where Sonar should find the XML result files.
Note 2: Since version 0.4 you can provide path to coverage report (in cobertura xml format) using property "sonar.cobertura.reportPath".
Extending Coding Rules using XPath
New coding rules can be added using XPath. See the related documentation.
To navigate the AST, download the Flex SSDK.
Changelog
| Release 1.0.1 (2 issues) | |||||
|---|---|---|---|---|---|
| Type | Key | Summary | Priority | Status | Resolution |
|
|
SONARPLUGINS-1732 | Downgrade the requirement from JDK 1.6 to 1.5 |
|
|
Fixed |
|
|
SONARPLUGINS-1597 | Unable to use Sonar Flex Plugin with Java 7 |
|
|
Fixed |
| Release 0.4 (3 issues) | |||||
|---|---|---|---|---|---|
| Type | Key | Summary | Priority | Status | Resolution |
|
|
SONARPLUGINS-753 | Migrate to new rules api |
|
|
Fixed |
|
|
SONARPLUGINS-540 | Ability to reuse an existing coverage reports for Flex projects |
|
|
Fixed |
|
|
SONARPLUGINS-310 | Should use Stax instead of XPath to process the FlexMetrics xml |
|
|
Fixed |
| Release 0.3.1 (1 issues) | |||||
|---|---|---|---|---|---|
| Type | Key | Summary | Priority | Status | Resolution |
|
|
SONARPLUGINS-741 | Use surefire parser provided by sonar-surefire-plugin |
|
|
Fixed |
| Release 0.3 (8 issues) | |||||
|---|---|---|---|---|---|
| Type | Key | Summary | Priority | Status | Resolution |
|
|
SONARPLUGINS-669 | Migrate to sonar-dev-maven-plugin from sonar-dev-mojo for integration tests |
|
|
Fixed |
|
|
SONARPLUGINS-666 | Test files incorrectly handled by FlexSourceImporter |
|
|
Fixed |
|
|
SONARPLUGINS-623 | Update the plugin to FlexPMD / FlexCPD / FlexMetrics 1.2 |
|
|
Fixed |
|
|
SONARPLUGINS-496 | Looks like FlexMetrics does not count properly static methods |
|
|
Fixed |
|
|
SONARPLUGINS-490 | Add the ability to override Duplications parameters |
|
|
Fixed |
|
|
SONARPLUGINS-452 | Upgrade to FlexCPD 1.1 |
|
|
Fixed |
|
|
SONARPLUGINS-425 | minimumTokenCount parameter does not seem to be taken into account |
|
|
Fixed |
|
|
SONARPLUGINS-312 | Integrate FlexUnit |
|
|
Fixed |
| Release 0.2 (1 issues) | |||||
|---|---|---|---|---|---|
| Type | Key | Summary | Priority | Status | Resolution |
|
|
SONARPLUGINS-544 | Make the plugin compatible with Sonar 2.2 |
|
|
Fixed |
| Release 0.1 (11 issues) | |||||
|---|---|---|---|---|---|
| Type | Key | Summary | Priority | Status | Resolution |
|
|
SONARPLUGINS-447 | Add the possibility to chosse files extensions to analyze |
|
|
Fixed |
|
|
SONARPLUGINS-435 | Nullpointer in FlexCpdMavenSensor.java:152 |
|
|
Fixed |
|
|
SONARPLUGINS-429 | Plugin Fails after running cpd |
|
|
Fixed |
|
|
SONARPLUGINS-426 | Issue when package names contain AS |
|
|
Fixed |
|
|
SONARPLUGINS-382 | The plugin crashes on multimodule project that do not have source code in the root module |
|
|
Fixed |
|
|
SONARPLUGINS-327 | Integrate CPD to report on duplications |
|
|
Fixed |
|
|
SONARPLUGINS-318 | A class that has no package does not get reported in Sonar |
|
|
Fixed |
|
|
SONARPLUGINS-311 | Integrate FlexPMD |
|
|
Fixed |
|
|
SONARPLUGINS-309 | Comments are not calculated |
|
|
Fixed |
|
|
SONARPLUGINS-308 | Integrate FlexMetrics |
|
|
Fixed |
|
|
SONARPLUGINS-307 | Create a plugin to analyze ActionScript |
|
|
Fixed |

