(code: str, path: str = _FL_PATH)
| 23 | |
| 24 | |
| 25 | def _violations(code: str, path: str = _FL_PATH) -> list[tuple[int, str]]: |
| 26 | c = RawNoexceptChecker() |
| 27 | file_content = _make(code, path) |
| 28 | if not c.should_process_file(path): |
| 29 | return [] |
| 30 | c.check_file_content(file_content) |
| 31 | return c.violations.get(path, []) |
| 32 | |
| 33 | |
| 34 | # ── File filtering ─────────────────────────────────────────────────────────── |
no test coverage detected