pub struct ChangeCouplingConfig {
pub max_files_per_commit: usize,
pub min_revisions: u32,
pub min_shared_revisions: u32,
pub min_degree: f64,
}Expand description
Thresholds for change coupling (change_coupling in fallow health).
The defaults are the Code Maat defaults. A pair of files is hidden coupling
when each file has minRevisions commits, the pair shares
minSharedRevisions commits, the coupling degree reaches minDegree, and
no import or re-export chain connects the two files.
Fields§
§max_files_per_commit: usizeSkip a commit that changes more analyzed files than this (default: 30, from 2 to 1000). Bulk commits (renames, format passes) create false pairs. The upper bound keeps the pair count of one commit small.
min_revisions: u32Minimum commits for each file of a pair (default: 5).
Minimum commits that change both files of a pair (default: 5).
min_degree: f64Minimum coupling degree, from 0 to 1 (default: 0.3). The degree is the number of shared commits divided by the mean commit count of the two files.
Implementations§
Trait Implementations§
Source§impl Clone for ChangeCouplingConfig
impl Clone for ChangeCouplingConfig
Source§impl Debug for ChangeCouplingConfig
impl Debug for ChangeCouplingConfig
Source§impl Default for ChangeCouplingConfig
impl Default for ChangeCouplingConfig
Source§impl<'de> Deserialize<'de> for ChangeCouplingConfig
impl<'de> Deserialize<'de> for ChangeCouplingConfig
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 ChangeCouplingConfig
impl JsonSchema for ChangeCouplingConfig
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