Chapter 3. Source Code Metrics

Table of Contents

ada Metrics
Number of Parameters
Cyclomatic Complexity
Maximum Nested Structures
Non-Cyclic Paths
Return Statements
IF Statements
ELSE Clauses
For Statements
While Statements
Loop Statements
Case statements
Orelse operators
Andthen Operators
OR operators
AND operators
Case Blocks
Exit statements
GOTO Statements
Exception handlers
Exception When blocks
Raise statements
Label Statements
Declare operators
Types
Subtypes
Derived types
Variables
Constants
Renamed objects
Exceptions
Declared functions
Separate functions/procedures
Separate packages
Separate tasks
Protected objects
With statements
Public variables
Public types
Public constants
Public exceptions
Public functions
Private variables
Private types
Private constant
Private exceptions
Private functions/Procedures
Entry Statements
Generic object
C-Style Metrics
Number of Functions
Assignment Operators
Comparison Operators
Standard Operators
Special Operators
Cyclomatic Complexity
Non-Cyclic Paths
Return Statements
Number of Parameters
For Statements
While Statements
Do While Statements
Switch Statements
Continue Statements
Loop Statements
Orelse operators
Andthen Operators
Ternary operators
Break in Switch
Break in Loop
Case Labels
Case Blocks
Call to exit
OO Metrics
Number of Classes
Depth of Inheritance Tree
Depth of Inheritance Tree
Multiple Inheritance Indicator
Number of Ancestors
Depth of Descendant Tree
Number Of Children
Number of Descendants
Number of Methods
Number of Method Implemented
Weighted Method per Class
Public Methods
Private Methods
Protected Internal Methods
Protected Methods
Internal Methods
Methods without Accessibility
Static Methods
Number of Attributes
Public Data
Private data
Protected Internal Data
Protected Data
Internal Data
Number of data without accessibility
Static Data
Constant Data
Properties
Public Properties
Private Properties
Protected Internal Properties
Protected Properties
Internal Properties
Properties without Accessibility
Static Properties
Constant Properties
Properties with Get
Properties with Set
Throw Statements
Catch Statements
Try Statements
COBOL Metrics
Number of Files
Number of Sections
Number of paragraphs
Line Count
Comment Lines
Blank Lines
Source Lines Of Code
Operator Occurrences
Operand Occurrences
Distinct Operators
Distinct Operands
Maximum Nested Structures
Executable Statements
EXIT Statements
STOP Statements
GOTO Statements
IF Statements
EVALUATE Statements
PERFORM Statements
VARYING Clauses
TIMES Clauses
UNTIL Clauses
ELSE Clauses
WHEN Clauses
CALL Statements
Conditions
Data Declarations
File Declarations
Data Used
Files Used
Arithmetic Operators
XML Metrics
Number of Files
Line Count
Comment Lines
Blank Lines
Source Lines Of Code
Operator Occurrences
Operand Occurrences
Distinct Operators
Distinct Operands
Maximum Nested Structures
Number of XML elements
Number of attributes
Number of comment blocks
Number of text blocks

The following sections describe the base measures available for source code metrics in Squore according to the related programming language or environment.