scitools.com

← Metric catalog

Stability Index is one of the source-code metrics Understand computes across 17+ languages — browse them in the GUI, export and track them, or script them with the Python API.

Stability Index

API ID: StabilityIndex
Languages: Any
Targets: Classes, Files, Functions

Herseteller Initiative Software (HIS) S calculated from PercentChanged

PercentChanged is a built-in diff metric between 0 and 100%. The HIS Stability Index should be between 0 and 1 with 1 meaning not changed. So, the PercentChanged value is adjusted and inverted to be in the range 0 to 1 as follows:

S= (100.0 - PercentChanged)/100.0

Note that PercentChanged is only available if a comparison database has been used. Since this metric is only available when the PercentChanged metric is available, if you want to see it in the Metrics Browser you may need to run "Locate Changed Entities".

See also the Hersteller Initiative Software (HIS) solution.