pub struct ComplexityConfig {
pub max_cyclomatic: u32,
pub max_cognitive: u32,
pub max_complexity_increase: i32,
pub complexity_error: bool,
}Expand description
Complexity validation thresholds
Fields§
§max_cyclomatic: u32Maximum allowed cyclomatic complexity per function
max_cognitive: u32Maximum allowed cognitive complexity per function
max_complexity_increase: i32Maximum allowed complexity increase in a single delta
complexity_error: boolWhether complexity violations are errors
Trait Implementations§
Source§impl Clone for ComplexityConfig
impl Clone for ComplexityConfig
Source§fn clone(&self) -> ComplexityConfig
fn clone(&self) -> ComplexityConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComplexityConfig
impl Debug for ComplexityConfig
Source§impl Default for ComplexityConfig
impl Default for ComplexityConfig
Source§impl<'de> Deserialize<'de> for ComplexityConfig
impl<'de> Deserialize<'de> for ComplexityConfig
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 ComplexityConfig
impl RefUnwindSafe for ComplexityConfig
impl Send for ComplexityConfig
impl Sync for ComplexityConfig
impl Unpin for ComplexityConfig
impl UnsafeUnpin for ComplexityConfig
impl UnwindSafe for ComplexityConfig
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