MCPcopy Create free account
hub / github.com/AIScientists-Dev/Flowtrace / cmd_lint

Function cmd_lint

crates/flowtrace-cli/src/main.rs:366–377  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

364}
365
366fn cmd_lint() -> Result<()> {
367 let root = trace_root_or_bail()?;
368 let r = load_trace(&root)?;
369 let warnings = lint(&r);
370 if warnings.is_empty() {
371 println!("clean ({} steps)", r.steps.len());
372 } else {
373 println!("{}", serde_json::to_string_pretty(&warnings)?);
374 std::process::exit(1);
375 }
376 Ok(())
377}
378
379fn cmd_show(fmt: &str, downstream: Option<&str>) -> Result<()> {
380 let root = trace_root_or_bail()?;

Callers 1

mainFunction · 0.85

Calls 3

trace_root_or_bailFunction · 0.85
load_traceFunction · 0.85
lintFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…