Skip to content

Extraction hardening: jcl args multi-line over-counting #2483

Description

@squid-protocol

Parent: #2516

Mode A's unbounded args search sweeps multi-line strings, creating false positives and over-counting PARM= arguments in JCL.

This needs to be addressed for JCL specifically to bound the args search appropriately, related to the broader issue in #1973.

Implementation Guide

Target File: gitgalaxy/standards/language_standards.py (JCL args key) / Core extraction logic
Problem: Because JCL is a none args-granularity language with no brace bodies, the engine uses Mode A extraction. The unbounded search can sweep a large multiline PARM= block continuously until the next structural boundary, inflating Occurrence.args counts.
Action: Either strictly anchor the args regex to the EXEC statement lines, or ensure the JCL extraction rules drop redundant hits from within a single EXEC step's parsed body.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUnintended behavior or logic failure in the enginecore-engineModifications to the central physics and parsing enginelegacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingpriority: highCore feature broken, but workarounds existthreat: false-positiveAccuracy tuning: Engine incorrectly flagged safe code

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions