pub struct CompiledConfig {
pub exclude_tests: bool,
pub thresholds: ThresholdsConfig,
/* private fields */
}Expand description
Compiled configuration with glob patterns
Fields§
§exclude_tests: boolWhether to exclude test code from analysis
thresholds: ThresholdsConfigThreshold configuration
Implementations§
Source§impl CompiledConfig
impl CompiledConfig
Sourcepub fn from_config(config: CouplingConfig) -> Result<Self, ConfigError>
pub fn from_config(config: CouplingConfig) -> Result<Self, ConfigError>
Create a compiled config from raw config
Sourcepub fn set_exclude_tests(&mut self, exclude: bool)
pub fn set_exclude_tests(&mut self, exclude: bool)
Set exclude_tests flag (used by CLI –exclude-tests option)
Sourcepub fn is_prelude_module(&self, path: &str) -> bool
pub fn is_prelude_module(&self, path: &str) -> bool
Check if a module is marked as “prelude-like” (exempt from afferent coupling warnings)
Sourcepub fn should_exclude(&self, path: &str) -> bool
pub fn should_exclude(&self, path: &str) -> bool
Check if a path should be completely excluded from analysis
Sourcepub fn should_ignore(&self, path: &str) -> bool
pub fn should_ignore(&self, path: &str) -> bool
Check if a path should be ignored (deprecated: use should_exclude)
Sourcepub fn prelude_module_count(&self) -> usize
pub fn prelude_module_count(&self) -> usize
Get the list of prelude module patterns (for reporting)
Sourcepub fn get_subdomain(&self, path: &str) -> Option<Subdomain>
pub fn get_subdomain(&self, path: &str) -> Option<Subdomain>
Get the DDD subdomain classification for a path, if any
Sourcepub fn has_subdomain_config(&self) -> bool
pub fn has_subdomain_config(&self) -> bool
Check if config has any subdomain classifications
Sourcepub fn get_volatility_override(&mut self, path: &str) -> Option<Volatility>
pub fn get_volatility_override(&mut self, path: &str) -> Option<Volatility>
Get overridden volatility for a path, if any
Priority: explicit volatility override > subdomain classification
Sourcepub fn get_volatility(
&mut self,
path: &str,
git_volatility: Volatility,
) -> Volatility
pub fn get_volatility( &mut self, path: &str, git_volatility: Volatility, ) -> Volatility
Get volatility with override, falling back to git-based value
Sourcepub fn has_volatility_overrides(&self) -> bool
pub fn has_volatility_overrides(&self) -> bool
Check if config has any volatility overrides
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CompiledConfig
impl RefUnwindSafe for CompiledConfig
impl Send for CompiledConfig
impl Sync for CompiledConfig
impl Unpin for CompiledConfig
impl UnsafeUnpin for CompiledConfig
impl UnwindSafe for CompiledConfig
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more