Metrics reference

Unless stated otherwise a metric is computed over the commits that survive the filters (--since, --until, globs, --max-files), for files that still exist at HEAD. Pure renames (0 lines added and deleted) are used to follow identity but never count as revisions.

Revisions and churn

Complexity

Hotspot score

score = 100 * (revisions / max revisions) * (complexity / max complexity) over the analysed files. It is relative to the repository, so use it for ranking, not as a threshold. fixes counts revisions whose message is classified as a fix.

Trend

Up to N commits that touched the file are sampled evenly; each blob is read with git cat-file using the file's name at that commit (so renames are followed) and re-measured.

Temporal coupling

For every commit, each pair of files changed together gets one shared revision. For files A and B:

Knowledge

Team metrics