INNER CODE UNIT · Python

check_for_issues

panther-labs/panther-analysis · .scripts/claude_review.py:242

def check_for_issues(review_output):
    """Determine if the review found issues."""
    # Match only the verdict line: **Overall:** PASS or **Overall:** ISSUES FOUND
    # Use MULTILINE so ^ anchors to line start, preventing body text matches
    if re.search(
        r"^\*{0,2}Overall:?\*{0,2}\s*\*{0,2}ISSUES FOUND\*{0,2}",
        review_output,
        re.IGNORECASE | re.MULTILINE,
    ):
        return True
    if re.search(
        r"^\*{0,2}Overall:?\*{0,2}\s*\*{0,2}PASS\*{0,2}",
        review_output,
        re.IGNORECASE | re.MULTILINE,
    ):
        return False
    # Fallback: check for emoji markers
    if "\u26a0\ufe0f" in review_output or "\u274c" in review_output:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…