Repository navigation
powershell/tcl/rexx/matlab dead_code: count a keyword-led comment only when it has a statement's shape (Part of #7207) - #7381
Conversation
…y when it has a statement's shape (Part of #7207) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…f format (Part of #7207) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #7381 @ 0625ddf: 1 failed check(s) == rosetta-audit (failure) -- real |
…d-rosetta c.rexx plant) (Part of #7207) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (8d4e49a) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
|
PR #7381 @ 8d4e49a: 14 failed check(s) == crucible (failure) -- real == db2 (cancelled) -- infra == db2 ${{ matrix.shard }} (cancelled) -- infra == det (failure) -- real == full-suite (failure) -- real == full-suite part ${{ matrix.group }}/${{ needs.shard-plan.outputs.splits }} (cancelled) -- infra == ground-truth (failure) -- real == measure (shard ${{ matrix.shard }}/${{ matrix.total }}) (cancelled) -- infra == plan the suite parts (cancelled) -- infra == publish-history (cancelled) -- infra == shard ${{ matrix.group }}/${{ needs.plan.outputs.splits }} (cancelled) -- infra == shard ${{ matrix.shard }} (cancelled) -- infra == store the suite's durations (cancelled) -- infra == suite time budget (#5166) (cancelled) -- infra |
|
PR #7381 @ 8d4e49a: 14 failed check(s) == crucible (failure) -- real == db2 (cancelled) -- infra == db2 ${{ matrix.shard }} (cancelled) -- infra == det (failure) -- real == full-suite (failure) -- real == full-suite part ${{ matrix.group }}/${{ needs.shard-plan.outputs.splits }} (cancelled) -- infra == ground-truth (failure) -- real == measure (shard ${{ matrix.shard }}/${{ matrix.total }}) (cancelled) -- infra == plan the suite parts (cancelled) -- infra == publish-history (cancelled) -- infra == shard ${{ matrix.group }}/${{ needs.plan.outputs.splits }} (cancelled) -- infra == shard ${{ matrix.shard }} (cancelled) -- infra == store the suite's durations (cancelled) -- infra == suite time budget (#5166) (cancelled) -- infra |
|
No description provided. |
|
No description provided. |
Part of #7207, slice 9: powershell / tcl / rexx / matlab
dead_codecounts a keyword-led comment only when what follows has a statement's shape (sharedcommented_keyword_statementhelper, per-language extras), each with its own comment marker.#,<#):;{},(...), assignment, barefunction Verb-Noun/class Name,return $x.#): the same, plusset x $y/set x 1andreturn $x./*,--): CALL now needsnamethen(,,,;, a quote or end of line (socall this once at startupis prose); IF needs a comparison before THEN; DO WHILE/UNTIL needs a comparison; EXECIO needs a count and DISKR/DISKW/CARD.%, not%%): the same shapes plus barefunction name,classdef Name < base,if a > b,while true.Tests: positive and prose-negative cases per language plus the long-line ReDoS check in
test_script_dead_code_shape_7207.py(301 cases pass; the existing powershell/tcl/rexx/matlab strict tests pass). Goldens re-blessed withgolden-lock.sh crucible_check.py --update --yes.scope_check.py --expect powershell,tcl,rexx,matlab: 1164 diffs: powershell 497, tcl 338, matlab 106, rexx 60, and 163 repo-wide rollups / per-file graph hashes of those same files.pr_gates --fast9/9 (afterruff format),--ratchets9/9.Class / Sibling gaps
Class:
dead_codecounts any comment starting with a keyword, so prose matches (#7207). Handled in this PR: powershell, tcl, rexx, matlab. Already landed in slices 1-8: cobol, c, cpp, java, csharp, typescript, javascript, rust, go, kotlin, swift, python, shell, ruby, perl, php, lua, abap, ada, apex, dart, acs, crystal, db2_sql, easytrieve, embedded_python, fsharp, groovy, scala.Sibling gaps (each needs its own comment marker and statement shapes; not here to keep this PR at 5 files):
Remaining slices: the sibling-gap languages above, about 4 per slice.
🤖 Generated with Claude Code