pub struct HealthConfig {
pub max_cyclomatic: u16,
pub max_cognitive: u16,
pub max_crap: f64,
pub ignore: Vec<String>,
pub ownership: OwnershipConfig,
}Expand description
Configuration for complexity health metrics (fallow health).
Fields§
§max_cyclomatic: u16Maximum allowed cyclomatic complexity per function (default: 20). Functions exceeding this threshold are reported.
max_cognitive: u16Maximum allowed cognitive complexity per function (default: 15). Functions exceeding this threshold are reported.
max_crap: f64Maximum allowed CRAP (Change Risk Anti-Patterns) score per function
(default: 30.0). CRAP combines cyclomatic complexity with test
coverage: high complexity plus low coverage produces a high CRAP
score. Functions meeting or exceeding this threshold are reported.
Use --coverage with Istanbul data for accurate per-function CRAP;
otherwise fallow estimates coverage from the module graph.
ignore: Vec<String>Glob patterns to exclude from complexity analysis.
ownership: OwnershipConfigOwnership analysis configuration. Controls bot filtering and email
privacy mode for --ownership output.
Trait Implementations§
Source§impl Clone for HealthConfig
impl Clone for HealthConfig
Source§fn clone(&self) -> HealthConfig
fn clone(&self) -> HealthConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HealthConfig
impl Debug for HealthConfig
Source§impl Default for HealthConfig
impl Default for HealthConfig
Source§impl<'de> Deserialize<'de> for HealthConfig
impl<'de> Deserialize<'de> for HealthConfig
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>,
Source§impl JsonSchema for HealthConfig
impl JsonSchema for HealthConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more