CodeMetrics
data class CodeMetrics(val cognitiveComplexity: Int, val lines: Int, val statements: Int, val branches: Int, val parameters: Int, val variables: Int, val compositeScore: Double, val recommendedTests: Int)
Per-function quantitative measurements collected from clang-tidy plus a small custom complexity pass.
cognitiveComplexity — clang-tidy's cognitive-complexity score.
lines / statements — physical lines and statement count.
branches — branching constructs (if/switch/loops).
parameters / variables — declared parameters and locals.
compositeScore — a weighted sum derived from the above; the diagram colours nodes by this score against the warn/error thresholds.
recommendedTests — heuristic number of tests required to reach modified-condition coverage at this complexity.
Attached as an overlay onto a CodeConstructView for functions.