Severity: P2 · Batch: B8 (scan-pipeline unification)
Location
src/core/scanDirectives.js:34-45 extracts all use-* attributes; :127 warns unconditionally (logger.warn is always-on)
Failure scenario
On elements that combine use-component="Name" binding with any real hook → prod console spam per scan.
Proposed fix
Skip the reserved use-component attribute in directive extraction.
Verification recipe
Spec: spy on console.warn; element <div use-component="Thing" use-real-hook>; scan; assert no "Unknown hook useComponent" warning. Expected on unmodified code: warning fired → confirmed.
Severity: P2 · Batch: B8 (scan-pipeline unification)
Location
src/core/scanDirectives.js:34-45extracts alluse-*attributes;:127warns unconditionally (logger.warn is always-on)Failure scenario
On elements that combine
use-component="Name"binding with any real hook → prod console spam per scan.Proposed fix
Skip the reserved
use-componentattribute in directive extraction.Verification recipe
Spec: spy on
console.warn; element<div use-component="Thing" use-real-hook>; scan; assert no "Unknown hook useComponent" warning. Expected on unmodified code: warning fired → confirmed.