MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / fmt

Method fmt

atomic-canonical/src/gate.rs:52–66  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

50
51impl std::fmt::Display for ValidationReport {
52 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
53 if self.conforms {
54 return write!(f, "conforms: yes");
55 }
56 writeln!(f, "conforms: no ({} violation(s))", self.results.len())?;
57 for v in &self.results {
58 let path = v.path.as_deref().unwrap_or("-");
59 writeln!(
60 f,
61 " ✗ [{}] {} ({}): {}",
62 v.shape, v.focus_node, path, v.message
63 )?;
64 }
65 Ok(())
66 }
67}
68
69/// Validate a canonical Intent node against `IntentShape` (+ sub-shapes).

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected