Skip to content

Extraction hardening: jcl args continuation lines #2482

Closed

Description

@squid-protocol

Parent: #2516

The args regex for JCL currently misses PARM= values split across continuation lines. This is a known limitation documented in docs/language_status/jcl.md.

The regex needs to be expanded to handle PARM= continuing on subsequent lines in a JCL EXEC step, to improve args recall.

Implementation Guide

Target File: gitgalaxy/standards/language_standards.py (JCL args key, ~line 13973)
Current State:
r"^[ \t]*//[A-Za-z0-9_#$@]*[ \t]+(?:EXEC(?:[ \t].*?)?,[ \t]*PARM=('(?:[^']|'')*'|\([^)]*\)|[^ \t\n,]+)|PROC[ \t]+(\S.*))"
Problem: It requires PARM= to be on the exact same physical line as EXEC.
Action: Modify the regex to optionally consume JCL continuation line markers (e.g., (?:,[ \t]*\n[ \t]*//[ \t]*)?) before matching PARM=.
Testing: Add test cases in tests/extraction/languages/test_jcl_strict.py proving it matches PARM= split across lines and rejecting unrelated continuation lines.

Activity

  1. added
    bug
    core-engine
    legacy-modernization
    priority: high
    threat: false-negative
    on Aug 30, 2026
  2. added a commit that references this issue on Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcore-enginelegacy-modernizationpriority: highthreat: false-negative

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions