Skip to content

Maintainability ​

Maintainability Index ​

maintainability.index — Composite maintainability estimate (original, unbounded formula).

ItemValue
DefinitionMI = 171 - 5.2 * ln(V) - 0.23 * CC - 16.2 * ln(SLOC).
Scopefunction, file
Inputhalstead.volume (V), complexity.cyclomatic (CC), size.sloc (SLOC)
Calculationnot_applicable unless V > 0 and SLOC > 0. Not rescaled to 0-100.
Unitindex
Language Applicabilitypartially_language_dependent
LimitationsInherits the limitations of its inputs; the coefficients were fitted on 1990s code.
ReferenceOman, P. & Hagemeister, J. (1992). Metrics for assessing a software system's maintainability. ICSM.