pub struct HealthEffectiveThresholds {
pub max_cyclomatic: u16,
pub max_cognitive: u16,
pub max_crap: f64,
pub max_unit_size: u32,
}Expand description
Resolved thresholds used to evaluate a health finding.
Fields§
§max_cyclomatic: u16Effective cyclomatic-complexity ceiling for the matched file.
max_cognitive: u16Effective cognitive-complexity ceiling for the matched file.
max_crap: f64Effective CRAP-score ceiling for the matched file.
max_unit_size: u32Effective unit-size ceiling (maximum function length in lines) for the
matched file, after applying any thresholdOverrides on top of the
global health.maxUnitSize default.
Trait Implementations§
Source§impl Clone for HealthEffectiveThresholds
impl Clone for HealthEffectiveThresholds
impl Copy for HealthEffectiveThresholds
Source§impl Debug for HealthEffectiveThresholds
impl Debug for HealthEffectiveThresholds
Source§impl<'de> Deserialize<'de> for HealthEffectiveThresholds
impl<'de> Deserialize<'de> for HealthEffectiveThresholds
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HealthEffectiveThresholds
impl RefUnwindSafe for HealthEffectiveThresholds
impl Send for HealthEffectiveThresholds
impl Sync for HealthEffectiveThresholds
impl Unpin for HealthEffectiveThresholds
impl UnsafeUnpin for HealthEffectiveThresholds
impl UnwindSafe for HealthEffectiveThresholds
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