desloppify icon indicating copy to clipboard operation
desloppify copied to clipboard

Test coverage progress labels its weighted denominator as production files

Open drakemorey opened this issue 3 weeks ago • 0 comments

Problem

The TypeScript scan prints a weighted test-coverage opportunity count as a count of production files.

Observed with Desloppify 1.0 and desloppify --lang typescript scan --path src --no-badge:

  • The scan has 1,258 production files (zone_distribution and codebase_metrics agree).
  • The test-coverage progress line says test coverage: 218 issues (15350 production files).
  • The coverage denominator is 15,350 because discovery.py weights each file by min(sqrt(LOC), 50), then rounds the sum.
  • There are no node_modules findings or dependency files in this scan.

The weighted denominator may be intentional scoring behavior, but shared_phases_review.py labels it as a raw file count. Please print the actual production-file count, or explicitly call this a weighted coverage denominator, so the diagnostic does not suggest that dependencies leaked into the scan.

drakemorey avatar Nov 09 '26 17:11 drakemorey