renovatebot / renovate
Code health
Hotspots average 5.9, the place fixes pay off most.
Explore this codebase
- Code health map202hotspots across 3,398 files
- Ownership1,375sole-owned files: one author, no second reader
- Architecture7modules, 375 entry points
- Decisions85recorded, of which 0 in force and 85 background
- Refactoring284open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 3
6 things worth doing in the week to Aug 2, the last indexed commit, 3 of them now.
Worth planning
Start breaking up lookupUpdates (CCN 145, 715 lines): first lift lines 839-926
lib/workers/repository/process/lookup/index.ts:839
lookupUpdates nests deeply; easier to read and change once split, which also removes a duplicate; function changed in 13 commits; its file is imported by 5 files, changed 7 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Nested complexity
- size
- CCN 145, 715 lines, nests 6 deep
- severity
- high
Medium effort, worth a checkStart breaking up processBranch (CCN 190, 924 lines): first lift lines 1040-1087
lib/workers/repository/update/branch/index.ts:1040
processBranch has many paths; easier to read and change once split, which also removes a duplicate; function changed in 8 commits; its file is imported by 3 files, changed 5 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 190, 924 lines, nests 6 deep
- severity
- high
Medium effort, worth a checkStart breaking up ensurePr (CCN 90, 424 lines): first lift lines 306-348
lib/workers/repository/update/pr/index.ts:306
ensurePr has many paths; easier to read and change once split; function changed in 8 commits; its file is imported by 5 files, changed 4 times in 90 days.
- gain
- up to +0.7 health on this file(inferred)
- finding
- Complex method
- size
- CCN 90, 424 lines, nests 6 deep
- severity
- high
Medium effort, worth a check
Improve what Repowise can see
Add a test coverage report
Without one, Repowise cannot tell tested code from untested code, so every test-related action says “unknown”.
- line coverage
- Unknown, no report
Small effort
Everything we found
5 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health2,768 open findingsCriticalUntested hotspot · lib/util/http/http.ts8 findings · 7.8 deducted
- Refactoring284 open opportunitiesMediumgetDependentPackageFiles+1.5 health, S effort · lib/modules/manager/nuget/package-tree.ts
- Decisions0 drifting from the codeMediumlib/util/git/index.spec.tsHigh-churn file with no governing decision
- Ownership1,375 sole-owned filesMediumlib/config/options/index.tsOne author, no second reader
- Dead code48LowBazelManagerDataUnreachable interface (2 lines)