Get the line number for a match position in file content.
(content: str, match_start: int)
| 237 | |
| 238 | |
| 239 | def _get_line_number(content: str, match_start: int) -> int: |
| 240 | """Get the line number for a match position in file content.""" |
| 241 | return content[:match_start].count("\n") + 1 |
| 242 | |
| 243 | |
| 244 | def _check_build_hpp_naming(src_dir: Path) -> list[str]: |
no test coverage detected