repowiseghostery/adblocker

ghostery / adblocker

typescriptjavascriptmasterff8ed9298.5K linessynced on Sep 1, 2026

Code health

8.9out of 10Excellent

Hotspots average 3.5, the place fixes pay off most.

Explore this codebase

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)

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
    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

Everything we found

4 areas