pub struct HealthGateOptions {
pub min_score: Option<f64>,
pub min_severity: Option<FindingSeverity>,
pub report_only: bool,
pub fail_on_stale_baseline: bool,
pub fail_on_parse_error: bool,
pub fail_on_issues: bool,
}Expand description
Command-neutral health exit gate options.
Fields§
§min_score: Option<f64>Fail the run when the health score (0-100) falls below this value.
min_severity: Option<FindingSeverity>Fail the run when any finding at or above this severity exists.
report_only: boolRender the score and findings but never fail CI on a health gate.
fail_on_stale_baseline: boolFail the run when a loaded --baseline has entries that match nothing.
fail_on_parse_error: boolFail the run when a source file did not parse cleanly (the
parse-error gate). Set from --fail-on-parse-error; the CLI adds the
failOnParseError config key before the gate is evaluated.
fail_on_issues: boolRaise every warn complexity finding to error, for
--fail-on-issues. Dead-code warn findings are raised the same way,
so every finding of such a run fails it.
Trait Implementations§
Source§impl Clone for HealthGateOptions
impl Clone for HealthGateOptions
impl Copy for HealthGateOptions
Source§impl Debug for HealthGateOptions
impl Debug for HealthGateOptions
Source§impl Default for HealthGateOptions
impl Default for HealthGateOptions
Source§impl PartialEq for HealthGateOptions
impl PartialEq for HealthGateOptions
impl StructuralPartialEq for HealthGateOptions
Auto Trait Implementations§
impl Freeze for HealthGateOptions
impl RefUnwindSafe for HealthGateOptions
impl Send for HealthGateOptions
impl Sync for HealthGateOptions
impl Unpin for HealthGateOptions
impl UnsafeUnpin for HealthGateOptions
impl UnwindSafe for HealthGateOptions
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
Mutably borrows from an owned value. Read more
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> ⓘ
Converts
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> ⓘ
Converts
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