MCPcopy Create free account
hub / github.com/idank/explainshell / _audit_scan_synopsis_no_spaces_run

Function _audit_scan_synopsis_no_spaces_run

tests/evals/render/render_eval.py:1218–1230  ·  view source on GitHub ↗
(
    markdown: str, html: str
)

Source from the content-addressed store, hash-verified

1216
1217
1218def _audit_scan_synopsis_no_spaces_run(
1219 markdown: str, html: str
1220) -> list[tuple[int, str]]:
1221 hits: list[tuple[int, str]] = []
1222 in_synopsis = False
1223 for line_no, line in enumerate(markdown.splitlines(), 1):
1224 stripped = line.strip()
1225 if stripped.startswith("#"):
1226 in_synopsis = bool(_AUDIT_SYNOPSIS_HEADING_RE.match(stripped))
1227 continue
1228 if in_synopsis and len(line) > 200 and not _AUDIT_WHITESPACE_RE.search(line):
1229 hits.append((line_no, line[:80] + "..."))
1230 return hits
1231
1232
1233AUDIT_RULES: list[tuple[str, AuditScanner, str]] = [

Callers

nothing calls this directly

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected