use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct BaselineComplexitySection {
pub total_functions: usize,
pub avg_function_length: f64,
pub max_function_length: usize,
pub avg_cyclomatic: f64,
pub max_cyclomatic: usize,
#[serde(skip_serializing_if = "Option::is_none")]
pub avg_cognitive: Option<f64>,
#[serde(skip_serializing_if = "Option::is_none")]
pub max_cognitive: Option<usize>,
#[serde(skip_serializing_if = "Option::is_none")]
pub avg_nesting_depth: Option<f64>,
#[serde(skip_serializing_if = "Option::is_none")]
pub max_nesting_depth: Option<usize>,
pub high_risk_files: usize,
}