Page tree
Skip to end of metadata
Go to start of metadata

Summary: This page explains how to prepare and configure the analysis of your Flex source code.

Source code

Source code requirements

  • Only files with following extensions will be analyzed * .as; *.mxml 

Source code preprocessing

Flex source code needs to be preprocessed so that CAST can understand it and analyze it correctly. In previous releases of the extension, this preprocessing was a manual action that needed to be completed before the code was analyzed. However, in this release and all future releases, the code preprocessing is actioned automatically when an analysis is launched or a snapshot is generated (the code is preprocessed before the analysis starts). In other words you only need to package, deliver and launch an analysis/generate a snapshot for the preprocessing to be completed.

Note that the CAST Management Studio will use the LISA folder (see CAST Management Studio help for more information about this folder).

Quality Rule computation and FlexPMD

  • The Quality Rules triggered in the Flex extension are computed based on FlexPMD, which is a third party plugin delivered inside the extension
  • When using the extension with CAST AIP ≤ 8.2.1, this third party plugin requires the JAVA_HOME environment variable correctly set to a Java JRE version 1.7.0 installed on the machine. See Prerequisites for more information.

Application Source code delivery and Snapshot generation 

When delivering your source code for analysis with CAST, you need to follow the same process as for technologies that are supported by CAST "out of the box". In other words:


Logging mechanism

Analysis log files

Analysis logs are stored in the default locations used by the CAST Management Studio.

Flex Preprocessor

Flex Preprocessor log files (the preprocessor is launched automatically during an analysis) are stored in the following locations:

CAST AIP releaseLocationLog file name
8.2.x

%PROGRAMDATA%\CAST\CAST\Extensions\<extension_name>\Configuration\Languages\Flex\prepro

Note that the above location is the default, however, if you have modified the CAST_PLUGINS_ROOT_PATH variable in the CastGlobalSettings.ini file, this location may be different.
com.castsoftware.flex.<extension_major_version.extension_minor_version.extension_maintenance_version>.prepro_<YYYYMMDDHHMMSS>.log
8.3.xDefault location is set to C:\castms\log\<unique_application_id>\, but this location can be configured at will in the CAST Management Studio "Preferences".

FlexPMD

FlexPMD log files (FlexPMD is launched automatically during an analysis) are stored in the following locations:

CAST AIP releaseLocationLog file name
8.2.x

%PROGRAMDATA%\CAST\CAST\Extensions\<extension_name>\Configuration\Languages\Flex\plugin

 
Note that the above location is the default, however, if you have modified the CAST_PLUGINS_ROOT_PATH variable in the CastGlobalSettings.ini file, this location may be different.
com.castsoftware.flex.<extension_major_version>.<extension_minor_version>.<extension_maintenance_version>.plugin_YYYYMMDD.log
8.3.xDefault location is set to C:\castms\log\<unique_application_id>\, but this location can be configured at will in the CAST Management Studio Preferences.

Errors & Warnings

The Flex configuration included in the extension uses external plugins. During the analysis, the Universal Analyzer or the plugin may throw errors or warnings. The table below list the most significant errors/warnings and lists a suggested remediation action:

ToolError or WarningAction
Flex PluginUA Plugin : No property (......) found in meta model for Flex...No action required. The analyzer is telling you that not all the properties are considered to be injected into the Analysis Service.
  • No labels