MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / loc

Function loc

skills/remotion-to-hyperframes/scripts/lint_source.py:278–281  ·  view source on GitHub ↗
(offset: int)

Source from the content-addressed store, hash-verified

276 findings: list[Finding] = []
277
278 def loc(offset: int) -> tuple[int, int]:
279 line = src.count("\n", 0, offset) + 1
280 col = offset - (src.rfind("\n", 0, offset) + 1) + 1
281 return line, col
282
283 for rule in RULES:
284 for offset, override_message in rule.matcher(src):

Callers 1

lint_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected