Method
vulnerability_found
(&self, severity: &str, name: &str, progress: f32)
Source from the content-addressed store, hash-verified
| 193 | |
| 194 | #[allow(dead_code)] |
| 195 | pub fn vulnerability_found(&self, severity: &str, name: &str, progress: f32) { |
| 196 | self.add_event( |
| 197 | EventType::VulnerabilityFound { |
| 198 | severity: severity.to_string(), |
| 199 | }, |
| 200 | format!("🚨 Vulnerabilidade [{}]: {}", severity, name), |
| 201 | progress, |
| 202 | Some(serde_json::json!({ |
| 203 | "severity": severity, |
| 204 | "name": name, |
| 205 | })), |
| 206 | ); |
| 207 | } |
| 208 | |
| 209 | pub fn scan_completed(&self) { |
| 210 | self.add_event( |
Callers
nothing calls this directly
Tested by
no test coverage detected