Skip to main content

render_sarif

Function render_sarif 

Source
pub fn render_sarif(report: &Report, max_results: usize) -> String
Expand description

Renders the report as a SARIF 2.1.0 JSON document.

§Arguments

  • report - The coverage report to render.
  • max_results - Maximum number of results to emit (default 1000).

§Returns

A JSON string containing the SARIF report.