(code: str, path: str = _PLATFORM_HEADER)
| 19 | |
| 20 | |
| 21 | def _violations(code: str, path: str = _PLATFORM_HEADER) -> list[tuple[int, str]]: |
| 22 | c = NoexceptFunctionChecker() |
| 23 | fc = _make(code, path) |
| 24 | if not c.should_process_file(path): |
| 25 | return [] |
| 26 | c.check_file_content(fc) |
| 27 | return c.violations.get(path, []) |
| 28 | |
| 29 | |
| 30 | # ── File filtering ────────────────────────────────────────────────────────── |
no test coverage detected