Code health of ghostery/adblocker
Repowise scores ghostery/adblocker at 8.9 out of 10 for code health, which reads as excellent, alongside maintainability 9.3 and static performance 9.9 on the same scale. There are 417 open findings across the three pillars, and the lowest-scoring file is network.ts at 2.1. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.
Findings by severity
35 critical, 92 high, 126 medium, 98 low.
Hotspots
6 files are flagged as hotspots. The top 5:
- packages/adblocker/src/codebooks/network-hostname.ts: 21 commits in the last 90 days from 2 contributors
- packages/adblocker/src/codebooks/raw-network.ts: 22 commits in the last 90 days from 2 contributors
- packages/adblocker/src/codebooks/network-filter.ts: 13 commits in the last 90 days from 2 contributors
- packages/adblocker/src/codebooks/cosmetic-selector.ts: 18 commits in the last 90 days from 2 contributors
- packages/adblocker/src/engine/engine.ts: 24 commits in the last 90 days from 4 contributors with 2 recent bug fixes
Lowest-scoring files
- packages/adblocker/src/filters/network.ts: 2.1 out of 10 with 2 bug fixes in the last 180 days
- packages/adblocker-extended-selectors/src/eval.ts: 2.3 out of 10 with 1 bug fix in the last 180 days
- packages/adblocker/src/engine/engine.ts: 2.3 out of 10 with 2 bug fixes in the last 180 days
- packages/adblocker/src/filters/cosmetic.ts: 2.3 out of 10
- packages/adblocker-extended-selectors/src/extended.ts: 4.0 out of 10
Checked against bug fixes
Of the 20 files Repowise scores lowest, 5 had a bug fix in the last 180 days. Across all 215 scored files, 6.0% had a bug fix in that window.
Dead code and refactoring
Repowise found 6 unused exports. 36 refactoring targets across 36 files would raise the score.
More on adblocker: summary and FAQ, codebase overview, architecture.
Related guide: Best dead code detection tools by language