pub struct HealthThresholdOverrides {
pub max_cyclomatic: Option<u16>,
pub max_cognitive: Option<u16>,
pub max_crap: Option<f64>,
}Expand description
Command-neutral threshold overrides for health complexity findings.
Fields§
§max_cyclomatic: Option<u16>Overrides the configured maximum cyclomatic complexity threshold.
max_cognitive: Option<u16>Overrides the configured maximum cognitive complexity threshold.
max_crap: Option<f64>Maximum CRAP score threshold. Functions meeting or exceeding this score are reported as complexity findings.
Trait Implementations§
Source§impl Clone for HealthThresholdOverrides
impl Clone for HealthThresholdOverrides
impl Copy for HealthThresholdOverrides
Source§impl Debug for HealthThresholdOverrides
impl Debug for HealthThresholdOverrides
Source§impl Default for HealthThresholdOverrides
impl Default for HealthThresholdOverrides
Source§impl PartialEq for HealthThresholdOverrides
impl PartialEq for HealthThresholdOverrides
impl StructuralPartialEq for HealthThresholdOverrides
Auto Trait Implementations§
impl Freeze for HealthThresholdOverrides
impl RefUnwindSafe for HealthThresholdOverrides
impl Send for HealthThresholdOverrides
impl Sync for HealthThresholdOverrides
impl Unpin for HealthThresholdOverrides
impl UnsafeUnpin for HealthThresholdOverrides
impl UnwindSafe for HealthThresholdOverrides
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