Skip to content

check_release_tree.py: two checkers' docstrings claim a follow-up was filed for heredoc-body comment-test ambiguity -- none existed until now #990

Closed

Description

@fdaviddpt

Symptom: _check_catch_all_in_loop and _check_single_line_delegate_positional in .github/scripts/check_release_tree.py were deliberately left out of #980's _iter_non_heredoc_lines migration, but each docstring says the gap was "filed for a follow-up rather than fixed silently alongside the other 16." No such issue existed (checked at review time via issue search for catch_all_in_loop and single_line_delegate_positional, and again during this curate pass) -- this issue is that follow-up.

Location:

  • .github/scripts/check_release_tree.py:1418 (_check_catch_all_in_loop), docstring lines ~1431-1441
  • .github/scripts/check_release_tree.py:1717 (_check_single_line_delegate_positional), docstring lines ~1730-1739

Mechanism: Both functions still carry the exact same unguarded line.lstrip().startswith("#") / ln.lstrip().startswith("#") comment test that #919/#980 fixed everywhere else via _iter_non_heredoc_lines. A heredoc body line could still be misread two ways: a #-led body line read as a real comment (hiding a genuine defect), or a body line containing literal while/for/until/done/*)/positional-splice text read as real code. Both were left out of #980's scope because their own state (a multi-line open/close-depth tracker, and an already-extracted function-body string rather than the raw file by line number) would need heredoc-tracking interleaved rather than simply wrapped -- a bigger, separate change.

Ranking: misreports per skills/manager/phases/findings.md's table -- not blocking, can ship behind this issue rather than block on a fix.

What would settle it: either route each function through heredoc-aware tracking (interleaving the open/close-depth state machine for _check_catch_all_in_loop; re-deriving line numbers from the function-body slice offset, as the n = text[:body_start].count("\\n") + 1 computation already does, for _check_single_line_delegate_positional), or -- if that is judged not worth doing -- soften both docstrings from "filed for a follow-up" to "not yet fixed" so they stop claiming a tracking issue that does not exist.

[AI-generated]

Activity

  1. added
    priority:high
    filed-by-loop
    lane-other
    on Oct 8, 2026
  2. self-assigned this
    on Oct 8, 2026
  3. removed their assignment
    on Oct 8, 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

    filed-by-looplane-otherpriority:high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions