ghostery / adblocker
Code health
Hotspots average 3.5, the place fixes pay off most.
Explore this codebase
- Code health map6hotspots across 215 files
- Ownership123sole-owned files: one author, no second reader
- Architecture3modules, 116 entry points
- Decisions4recorded, of which 0 in force and 4 background
- Refactoring36open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 2
2 things worth doing in the week to Aug 14, the last indexed commit, 1 of them now.
Now
- High
Start breaking up <anonymous@57> (CCN 22, 94 lines): first lift lines 82-96
packages/adblocker/tools/priorities.ts:82
<anonymous@57> nests deeply; easier to read and change once split.
- gain
- +0.9 health on this file(inferred)
- health recoverable
- +0.9(inferred)
- size
- CCN 22, 94 lines, nests 8 deep
- steps
- 1 (1 mechanical)
Small effort
Worth planning
Start breaking up parse (CCN 55, 144 lines): first lift lines 286-294
packages/adblocker/src/filters/cosmetic.ts:286
parse has many paths; easier to read and change once split; function changed in 3 commits; its file is imported by 15 files.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 55, 144 lines, nests 4 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
4 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health417 open findingsCriticalFunction hotspot · packages/adblocker-extended-selectors/src/eval.ts30 findings · 7.5 deducted
- Refactoring36 open opportunitiesMediumupdateExtended+1.5 health, M effort · packages/adblocker-webextension-cosmetics/src/index.ts
- Decisions0 drifting from the codeMediumpackages/adblocker/src/codebooks/network-hostname.tsHigh-churn file with no governing decision
- Ownership123 sole-owned filesMediumpackages/adblocker/src/engine/engine.tsOne author, no second reader