Skip to content

feat(frameworks): report every detected technology#314

Open
TBX3D wants to merge 1 commit into
vmfunc:mainfrom
TBX3D:feat/framework-multi-report
Open

feat(frameworks): report every detected technology#314
TBX3D wants to merge 1 commit into
vmfunc:mainfrom
TBX3D:feat/framework-multi-report

Conversation

@TBX3D

@TBX3D TBX3D commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

framework detection collapsed to a single argmax winner, so a page built from several technologies (react behind a next.js server, say) reported only one and dropped the rest.

adds DetectFrameworks, which keeps every detector hit above the threshold ranked most-confident first, and wires the -framework path to emit one finding per detected framework. the single-winner DetectFramework stays for callers that want just the top match; both share one fetch through a new gatherDetections helper, so the extra coverage costs no additional request.

verified live against a local server carrying both next.js and express markers: -framework now reports both Next.js and Express.js where it previously reported one. new tests cover the multi-report ordering and the no-match case; the existing single-detection tests are unchanged.

framework detection collapsed to a single argmax winner, so a page built
from several technologies (react behind a next.js server, say) reported
only one and dropped the rest. add DetectFrameworks, which keeps every
detector hit above the threshold ranked most-confident first, and wire
the -framework path to emit one finding per detected framework.

the single-winner DetectFramework stays for callers that want just the
top match; both share one fetch through the new gatherDetections helper,
so the extra coverage costs no additional request.
@TBX3D TBX3D requested a review from vmfunc as a code owner July 3, 2026 22:44
@github-actions github-actions Bot added scan changes to scan engine size/l <500 lines changed tests test changes labels Jul 3, 2026
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

pr summary

3 files changed (+173 -41)

category files
go source 3
tests 1

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 68.25397% with 20 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@7ea1cd2). Learn more about missing BASE report.

Files with missing lines Patch % Lines
internal/scan/frameworks/detect.go 72.88% 12 Missing and 4 partials ⚠️
sif.go 0.00% 4 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #314   +/-   ##
=======================================
  Coverage        ?   54.86%           
=======================================
  Files           ?       81           
  Lines           ?     6911           
  Branches        ?        0           
=======================================
  Hits            ?     3792           
  Misses          ?     2846           
  Partials        ?      273           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scan changes to scan engine size/l <500 lines changed tests test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants