pub struct RuleConfig {Show 25 fields
pub min_quality_signal: u32,
pub min_modularity: f64,
pub min_acyclicity: f64,
pub min_depth: f64,
pub min_equality: f64,
pub min_redundancy: f64,
pub max_cycles: usize,
pub max_coupling_ratio: f64,
pub max_function_complexity: usize,
pub max_cognitive_complexity: usize,
pub max_file_lines: usize,
pub max_function_lines: usize,
pub no_god_files: bool,
pub high_file_fan_in: usize,
pub high_file_fan_out: usize,
pub large_file_lines: usize,
pub max_large_file_findings: usize,
pub low_call_resolution_min_calls: usize,
pub low_call_resolution_ratio: f64,
pub high_function_fan_in: usize,
pub high_function_fan_out: usize,
pub max_call_hotspot_findings: usize,
pub max_upward_layer_violations: usize,
pub no_tests_detected: bool,
pub language_overrides: BTreeMap<String, LanguageRuleOverride>,
}Fields§
§min_quality_signal: u32§min_modularity: f64§min_acyclicity: f64§min_depth: f64§min_equality: f64§min_redundancy: f64§max_cycles: usize§max_coupling_ratio: f64§max_function_complexity: usize§max_cognitive_complexity: usize§max_file_lines: usize§max_function_lines: usize§no_god_files: bool§high_file_fan_in: usize§high_file_fan_out: usize§large_file_lines: usize§max_large_file_findings: usize§low_call_resolution_min_calls: usize§low_call_resolution_ratio: f64§high_function_fan_in: usize§high_function_fan_out: usize§max_call_hotspot_findings: usize§max_upward_layer_violations: usize§no_tests_detected: bool§language_overrides: BTreeMap<String, LanguageRuleOverride>Per-language overrides keyed by language_name (case-insensitive).
Each override field, when set, takes precedence over the matching
global field for files in that language. Useful when one language’s
idioms make a global threshold either too strict or too lax (e.g.
Rust match arms inflate cyclomatic vs Python’s flat conditionals).
Trait Implementations§
Source§impl Clone for RuleConfig
impl Clone for RuleConfig
Source§fn clone(&self) -> RuleConfig
fn clone(&self) -> RuleConfig
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 RuleConfig
impl Debug for RuleConfig
Source§impl Default for RuleConfig
impl Default for RuleConfig
Source§impl<'de> Deserialize<'de> for RuleConfigwhere
RuleConfig: Default,
impl<'de> Deserialize<'de> for RuleConfigwhere
RuleConfig: Default,
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 RuleConfig
impl RefUnwindSafe for RuleConfig
impl Send for RuleConfig
impl Sync for RuleConfig
impl Unpin for RuleConfig
impl UnsafeUnpin for RuleConfig
impl UnwindSafe for RuleConfig
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