pub struct AnalysisConfigBuilder { /* private fields */ }Expand description
Builder for AnalysisConfig with validation.
This builder collects all configuration values and validates them at build time, reporting ALL errors at once.
Implementations§
Source§impl AnalysisConfigBuilder
impl AnalysisConfigBuilder
Sourcepub fn parallel_from(self, parallel: bool, source: ConfigSource) -> Self
pub fn parallel_from(self, parallel: bool, source: ConfigSource) -> Self
Set parallel analysis with source tracking.
Sourcepub fn jobs_from(self, jobs: usize, source: ConfigSource) -> Self
pub fn jobs_from(self, jobs: usize, source: ConfigSource) -> Self
Set jobs with source tracking.
Sourcepub fn aggregate_only(self, aggregate_only: bool) -> Self
pub fn aggregate_only(self, aggregate_only: bool) -> Self
Set aggregate_only mode.
Sourcepub fn no_aggregation(self, no_aggregation: bool) -> Self
pub fn no_aggregation(self, no_aggregation: bool) -> Self
Set no_aggregation mode.
Sourcepub fn coverage_file(self, coverage_file: Option<PathBuf>) -> Self
pub fn coverage_file(self, coverage_file: Option<PathBuf>) -> Self
Set coverage file path.
Sourcepub fn coverage_file_from(
self,
coverage_file: Option<PathBuf>,
source: ConfigSource,
) -> Self
pub fn coverage_file_from( self, coverage_file: Option<PathBuf>, source: ConfigSource, ) -> Self
Set coverage file with source tracking.
Sourcepub fn enable_context(self, enable_context: bool) -> Self
pub fn enable_context(self, enable_context: bool) -> Self
Set enable_context mode.
Sourcepub fn multi_pass(self, multi_pass: bool) -> Self
pub fn multi_pass(self, multi_pass: bool) -> Self
Set multi_pass mode.
Sourcepub fn complexity_threshold(self, threshold: u32) -> Self
pub fn complexity_threshold(self, threshold: u32) -> Self
Set complexity threshold.
Sourcepub fn exclude_patterns(self, patterns: Vec<String>) -> Self
pub fn exclude_patterns(self, patterns: Vec<String>) -> Self
Set exclude patterns.
Sourcepub fn show_config_sources(self, show: bool) -> Self
pub fn show_config_sources(self, show: bool) -> Self
Set show_config_sources.
Sourcepub fn build(self) -> Result<AnalysisConfig, Vec<AnalysisError>>
pub fn build(self) -> Result<AnalysisConfig, Vec<AnalysisError>>
Build and validate the configuration.
Returns Ok(AnalysisConfig) if valid, or Err with ALL validation errors.
Sourcepub fn build_validated(self) -> AnalysisValidation<AnalysisConfig>
pub fn build_validated(self) -> AnalysisValidation<AnalysisConfig>
Build with validation using AnalysisValidation for error accumulation.
Sourcepub fn sources(&self) -> &HashMap<String, ConfigSource>
pub fn sources(&self) -> &HashMap<String, ConfigSource>
Get tracked sources for debugging.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AnalysisConfigBuilder
impl RefUnwindSafe for AnalysisConfigBuilder
impl Send for AnalysisConfigBuilder
impl Sync for AnalysisConfigBuilder
impl Unpin for AnalysisConfigBuilder
impl UnwindSafe for AnalysisConfigBuilder
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
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>
Converts
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>
Converts
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