|
Scan 1
Hotspot Analysis
Files changed most often — where bugs keep coming back.
|
What it measuresRanks every file by how often it was changed over the last 6 months. A file touched 47 times while the average is 3 is a hotspot. |
Why it mattersHotspots concentrate bugs. Research shows that 4% of files cause 50% of defects. Knowing where they are lets you focus refactoring where it actually matters. |
What the report showsA ranked list of critical and warning hotspots, with change frequency and a density score (0–1) that feeds into your overall health rating. |
|
Scan 2
Complexity × Churn
Complex files that change frequently — the danger zone.
|
What it measuresCross-references cyclomatic complexity with change frequency. A 500-line file with complexity 40 that changes weekly is far more dangerous than a complex file nobody touches. |
Why it mattersComplex + frequently changed = highest defect probability. These files slow down every developer who touches them and are the #1 source of regressions. |
What the report showsA quadrant map: high-complexity/high-churn files are flagged as critical. You see exactly which files need refactoring first for maximum impact. |
|
Scan 3
Temporal Coupling
Files that always change together — hidden dependencies.
|
What it measuresDetects files that consistently change together in the same commits. If UserService.php and BillingHelper.php always change as a pair, they have hidden coupling. |
Why it mattersTemporal coupling reveals architectural debt that static analysis misses. These hidden dependencies make changes unpredictable — touching one file breaks another in ways no linter can catch. |
What the report showsA coupling index (0–1) and the pairs of files with the strongest co-change patterns. High coupling = candidates for merging or clearer interfaces. |
|
Scan 4
Knowledge Silos
Code owned by a single developer — your bus factor.
|
What it measuresMeasures author concentration per file. If 90% of commits on a critical module come from one person, that module is a knowledge silo. |
Why it mattersWhen that person goes on vacation, changes teams, or quits, nobody else can safely modify the code. Knowledge silos are a direct operational risk — your bus factor. |
What the report showsA silo risk score (0–1) and the number of files with dangerous single-author concentration. The report highlights which areas need knowledge sharing or pair programming. |
|
Scan 5
Dead Code Detection
Files no one touches — cleanup candidates.
|
What it measuresIdentifies files that haven't been modified in a long time relative to the rest of the codebase. A file untouched for 18 months in an active repo is likely dead weight. |
Why it mattersDead code increases onboarding time, confuses new developers, and inflates metrics. Cleaning it up is the easiest, lowest-risk way to improve your codebase health. |
What the report showsA dead code ratio (0–1) and a count of candidate files. The report distinguishes truly dead files from stable utility code that rarely needs changes. |
|
Scan 6
Velocity Trend
Is the team shipping features or fighting fires?
|
What it measuresClassifies recent commits into feature work, bug fixes, and refactoring based on commit message patterns. Then measures the ratio over time. |
Why it mattersA healthy team spends most of its time on features. When bug fixes dominate, the team is firefighting instead of building. This is the clearest signal that debt is costing real velocity. |
What the report showsA velocity profile breakdown (% feature / % bugfix / % refactoring) and a trend indicator — is the balance improving or deteriorating month over month? |
|
Scan 7
Merge Discipline
Is the team reviewing code before merging? Your quality bus factor.
|
What it measuresAnalyzes merge commits to detect self-merges (author == merger), reviewer diversity, and average PR size. Uses git log --merges — 100% offline, no GitHub API required. |
Why it mattersCode merged without review carries higher defect risk and creates knowledge silos. Two repos with identical DebtLens scores can have radically different quality cultures — this scan reveals the difference. |
What the report showsA discipline signal (exemplary / adequate / weak / solo) and a self-merge ratio. High self-merge ratio + low reviewer diversity = weak discipline, high risk. |
|
Scan 8
AI Governance
Is AI-generated code being reviewed before it ships? Your governance risk.
|
What it measuresDetects AI-generated code signatures in your git history — Co-Authored-By trailers (Claude, Copilot, Cursor, Codeium...), commit messages, and bot authors (Dependabot, Renovate). Then checks whether each AI commit was reviewed by a human before merging. |
Why it mattersAI-assisted coding is productive when governed. But AI code merged without review is a ticking governance bomb — no one verified correctness, security, or architectural fit. For CTOs and compliance teams, knowing what percentage of your codebase was written by AI and shipped unreviewed is critical. |
What the report showsA governance signal (clean / governed / partial / uncontrolled), the AI commit ratio, the unreviewed AI ratio, and the list of AI tools detected in the repo. |