Repository navigation
det: name source defects (column 72, ISPF screens, undeclared items) (Fixes #4735) - #4747
Merged
Merged
Conversation
…ed items) instead of reporting them confusingly (Fixes #4735) Text past column 72 of a fixed-form line that carries code punctuation (a host variable cut short, a lost separator comma) is a named refusal, as the cut literal of #4590 is; identification-area tags and *> comments are not flagged. A saved ISPF editor screen is NotCobol in the translator and is named by the refactor controller and the survey (was SystemExit: 0). A name no data entry, COPY or INCLUDE declares is `undeclared item` / `undeclared paragraph`; the CICS / DL/I interface names stay `no such item`. Nothing is repaired. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MQNoe4wPJgr7dbUvs3DG6D
Contributor
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #4735 (part of #4270).
The det translator now reports defective sources by name instead of
no such item/SystemExit: 0. It never repairs source (det_port_design.md principle).source.cut_literal, same survey switchcut-literal): fixed-form text past column 72 that carries code punctuation (, ' " : ( )) refuses the program:source defect: source text past column 72 (PORTO,) truncates:HV-SO-IM``, oris cut off after Xwhen a comma is lost in column 73 (NEND-DAY lines 411, 308, 309, 316). Identification-area tags (`COF00010`, `00000100`, a lone `-` / `.`) and `*>` comments are not flagged; free-format source is never cut. Checked against every local mainframe corpus (270 members): zero new refusals.ispf_screen(two of: menu bar,EDIT ... Columns,Command ===> ... Scroll ===>, Top/Bottom of Data banners,=COLS>rulers). The translator raisesNotCobol; the refactor controller printsnot a COBOL program: ISPF editor screen: <file>and leaves it out;det_surveyreportsgeneration failed: not a COBOL program: ISPF editor screen (...)(cobol-db2-cursor, cobol_db2_stringsearch).X: undeclared item/X: undeclared paragraph(wasno such item/no such paragraph); the CICS / DL/I interface names the translator must supply (DFH*,EIB*,DIB*) stayno such item. A hole, not a whole-program refusal, so partly translatable programs keep translating. Censusgap_keygroups both under<name>: ....det_port_design.md;translator-refuses-source-defectledger summary extended.Evidence:
det_port.py checkvs origin/main: 79/79 ports unchanged.pr_gates --ratchets: 7/7 pass (fact-crosscheck ledger needs no entry changes: the affected programs are in corpora not in the ledger).pr_gates --fast: audits/secrets/xray/gauntlet pass; one lint finding fixed afterwards (ruff_audit --ci clean). 19 new tests (test_det_source_defects_4735.py) plus census tests; the NexusBank / refatorado / cursor corpora are not fetched here, so the census output was not re-run (cics_census.py blockersneeds a survey of them).🤖 Generated with Claude Code
https://claude.ai/code/session_01MQNoe4wPJgr7dbUvs3DG6D