Skip to main content

Module formatter

Module formatter 

Source
Expand description

Output formatting for analysis results across different modes.

Formats semantic analysis, call graphs, and directory structures into human-readable text. Handles multiline wrapping, pagination, and summary generation.

Structs§

FocusedPaginatedParams
Parameters for format_focused_paginated.

Enums§

FormatterError

Functions§

format_file_details
Format file-level semantic analysis results.
format_file_details_paginated
Format a paginated subset of functions for FileDetails mode. When verbose=false (default/compact): shows C: (if non-empty) and F: with wrapped rendering; omits I:. When verbose=true: shows C:, I:, and F: with wrapped rendering on the first page (offset == 0). Header shows position context: FILE: path (NL, start-end/totalF, CC, II).
format_file_details_summary
Format a compact summary of file details for large FileDetails output.
format_focused
Format focused symbol analysis with call graph.
format_focused_paginated
Format a paginated subset of callers or callees for SymbolFocus mode. Mode is determined by the mode parameter:
format_focused_summary
Format a compact summary of focused symbol analysis. Used when output would exceed the size threshold or when explicitly requested.
format_module_info
Format a ModuleInfo into a compact single-block string.
format_related_section
Format related files section (incoming/outgoing imports). Returns empty string when import_graph is None.
format_structure
Format directory structure analysis results.
format_structure_paginated
Format a paginated subset of files for Overview mode.
format_summary
Format a compact summary for large directory analysis results. Used when output would exceed the size threshold or when explicitly requested.