pub struct BaselineMetrics {
pub total_code_lines: u64,
pub total_files: u64,
pub avg_cyclomatic: f64,
pub max_cyclomatic: u32,
pub avg_cognitive: f64,
pub max_cognitive: u32,
pub avg_nesting_depth: f64,
pub max_nesting_depth: u32,
pub function_count: u64,
pub avg_function_length: f64,
}Expand description
Aggregate baseline metrics for the entire codebase.
Fields§
§total_code_lines: u64Total lines of code across all files.
total_files: u64Total number of source files.
avg_cyclomatic: f64Average cyclomatic complexity across all functions.
max_cyclomatic: u32Maximum cyclomatic complexity found in any function.
avg_cognitive: f64Average cognitive complexity across all functions.
max_cognitive: u32Maximum cognitive complexity found in any function.
avg_nesting_depth: f64Average nesting depth across all functions.
max_nesting_depth: u32Maximum nesting depth found in any function.
function_count: u64Total number of functions analyzed.
avg_function_length: f64Average function length in lines.
Trait Implementations§
Source§impl Clone for BaselineMetrics
impl Clone for BaselineMetrics
Source§fn clone(&self) -> BaselineMetrics
fn clone(&self) -> BaselineMetrics
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 BaselineMetrics
impl Debug for BaselineMetrics
Source§impl Default for BaselineMetrics
impl Default for BaselineMetrics
Source§impl<'de> Deserialize<'de> for BaselineMetrics
impl<'de> Deserialize<'de> for BaselineMetrics
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 BaselineMetrics
impl RefUnwindSafe for BaselineMetrics
impl Send for BaselineMetrics
impl Sync for BaselineMetrics
impl Unpin for BaselineMetrics
impl UnsafeUnpin for BaselineMetrics
impl UnwindSafe for BaselineMetrics
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