MCPcopy Create free account
hub / github.com/openai/plugins / _locations

Function _locations

plugins/codex-security/scripts/report_projection.py:212–219  ·  view source on GitHub ↗
(finding: dict[str, Any])

Source from the content-addressed store, hash-verified

210
211
212def _locations(finding: dict[str, Any]) -> str:
213 rendered = []
214 for location in finding["locations"]:
215 start = location["startLine"]
216 end = location.get("endLine", start)
217 suffix = f":{start}" if end == start else f":{start}-{end}"
218 rendered.append(f"{location['path']}{suffix}")
219 return ", ".join(rendered)
220
221
222def _finding_sort_key(finding: dict[str, Any]) -> tuple[int, str, str]:

Callers 1

_finding_sectionFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected