Deprecation detection attributes prose and string literals to the next local variable
Environment: Desloppify 1.0, TypeScript scan.
Two ordinary uses of the word deprecated are classified as deprecated declarations:
// A paused frame's own url is deprecated; scripts holds current addresses.
const scripts = new Map<string, string>()
const shown = models.filter(model => model.status !== 'deprecated')
// Count the models under their signing provider.
const counted = shown.map(model => model.providerID)
Observed on a real scan: Deprecated: scripts (27 importers) and Deprecated: counted (111 importers). Neither variable has an @deprecated annotation and neither is a deprecated API. Expected: no deprecated-symbol finding for these cases.
In languages/typescript/detectors/deprecated.py, detect_deprecated_result finds DEPRECATION_MARKER_RE hits, then _extract_deprecated_symbol scans following declaration lines regardless of whether the hit is a declaration annotation, prose about another API, or a string literal. The next local variable becomes a deprecated top-level symbol; importer counting then also attributes unrelated files.
Please constrain deprecation targeting to an actual annotated declaration/property (or report prose-only matches separately). A regression should retain real multiline and inline @deprecated JSDoc while ignoring these ordinary comment/string cases. No scanner source was modified locally.