INNER CODE UNIT · Python

parece_fragmento

Hainrixz/whatsapp-agentkit · scripts/audit.py:254

def parece_fragmento(codigo: str) -> bool:
    """
    True si el bloque es obviamente ilustrativo y no codigo completo:
    tiene un '...' como linea propia o un comentario tipo '# ...'.
    """
    for linea in codigo.splitlines():
        limpia = linea.strip()
        if limpia == "..." or limpia == "# ...":
            return True
        if limpia.startswith("# ...") or limpia.endswith("..."):
            if limpia.startswith("#") or limpia == "...":
                return True
    return False


# ══════════════════════════════════════════════════════════════════════════
# CHEQUEO 1 — Los bloques Python de CLAUDE.md compilan
# ══════════════════════════════════════════════════════════════════════════

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…