pub enum FormatArg {
Table,
Json,
Markdown,
Csv,
Sarif,
Advice,
ScorecardRow,
Html,
}Expand description
Output format for the CRAP report.
Variants§
Table
Human-readable table with ANSI colors
Json
Nested JSON envelope (pipe to jq for filtering)
Markdown
GitHub-flavored Markdown — paste into PR comments or issues
Csv
RFC 4180 CSV — one row per function, no summary
Sarif
SARIF v2.1.0 — for GitHub Code Scanning (upload-sarif@v3)
Advice
Agent-oriented JSON with Diagnostic remediation hints (experimental)
ScorecardRow
Single mokumo-scorecard Row::CrapDelta JSON object — for scorecard
aggregator consumption (mokumo schema_version=2). Issue #111.
Html
Self-contained HTML dashboard with summary stats, risk distribution, and per-file collapsible function tables. Inline CSS, no external assets, mobile-responsive. Issue #71.
Trait Implementations§
impl Copy for FormatArg
Auto Trait Implementations§
impl Freeze for FormatArg
impl RefUnwindSafe for FormatArg
impl Send for FormatArg
impl Sync for FormatArg
impl Unpin for FormatArg
impl UnsafeUnpin for FormatArg
impl UnwindSafe for FormatArg
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more