Skip to main content

DebtmapConfig

Struct DebtmapConfig 

Source
pub struct DebtmapConfig {
Show 34 fields pub scoring: Option<ScoringWeights>, pub display: Option<DisplayConfig>, pub external_api: Option<ExternalApiConfig>, pub god_object_detection: Option<GodObjectConfig>, pub thresholds: Option<ThresholdsConfig>, pub languages: Option<LanguagesConfig>, pub ignore: Option<IgnoreConfig>, pub output: Option<OutputConfig>, pub context: Option<ContextConfig>, pub entropy: Option<EntropyConfig>, pub role_multipliers: Option<RoleMultipliers>, pub complexity_thresholds: Option<ComplexityThresholds>, pub error_handling: Option<ErrorHandlingConfig>, pub normalization: Option<NormalizationConfig>, pub loc: Option<LocCountingConfig>, pub tiers: Option<TierConfig>, pub role_coverage_weights: Option<RoleCoverageWeights>, pub role_multiplier_config: Option<RoleMultiplierConfig>, pub orchestrator_detection: Option<OrchestratorDetectionConfig>, pub orchestration_adjustment: Option<OrchestrationAdjustmentConfig>, pub classification: Option<ClassificationConfig>, pub mapping_patterns: Option<MappingPatternConfig>, pub coverage_expectations: Option<CoverageExpectations>, pub complexity_weights: Option<ComplexityWeightsConfig>, pub functional_analysis: Option<FunctionalAnalysisConfig>, pub boilerplate_detection: Option<BoilerplateDetectionConfig>, pub scoring_rebalanced: Option<RebalancedScoringConfig>, pub context_multipliers: Option<ContextMultipliers>, pub batch_analysis: Option<BatchAnalysisConfig>, pub retry: Option<RetryConfig>, pub analysis: Option<AnalysisSettings>, pub state_detection: Option<StateDetectionConfig>, pub data_flow_scoring: Option<DataFlowScoringConfig>, pub context_suggestion: Option<ContextConfig>,
}
Expand description

Root configuration structure for debtmap

Fields§

§scoring: Option<ScoringWeights>

Scoring weights configuration

§display: Option<DisplayConfig>

Display configuration for output formatting

§external_api: Option<ExternalApiConfig>

External API detection configuration

§god_object_detection: Option<GodObjectConfig>

God object detection configuration

§thresholds: Option<ThresholdsConfig>

Thresholds configuration

§languages: Option<LanguagesConfig>

Language configuration

§ignore: Option<IgnoreConfig>

Ignore patterns

§output: Option<OutputConfig>

Output configuration

§context: Option<ContextConfig>

Context-aware detection configuration

§entropy: Option<EntropyConfig>

Entropy-based complexity scoring configuration

§role_multipliers: Option<RoleMultipliers>

Role multipliers for semantic classification

§complexity_thresholds: Option<ComplexityThresholds>

Complexity thresholds for enhanced detection

§error_handling: Option<ErrorHandlingConfig>

Error handling detection configuration

§normalization: Option<NormalizationConfig>

Score normalization configuration

§loc: Option<LocCountingConfig>

Lines of code counting configuration

§tiers: Option<TierConfig>

Tier configuration for prioritization

§role_coverage_weights: Option<RoleCoverageWeights>

Role-based coverage weight multipliers

§role_multiplier_config: Option<RoleMultiplierConfig>

Role multiplier clamping configuration (spec 119)

§orchestrator_detection: Option<OrchestratorDetectionConfig>

Orchestrator detection configuration

§orchestration_adjustment: Option<OrchestrationAdjustmentConfig>

Orchestration score adjustment configuration (spec 110)

§classification: Option<ClassificationConfig>

Constructor detection configuration (spec 117)

§mapping_patterns: Option<MappingPatternConfig>

Pure mapping pattern detection configuration (spec 118)

§coverage_expectations: Option<CoverageExpectations>

Role-based coverage expectations (spec 119)

§complexity_weights: Option<ComplexityWeightsConfig>

Complexity weights configuration (spec 121)

§functional_analysis: Option<FunctionalAnalysisConfig>

AST-based functional pattern analysis configuration (spec 111)

§boilerplate_detection: Option<BoilerplateDetectionConfig>

Boilerplate detection configuration (spec 131)

§scoring_rebalanced: Option<RebalancedScoringConfig>

Rebalanced scoring configuration (spec 136)

§context_multipliers: Option<ContextMultipliers>

Context-aware dampening multipliers for non-production code (spec 191)

§batch_analysis: Option<BatchAnalysisConfig>

Batch analysis configuration for parallel processing (spec 203)

§retry: Option<RetryConfig>

Retry configuration for resilient operations (spec 205)

§analysis: Option<AnalysisSettings>

Advanced analysis settings (spec 207)

§state_detection: Option<StateDetectionConfig>

State field detection configuration (spec 202)

§data_flow_scoring: Option<DataFlowScoringConfig>

Data flow scoring configuration (spec 218)

§context_suggestion: Option<ContextConfig>

Context window suggestions configuration (spec 263)

Implementations§

Source§

impl DebtmapConfig

Source

pub fn get_ignore_patterns(&self) -> Vec<String>

Get ignore patterns from configuration

Returns a vector of glob patterns that should be excluded from analysis. If no configuration is found or no patterns are specified, returns an empty vector.

§Examples
use debtmap::config::DebtmapConfig;
let config = DebtmapConfig::default();
let patterns = config.get_ignore_patterns();
// patterns might contain ["tests/**/*", "*.test.rs"]

Trait Implementations§

Source§

impl Clone for DebtmapConfig

Source§

fn clone(&self) -> DebtmapConfig

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DebtmapConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for DebtmapConfig

Source§

fn default() -> DebtmapConfig

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for DebtmapConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for DebtmapConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> EnsureExt<T> for T

Source§

fn ensure<P, E>(self, predicate: P, error: E) -> Validation<T, NonEmptyVec<E>>
where P: Predicate<T>,

Validate that this value satisfies the given predicate. Read more
Source§

fn ensure_with<P, E, F>( self, predicate: P, error_fn: F, ) -> Validation<T, NonEmptyVec<E>>
where P: Predicate<T>, F: FnOnce(&T) -> E,

Validate with an error-generating function. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more