Skip to main content

Crate sloc_report

Crate sloc_report 

Source

Structs§

ReportDeltaContext
Optional delta context for embedding a “Changes vs. Previous Scan” panel in the HTML report. Pass None to omit the panel (CLI, sub-reports).

Functions§

render_confluence_storage
Generates Confluence storage-format XHTML for a scan result page. Includes an info panel, summary stats, per-language table, and an optional link back to the full oxide-sloc HTML report.
render_confluence_wiki_markup
Generates Confluence wiki markup (legacy syntax) for copy/paste into a Confluence page editor.
render_html
Render a full standalone HTML report for the given analysis run.
render_html_with_delta
Render a full standalone HTML report with an optional delta panel.
render_sub_report_html
Render an embedded sub-report HTML fragment for the given analysis run.
write_csv
Write a two-section CSV: language summary followed by per-file detail.
write_diff_csv
Write a diff/delta as CSV.
write_diff_xlsx
Write a diff comparison as an Excel workbook.
write_html
Render an HTML report and write it to output_path.
write_html_with_pdf_link
Write an HTML report that embeds a relative link to a pre-generated PDF.
write_pdf_from_html
Launch a headless Chromium-based browser to print html_path as a PDF to pdf_path.
write_pdf_from_run
Generate a PDF summary report from AnalysisRun data using the pure-Rust printpdf crate.
write_xlsx
Write an analysis run as a multi-sheet Excel workbook.