Skip to main content

run_quality

Function run_quality 

Source
pub fn run_quality(
    sbom_path: PathBuf,
    profile: ScoringProfile,
    output: ReportFormat,
    output_file: Option<PathBuf>,
    show_recommendations: bool,
    show_metrics: bool,
    min_score: Option<f32>,
    fail_on_noncompliant: bool,
    no_color: bool,
    cra_sidecar_path: Option<PathBuf>,
    cra_product_class: Option<String>,
    as_of: Option<String>,
    enrichment: EnrichmentConfig,
) -> Result<i32>
Expand description

Run the quality command, returning the desired exit code.

Gate codes (below-threshold / non-compliant) only apply to runs that completed an assessment; usage/configuration errors propagate as Err, which the binary’s main() maps to process exit code 1.

The caller is responsible for calling std::process::exit() with the returned code when it is non-zero.