pub struct ComplexityGate {
pub meta: GateMeta,
pub files_analyzed: usize,
pub high_complexity_files: Vec<HighComplexityFile>,
pub avg_cyclomatic: f64,
pub max_cyclomatic: u32,
pub threshold_exceeded: bool,
}Expand description
Complexity gate results.
Fields§
§meta: GateMeta§files_analyzed: usizeNumber of files analyzed for complexity.
high_complexity_files: Vec<HighComplexityFile>Files with high complexity (CC > threshold).
avg_cyclomatic: f64Average cyclomatic complexity across all analyzed files.
max_cyclomatic: u32Maximum cyclomatic complexity found.
threshold_exceeded: boolWhether the threshold was exceeded.
Trait Implementations§
Source§impl Clone for ComplexityGate
impl Clone for ComplexityGate
Source§fn clone(&self) -> ComplexityGate
fn clone(&self) -> ComplexityGate
Returns a duplicate of the value. Read more
1.0.0 · 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 ComplexityGate
impl Debug for ComplexityGate
Source§impl<'de> Deserialize<'de> for ComplexityGate
impl<'de> Deserialize<'de> for ComplexityGate
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 ComplexityGate
impl RefUnwindSafe for ComplexityGate
impl Send for ComplexityGate
impl Sync for ComplexityGate
impl Unpin for ComplexityGate
impl UnsafeUnpin for ComplexityGate
impl UnwindSafe for ComplexityGate
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