Skip to content

structlint.reporting

Helper functions for formatting and displaying analysis results in the console.

make_methods_report(info: list[tuple[Path, str, list[str], list[str]]]) -> str

display_disallowed(disallowed: dict[str, set[str]]) -> str

make_imports_report(disallowed_internal: dict[str, set[str]], disallowed_external: dict[str, set[str]]) -> str

make_missing_report(missing: list[str], painter: Callable[[str], str]) -> str

make_unexpected_report(unexpected: list[str], painter: Callable[[str], str]) -> str

make_order_report(actual: list[str], expected: list[str], overlap: set[str], painter: Callable[[str], str]) -> str

make_discrepancy_report(title: str, actual: list[str], expected: list[str], missing: list[str], unexpected: list[str], overlap: set[str], specific_path: Path, root_dir: Path)