Skip to content

[business-logic] diff_scan.go language-blind print( pattern and double-reported binding.pry #826

Description

@topcheer

File: internal/tool/diff_scan.go L36 + L40/L62.

Executed proofs: (1) \bprint( applies to all file types - 'logger.print(x)' in a .go file yields a 'debug-stmt' finding as if it were a Python debug print; (2) 'binding.pry' appears in BOTH debugStmtPatterns and debuggerPatterns, so one added line produces two findings (debugger warning + debug-stmt info).

Impact: Low - noisy false positives on non-Python code.
Fix: language-gate the Python patterns by file extension; remove binding.pry from one list.
Verified by independent re-review with executed ScanStagedDiffForIssues repro.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions