Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ use crate::attack::AttackProfile;
use crate::axial::{AxialConfig, ExecutionCommand as AxialExecutionCommand};
use crate::i18n::Lang;
use crate::report::{format_diff, load_report, ReportOutputFormat, ReportTui, ReportView};
use crate::storage::{latest_reports, persist_report};
use crate::storage::{latest_reports, persist_report, resolve_storage_modes};
use anyhow::{anyhow, Context, Result};
use clap::{CommandFactory, Parser, Subcommand};
use clap_complete::{generate, Shell};
Expand Down Expand Up @@ -1110,7 +1110,7 @@ fn run_main() -> Result<()> {
Manifest::default()
}
};
let storage_modes = manifest.storage_modes();
let storage_modes = resolve_storage_modes(manifest.storage_modes());
let manifest_formats = manifest.report_formats();

match cli.command {
Expand Down
4 changes: 2 additions & 2 deletions src/report/sarif.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ pub struct SarifRegion {
}

/// Map WeakPointCategory to a stable rule ID
fn rule_id(category: &WeakPointCategory) -> &'static str {
pub(crate) fn rule_id(category: &WeakPointCategory) -> &'static str {
match category {
WeakPointCategory::UncheckedAllocation => "PA001",
WeakPointCategory::UnboundedAllocation => "PA001b",
Expand Down Expand Up @@ -144,7 +144,7 @@ fn rule_id(category: &WeakPointCategory) -> &'static str {
}

/// Map WeakPointCategory to a human-readable name
fn rule_name(category: &WeakPointCategory) -> &'static str {
pub(crate) fn rule_name(category: &WeakPointCategory) -> &'static str {
match category {
WeakPointCategory::UncheckedAllocation => "unchecked-allocation",
WeakPointCategory::UnboundedAllocation => "unbounded-allocation",
Expand Down
Loading
Loading