You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Call graph (perl): digit-first arguments and select STDOUT (Part of #6433) - #6945
CALLS_OUT_PERL now takes two more paren-less call shapes: a digit-first argument (plan 4;, skip 3, 'why';, fetch -1;, print STDERR 5;) and select with a handle (select STDOUT;, my $old = select STDERR;, select $fh;). Changes: _PERL_ARG gains -?[0-9], select joins _PERL_BUILTIN (the hash-key guards select => and {select} still apply), and the print/printf/say HANDLE arg alternative accepts a digit argument.
Class / Sibling gaps
Class: a Perl call written without parentheses whose first argument start, or whose name, the _PERL_ARG / _PERL_BUILTIN tables do not list. Handled here: digit-first args after every opener position, the print-handle form, and select. Sibling gaps: other handle built-ins absent from _PERL_BUILTIN (binmode, seek, tell, eof, fileno, truncate, flock) are not added: each needs its own check against the keyword-rosetta plant and the ledger. No burned-estate program needs them (Perl is not a mainframe estate). Remaining slices: none for this mechanism.
Checklist: none named in the brief.
Facts checked
test_calls_out_perl_6433.py and test_perl_strict.py: 202 passed. Added positives and negatives ($h{select}, select => 1, $a x 3, (1) x 3, $a - 5, my $sel = 3).
crucible_check.py --update --yes via golden-lock.sh: no drift in either golden master (the corpus holds none of these shapes), nothing re-blessed.
pr_gates.py --fast: 9/9 pass (lint, audits, secrets, xray, gen-docs, derived, workflows, gauntlet, affected). Ruff local 0.16.0 differed from CI 0.17.1; the gate used the cached 0.17.1 binary.
Not run: --ratchets, tri-comparison and tree-sitter audits (left to CI).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shepherd:mergeMaintainer: merge when green (auto-merge, squash). Guide: docs/ci.md
1 participant
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #6433 (slice 5).
What
CALLS_OUT_PERLnow takes two more paren-less call shapes: a digit-first argument (plan 4;,skip 3, 'why';,fetch -1;,print STDERR 5;) andselectwith a handle (select STDOUT;,my $old = select STDERR;,select $fh;). Changes:_PERL_ARGgains-?[0-9],selectjoins_PERL_BUILTIN(the hash-key guardsselect =>and{select}still apply), and theprint/printf/say HANDLE argalternative accepts a digit argument.Class / Sibling gaps
Class: a Perl call written without parentheses whose first argument start, or whose name, the
_PERL_ARG/_PERL_BUILTINtables do not list. Handled here: digit-first args after every opener position, the print-handle form, andselect. Sibling gaps: other handle built-ins absent from_PERL_BUILTIN(binmode,seek,tell,eof,fileno,truncate,flock) are not added: each needs its own check against the keyword-rosetta plant and the ledger. No burned-estate program needs them (Perl is not a mainframe estate). Remaining slices: none for this mechanism.Checklist: none named in the brief.
Facts checked
test_calls_out_perl_6433.pyandtest_perl_strict.py: 202 passed. Added positives and negatives ($h{select},select => 1,$a x 3,(1) x 3,$a - 5,my $sel = 3).crucible_check.py --update --yesviagolden-lock.sh: no drift in either golden master (the corpus holds none of these shapes), nothing re-blessed.pr_gates.py --fast: 9/9 pass (lint, audits, secrets, xray, gen-docs, derived, workflows, gauntlet, affected). Ruff local 0.16.0 differed from CI 0.17.1; the gate used the cached 0.17.1 binary.--ratchets, tri-comparison and tree-sitter audits (left to CI).Cross-repo
None.
🤖 Generated with Claude Code