(&self, f: &mut std::fmt::Formatter<'_>)
| 50 | |
| 51 | impl 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). |
nothing calls this directly
no outgoing calls
no test coverage detected