pub struct AuditOptions {Show 15 fields
pub analysis: AnalysisOptions,
pub base: Option<String>,
pub production: bool,
pub production_dead_code: Option<bool>,
pub production_health: Option<bool>,
pub production_dupes: Option<bool>,
pub css: Option<bool>,
pub css_deep: Option<bool>,
pub gate: AuditGate,
pub max_crap: Option<f64>,
pub coverage: Option<PathBuf>,
pub coverage_root: Option<PathBuf>,
pub include_entry_exports: bool,
pub runtime_coverage: Option<PathBuf>,
pub min_invocations_hot: u64,
}Expand description
Options for changed-code audit analysis.
Fields§
§analysis: AnalysisOptionsShared analysis options.
base: Option<String>Git base reference for the changed-code comparison. None lets the
audit detect a base itself.
production: boolForce production mode for every audit domain.
production_dead_code: Option<bool>Production override for the dead-code domain; None defers to config.
production_health: Option<bool>Production override for the health domain; None defers to config.
production_dupes: Option<bool>Production override for the duplication domain; None defers to
config.
css: Option<bool>Enable CSS / styling analysis; None defers to config.
css_deep: Option<bool>Enable deep cross-file CSS analysis; None defers to config.
gate: AuditGateGate mode deciding which findings fail the audit.
max_crap: Option<f64>Fail the gate when a changed function exceeds this CRAP score.
coverage: Option<PathBuf>Test coverage report path for coverage-aware findings.
coverage_root: Option<PathBuf>Absolute path prefix the coverage report recorded its files under.
include_entry_exports: boolAlso report unused exports declared in entry-point files.
runtime_coverage: Option<PathBuf>Runtime coverage capture merged into the audit.
min_invocations_hot: u64Minimum recorded invocations for a code path to count as hot.
Trait Implementations§
Source§impl Clone for AuditOptions
impl Clone for AuditOptions
Source§impl Debug for AuditOptions
impl Debug for AuditOptions
Auto Trait Implementations§
impl Freeze for AuditOptions
impl RefUnwindSafe for AuditOptions
impl Send for AuditOptions
impl Sync for AuditOptions
impl Unpin for AuditOptions
impl UnsafeUnpin for AuditOptions
impl UnwindSafe for AuditOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more