Repository navigation
Perl calls: long multi-line strings, open FH forms (Part of #6433) - #6721
Conversation
…rly; open FH forms (Part of #6433) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…art of #6433) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
1 similar comment
|
No description provided. |
|
PR #6721 @ a7c1d26: 2 failed check(s) == crucible (failure) -- real == runner-tests (failure) -- real |
Part of #6433 (slice 3).
What changed
detector.py(perl string shield): a second quote alternative takes a string over 200 chars that runs across lines (up to 4000), only when it is opened after=,(,,or., closed before;,,,)or., and holds nosubor POD line. Before, such a string matched neither bound, so a}or quote inside it ended the unit early (repro in the new test: the first sub lost all its calls)._shared_patterns.py_PERL_ARG:open FH, ...,opendir DH, ...(bareword handle then a comma) andopen my $fh, ...now open an argument list.rand/int randwere already matched in no-arg positions (tests added). Filetest operators (-e) stay out.test_calls_out_perl_6433.py; contract row indocs/calls_out_rule_contract.md.Evidence
Infilegainsopen). A first, looser guard (any multi-line string) lost 11 real subs in spamassassinParser.pmand 2 inMakefile.PL(stray quotes in comments/POD paired far ahead); I replaced it with the value-context guard above and checked per-file function lists before/after on the perl crucible: identical.call_graph_accuracyperl: fn 174 -> 173. The issue's "~150 FN from early unit end" is not reproduced on the crucible, where no perl function changed. I did not regeneratecall_graph_accuracy_baseline.json(regenerating moved other languages' rows from main drift, not from this change).audit_check.py: all clear. Perl test files: 211 passed.Remaining slices / sibling gaps
new12,print9, filetests-f/-d/-e(excluded here),join,say,warn,push,catch. A method-call / list-operator slice is next.prism.pyperl line masker. No burned-estate program needs these.Lessons for agents
Cross-repo: none.
🤖 Generated with Claude Code