Skip to main content

Module report

Module report 

Source

Re-exports§

pub use grouping::OwnershipResolver;

Modules§

ci
codeclimate
dupes_grouping
Per-group attribution for fallow dupes --group-by.
github
Shared infrastructure for the GitHub-native text formats: --format github-annotations (workflow commands on stdout) and --format github-summary (step-summary markdown).
github_annotations
--format github-annotations: GitHub Actions workflow-command annotations (::error / ::warning / ::notice lines on stdout).
github_summary
--format github-summary: GitHub Actions job-summary markdown, written by workflows as fallow ... --format github-summary >> "$GITHUB_STEP_SUMMARY".
grouping
Grouping infrastructure for --group-by owner|directory|package.
sink
Ambient output sink for the report layer.
suggestions
Runtime fact adapters for next_steps[] builders.

Structs§

ReportContext
Shared context for all report dispatch functions.
WalkthroughHumanRender
The three line-groups of a human fallow review --walkthrough render: the orientation header and final status (stderr), and the staged tour body (stdout). The entry point in audit_brief.rs owns the stream split; this keeps the pure line builder behind the private human module while exposing exactly what the entry point needs.

Enums§

Level
Severity level for human-readable output.

Functions§

build_compact_lines
Build compact output lines for analysis results. Each issue is represented as a single prefix:details line.
build_duplication_markdown
Build markdown output for duplication results.
build_health_markdown
Build markdown output for health (complexity) results.
build_markdown
Build markdown output for analysis results.
build_walkthrough_human
Build the human walkthrough tour from the in-memory guide. Pure: no IO, no mutation. viewed decorates each file row; show_cleared expands the Cleared panel.
elide_common_prefix
Elide the common directory prefix between a base path and a target path. Only strips complete directory segments (never partial filenames). Returns the remaining suffix of target.
emit_json
Serialize a JSON value to pretty-printed stdout, returning the appropriate exit code.
format_display_path
Format a path for human-facing display: project-relative when the path is under root, falling back to the full path otherwise. Always forward-slash-normalized so Windows backslashes do not leak into terminal output.
normalize_uri
Normalize a path string to a valid URI: forward slashes and percent-encoded brackets.
plural
Return "s" for plural or "" for singular.
print_class_member_trace
Print class-member trace results (the --trace FILE:MEMBER fallback).
print_clone_trace
Print clone trace results.
print_cross_reference_findings
Print cross-reference findings (duplicated code that is also dead code).
print_dependency_trace
Print dependency trace results.
print_duplication_report
Print duplication analysis results in the configured format.
print_export_trace
Print export trace results.
print_file_trace
Print file trace results.
print_health_performance
Print health pipeline performance timings. In JSON mode, outputs to stderr to avoid polluting the JSON analysis output on stdout.
print_health_report
Print health (complexity) analysis results in the configured format.
print_impact_closure_trace
Print impact-closure trace results. JSON only emits the structured closure; human renders a short summary.
print_performance
Print pipeline performance timings. In JSON mode, outputs to stderr to avoid polluting the JSON analysis output on stdout.
print_results
Print analysis results in the configured format. Returns exit code 2 if serialization fails, SUCCESS otherwise.
relative_path
Strip the project root prefix from a path for display, falling back to the full path.
render_health_score
render_health_trend
severity_to_level
split_dir_filename
Split a path string into (directory, filename) for display. Directory includes the trailing /. If no directory, returns ("", filename).
strip_root_prefix
Recursively strip a project-root prefix from all string values in a JSON tree.
walkthrough_viewed_files
The root-relative files (in direction.order) the local ledger marked viewed against the guide’s current hash. Exposed so the markdown surface can collapse the same viewed files into Cleared that the human surface does, keeping the two formats consistent on the same on-disk --mark-viewed state.