Metrics Glossary


Cyclomatic: The measure of the complexity of a function's decision structure. The cyclomatic complexity is also the number of basis, or independent, paths through a module. Also sometimes called the McCabe Complexity after its originator.

  For a precise definition see:
   NIST Special Publication 500-235 Structured Testing:
   A Testing Methodology Using the Cyclomatic Complexity Metric
   http://hissa.ncsl.nist.gov/sw_assurance/strtest.html

Lines: total lines (in a function or file or project)

Lines Code: total lines that have any code on them

Lines Declarative: total lines of code that have declaration on them

Lines Executable: total lines of code that have no declaration on them

Statements Declarative: number of declarative statements

Statements Executable: number of executable statements

Lines Comment: total lines that have comments on them

Lines Blank: total lines without any code/comment

Lines Inactive: total inactive lines, due to #if clauses

Ratio Comment/Code: comment lines / code lines

Modified: cyclomatic except each case statement is not counted;the entire switch counts as 1

Strict: cyclomatic except && and || also count as 1

Essential: Measure of the amount of unstructured code in a function

Nesting: maximum nesting level of control constructs

Paths: Number of possible paths, not counting abnormal exits or gotos

Note, code+comment+blank != lines, as some lines might have both code and comment