AIP Core provides a number of Technical Size metrics which are designed to measure the size of specific items such as code lines, comment lines or specific artifact types. These metrics are also used by other structural rules provided by CAST. Some Technical Size result data is provided in the Health Dashboard:
A list of available Technical Size metrics is shown below - where no information is provided in the Comment column this is simply because the metric is self-explanatory.
|19192||Number of ABAP Transactions||-|
|19191||Number of ABAP User-Exits||-|
|10152||Number of Artifacts||-|
|10155||Number of Classes||-|
|10151||Number of Code Lines|
Number of Code Lines (LOC) is measured as the number of source code lines excluding comments and blank/empty lines. The algorithm used by CAST is as follows for all object types (For container type objects, the algorithm includes lines of code of children objects) identified by CAST:
More generally, there are two contexts for LOC measurement.
It is used as a basis for several major features:
|10107||Number of Comment Lines|
Number of Comment Lines is measured as the number of all comment lines including mono-line and multi-line comments.
|10109||Number of Commented-out Code Lines|
Number of Commented-out Code Lines is measured as the number of all comment lines that contain source code only.
Please note that unless the following criteria are met by the source code, then the metric will be disabled:
What is a "clean" comment?
What is an "OOV"?
An "OOV" is an "Out of Vocabulary Word". With regard to CAST, an OOV is a word that has never appeared in the code.
|19173||Number of Copybooks||-|
|19174||Number of Datablocks||-|
|19169||Number of Datawindows||-|
|10167||Number of Events||-|
|10154||Number of Files||-|
|10157||Number of Forms||-|
|19181||Number of Function Pools||-|
|10162||Number of Functions||-|
|19175||Number of Functions and Procedures||-|
|19180||Number of Includes||-|
|10160||Number of Interfaces||-|
|19168||Number of Macros||-|
|10161||Number of Methods||-|
|19177||Number of Modules||-|
|19176||Number of Namespaces||-|
|10166||Number of Packages||-|
|19172||Number of Paragraphs||-|
|19182||Number of Processing Screens||-|
|10156||Number of Programs||-|
|19171||Number of Sections||-|
|10158||Number of SQL Artifacts||-|
|10163||Number of Tables||-|
|19184||Number of Template Class Instances||-|
|19183||Number of Template Classes||-|
|19190||Number of Template Function Instances||-|
|19189||Number of Template Functions||-|
|19186||Number of Template Interface Instances||-|
|19185||Number of Template Interfaces||-|
|19188||Number of Template Method Instances||-|
|19187||Number of Template Methods||-|
|10165||Number of Triggers||-|
|19178||Number of Units||-|
|19170||Number of Userobjects||-|
|10164||Number of Views||-|
|10159||Number of WEB Pages||-|