| 14 | #[pyclass] |
| 15 | #[derive(Debug, Clone)] |
| 16 | pub struct Issue { |
| 17 | #[pyo3(get)] |
| 18 | pub rule_id: String, |
| 19 | #[pyo3(get)] |
| 20 | pub description: String, |
| 21 | #[pyo3(get)] |
| 22 | pub file_path: String, |
| 23 | #[pyo3(get)] |
| 24 | pub line_number: usize, |
| 25 | #[pyo3(get)] |
| 26 | pub code: String, |
| 27 | #[pyo3(get)] |
| 28 | pub severity: Severity, |
| 29 | #[pyo3(get)] |
| 30 | pub confidence: String, |
| 31 | #[pyo3(get)] |
| 32 | pub remediation: String, |
| 33 | /// CWE identifier inherited from the rule (e.g. "CWE-502"). Used for |
| 34 | /// cross-rule dedup and downstream SARIF/JSON output. |
| 35 | #[pyo3(get)] |
| 36 | pub cwe: Option<String>, |
| 37 | } |
| 38 | |
| 39 | // This new block exposes methods to Python |
| 40 | #[pymethods] |
nothing calls this directly
no outgoing calls
no test coverage detected