Commit 3a11191
committed
fix: improve call resolution accuracy with scoped fallback, dedup, and built-in skip
Dogfooding revealed ~52% false positives in call edges. Three targeted
fixes reduce edges from ~1430 to ~615 (57% reduction) while preserving
all real dependencies:
- Scope-aware fallback: standalone calls no longer resolve globally
(confidence 0.3); only same-directory (0.7) and parent-directory (0.5)
matches are kept
- Edge deduplication: track seen caller→target pairs per file to prevent
duplicate edges from repeated calls to the same function
- Built-in receiver skip: skip resolution for console, Math, JSON, Object,
Array, Promise, process, Buffer, and other runtime globals that never
resolve to user-defined symbols1 parent 5480d46 commit 3a11191
1 file changed
Lines changed: 40 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
14 | 45 | | |
15 | 46 | | |
16 | 47 | | |
| |||
458 | 489 | | |
459 | 490 | | |
460 | 491 | | |
| 492 | + | |
461 | 493 | | |
| 494 | + | |
462 | 495 | | |
463 | 496 | | |
464 | 497 | | |
| |||
499 | 532 | | |
500 | 533 | | |
501 | 534 | | |
502 | | - | |
503 | | - | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
504 | 539 | | |
505 | 540 | | |
506 | 541 | | |
| |||
515 | 550 | | |
516 | 551 | | |
517 | 552 | | |
518 | | - | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
519 | 556 | | |
520 | 557 | | |
521 | 558 | | |
| |||
0 commit comments