pub fn normalize_native(
analyzer: &str,
native: &[u8],
ctx: &NativeContext<'_>,
) -> Result<NormalizedReport, ExecError>Expand description
Turn one analyzer’s native output into a normalized report, using that analyzer’s adapter.
This is the single conversion both execution paths go through: a subprocess
run hands it the bytes it captured from the analyzer’s stdout, and
roteiro security ingest hands it the bytes of a report file produced by the
same analyzer in CI. The resulting Findings are equal because they came
out of the same function, not because two implementations were checked
against each other.
§Errors
Returns ExecError::UnknownAnalyzer if this build has no adapter for
analyzer, or whatever the adapter raises for output it cannot read.