Main Content
Short Names of Code Complexity Metrics
When annotating your code to justify metrics or creating custom software quality objectives, you use short names of code complexity metrics instead of the full names. The following table lists the short names for code complexity metrics.
Note that you can only annotate your code for function level code complexity metrics only.
Project Metrics
Code Metric | Acronym |
---|---|
Number of Direct Recursions | AP_CG_DIRECT_CYCLE |
Number of Header Files | INCLUDES |
Number of Files | FILES |
Number of Recursions | AP_CG_CYCLE |
Program Maximum Stack Usage | PROG_MAX_STACK |
Program Minimum Stack Usage | PROG_MIN_STACK |
File Metrics
Code Metric | Acronym |
---|---|
Comment Density | COMF |
Estimated Function Coupling | FCO |
Number of Lines | TOTAL_LINES |
Number of Lines Without Comment | LINES_WITHOUT_CMT |
Function Metrics
Code Metric | Acronym |
---|---|
Cyclomatic Complexity | VG |
Higher Estimate of Size of Local Variables | LOCAL_VARS_MAX |
Language Scope | VOCF |
Lower Estimate of Size of Local Variables | LOCAL_VARS_MIN |
Minimum Stack Usage | MIN_STACK |
Maximum Stack Usage | MAX_STACK |
Number of Call Levels | LEVEL |
Number of Call Occurrences | NCALLS |
Number of Called Functions | CALLS |
Number of Calling Functions | CALLING |
Number of Executable Lines | FXLN |
Number of Function Parameters | PARAM |
Number of Goto Statements | GOTO |
Number of Instructions | STMT |
Number of Lines Within Body | FLIN |
Number of Local Non-Static
Variables | LOCAL_VARS |
Number of Local Static Variables | LOCAL_STATIC_VARS |
Number of Paths | PATH |
Number of Return Statements | RETURN |