Repository navigation
dead_code keyword-statement shape for acs, crystal, db2_sql, easytrieve (Part of #7207) - #7359
Conversation
…ve (Part of #7207) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #7359 @ 77a6f92: 2 failed check(s) == full-suite (failure) -- real == full-suite part 2/2 (failure) -- real |
|
PR #7359 @ 77a6f92: 2 failed check(s) == full-suite (failure) -- real == full-suite part 2/2 (failure) -- real |
|
No description provided. |
… ^ (Part of #7207) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (a3b8753) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
|
PR #7359 @ a3b8753: 18 failed check(s) == crucible (failure) -- real == db2 (cancelled) -- infra == db2 ${{ matrix.shard }} (cancelled) -- infra == det (failure) -- real == evidence report level deltas (advisory) (cancelled) -- infra == full-suite part ${{ matrix.group }}/${{ needs.shard-plan.outputs.splits }} (cancelled) -- infra == ground-truth (failure) -- infra == ground-truth part ${{ matrix.shard }} (cancelled) -- infra == ground-truth-warm (cancelled) -- infra == 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 == shard ${{ matrix.shard }} (${{ matrix.loc }} LOC) (cancelled) -- infra == store the suite's durations (cancelled) -- infra == suite time budget (#5166) (cancelled) -- infra == suite-plan (cancelled) -- infra |
|
No description provided. |
|
No description provided. |
|
No description provided. |
|
No description provided. |
Part of #7207 (slice 7).
dead_codefor acs, crystal, db2_sql and easytrieve counts a keyword-led comment only when the rest of the line has a statement's shape, viacommented_keyword_statement(marker= / extra=), as in slices 4-6.Changes
//+if|for|while|return|script|functionneed;{},(...), an assignment or ascript N OPENheader; thename(...);call branch is kept.#+def|class|struct|module|if|unless|while|puts|pneed(...), an assignment, a baredef name/class Name [< Base], a comparison or?call afterif|unless|while, or a quoted/dottedputsargument.--(not---) //*+ SQL verbs need;,(...), an assignment, or an uppercase clause word (FROM,INTO,TABLE...), a bareCALL NAME/COMMIT. Lowercasefromis not a clause signal on its own (prose).*+IF|PERFORM|GET|PUT|JOB|MACROneed an assignment,(...), an uppercase relation word, or an uppercase bare operand (PERFORM PARA,GET FILE,JOB INPUT,MACRO [NAME]).tests/extraction/languages/test_dead_code_shape_7207_s7.py: positives, prose negatives and a long-line ReDoS check per language (separate file from slice 6's so the two PRs do not conflict).Evidence
Golden masters (both legs,
golden-lock.sh crucible_check.py --update --yes): no drift, nothing re-blessed (the pinned corpus holds no commented-out code of these shapes in these languages). New tests: 68 pass.Class / Sibling gaps
Class:
dead_codecomment-then-bare-keyword rules that count prose (#7207). Handled here: acs, crystal, db2_sql, easytrieve. Sibling gaps still on the bare-keyword shape: assembly, c, cpp, csharp, embedded_python, fortran, fsharp, go, groovy, haskell, java, javascript, kotlin, livecode, matlab, objective-c, postgresql, powershell, rexx, rust, scala, solidity, swift, tcl, typescript, yacc, zig, zscript (whichever slice 6 / 7355 and the issue list have not already taken); each needs its own comment syntax and a golden re-bless. Slice 6 (#7355) covers abap, ada, apex, dart and touches the same test pattern in a different file.Remaining slices
The languages above, in groups of 4 (one rule file each + one test file).
Cross-repo
None.
🤖 Generated with Claude Code