(offset: int)
| 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): |