Repository navigation
Commit 40cea88
committed
fix(patterns): gate constructed-path AST parse behind join pre-check
The AST-based os.path.join resolver parsed every Python file, defeating
the runner's parse-once invariant (one shared parse per file across the
analyzer fan-out). Gate the local parse behind a cheap textual pre-check
so files without a plausible join() call never pay for it. The module
stays lexical, preserving windowed and normalized-view scans for all
file types.
Signed-off-by: Deepak Jain <[email protected]>1 parent 8262737 commit 40cea88
1 file changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
666 | 674 | | |
667 | 675 | | |
668 | 676 | | |
669 | 677 | | |
670 | 678 | | |
671 | 679 | | |
672 | 680 | | |
673 | | - | |
674 | | - | |
675 | | - | |
| 681 | + | |
| 682 | + | |
676 | 683 | | |
| 684 | + | |
| 685 | + | |
677 | 686 | | |
678 | 687 | | |
679 | 688 | | |
| |||
0 commit comments