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


Although this extension is officially supported by CAST, please note that it has been developed within the technical constraints of the CAST Universal Analyzer technology and to some extent adapted to meet specific customer needs. Therefore the extension may not address all of the coding techniques and patterns that exist for the target technology and may not produce the same level of analysis and precision regarding e.g. quality measurement and/or function point counts that are typically produced by other CAST AIP analyzers.

What's new? 

Flex 1.0

Flex 1.0.1

Flex 1.0.2

  • Improvement for pre-processor log file: In all previous releases, manual and automated pre-processor operations generate a report log file called "Flex_pp_report.txt" under \Configuration\Languages\Flex\prepro. This file is overwritten each time the pre-processor is launched, therefore it is not possible to retain a history of the various pre-processing operations carried out for different analyses. To improve this behavior, we have introduced new variable in the "launch.bat" file to define the number of report log files to be retained. The pre-processor report log file will now have the date and time added as a suffix to the file's name (e.g "Flex_pp_report_02-23-2015_ 651.txt") to avoid the file being overwritten.
    • The value "last_number_of_reports_to_keep" is declared in the "launch.bat" file
    • The default value of "last_number_of_reports_to_keep" declared in the "launch.bat" file is set to 10, i.e. only 10 preprocessing report files will be retained. On generation of  eleventh file, the oldest report log file will be deleted and a new file will be created in its place keeping the total count to 10 log files.
      • the default value can be changed as and when required
      • if the value is set to "-1", all the report log files will be retained
      • If value is set to "0", no new report file will be created and all other existing files will also be deleted
    • The behavior is the same for manual and automated pre-processing
  • Bug fixing - see Flex 1.0 - Bug Fix List

Flex 1.0.3

Log improvements for the Flex Preprocessor and FlexPMD

  • Improvements have been introduced with regard to the log files that are produced during an analysis of Flex code with the extension. Specifically, the logs produced by the Flex Preprocessor and FlexPMD have been improved in this release of the extension. You can find out more information in Flex 1.0 - Analysis Configuration.

Flex Preprocessor

  • The ability to manually launch the Flex preprocessor has been removed from the extension. The preprocessor is always launched automatically.

Changes to results after upgrading

  • When comparing results of analyses run with previous releases of the Flex extension, results sometimes showed added and deleted objects even though the source code was identical. This bug (FLEX-62) was caused by the way in which the extension named mx:script objects. The naming algorithm was based on source code line numbers, therefore if blank lines were added above the mx:script code block between analyses (for all intents and purposes the code was still identical), the extension would generate new names for the mx:script objects, resulting in added and deleted objects in the results. This bug has now been fixed and after installing this release of the extension and the generation of a post upgrade snapshot on the same source code, results may differ.

Bug fixing

Flex 1.0.4

Bug fixing

What is supported with regard to Function Points and Quality/Sizing?

FeatureSupported?Comments

Function Points
(transactions)

(error)Indicates whether the extension provides support for OMG Function Point counting and Transaction Risk Index.
Quality and Sizing(tick)Indicates whether the extension can measure size and whether a minimum set of Quality Rules exist.

Prerequisites to using the extension

Using the extension with CAST AIP ≥ 8.2.1

No Java JRE/JAVA_HOME prerequisites are necessary: the Flex extension will use the JRE provided with CAST AIP and located in the installation folder.

Using the extension with CAST AIP ≤ 8.2.1

PrerequisitesDescription
Java JREThe extension requires a Java JRE to be installed on the machine: only Java JRE 1.7 is currently supported. This is used by FlexPMD. See Flex 1.0 - Analysis Configuration.
JAVA_HOME environment variable

The extension requires that a JAVA_HOME system environment variable is also present on the machine, pointing to the Java JRE installation folder:

CAST AIP compatibility

CAST recommends that you always install the latest release of an extension.
 Extension VersionAIP 7.3.xAIP 8.0.xAIP 8.1.xAIP 8.2.x
1.0.1 or higher(tick)(tick)(tick)(tick)
1.0

7.3.0 - 7.3.2

(error)(error)(error)

Supported DBMS servers

DBMSSupported
CSS2(tick)
Oracle(tick)
Microsoft SQL Server(error)

Supported Versions of Flex

This version of the extension provides partial support for the following Flex versions:

  • Flex 3.x

Licence Agreement

Metrics/Quality Rule data are generated using an external tool provided by Adobe (FlexPMD). More information about this tool is available here:

The licence agreement for Adobe FlexPMD tool is available here:

and is detailed below.

FlexPMD License: BSD

Copyright (c) 2009, Adobe Systems, Incorporated. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of the Adobe Systems, Incorporated. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Documentation of Flex Quality Rules and Metrics

Documentation of all CAST Metrics and Quality Rules specific to the extension is delivered via a compiled HTML Help file (CHM). Please ensure that once the CHM has been downloaded you right-click on the CHM file in Windows Explorer and choose Properties > Unblock. This will ensure that the CHM is readable on your own PC:

Version
CHM
1.0.xmetrics_FLEX_1-0.chm
  • No labels