pub struct ComplexityOptions {Show 23 fields
pub analysis: AnalysisOptions,
pub max_cyclomatic: Option<u16>,
pub max_cognitive: Option<u16>,
pub max_crap: Option<f64>,
pub top: Option<usize>,
pub sort: ComplexitySort,
pub complexity_breakdown: bool,
pub complexity: bool,
pub file_scores: bool,
pub coverage_gaps: bool,
pub hotspots: bool,
pub ownership: bool,
pub ownership_emails: Option<OwnershipEmailMode>,
pub targets: bool,
pub css: bool,
pub css_deep: bool,
pub effort: Option<TargetEffort>,
pub score: bool,
pub since: Option<String>,
pub min_commits: Option<u32>,
pub coverage: Option<PathBuf>,
pub coverage_root: Option<PathBuf>,
pub coverage_relocated: bool,
}Expand description
Options for complexity / health analysis.
Fields§
§analysis: AnalysisOptionsShared analysis options.
max_cyclomatic: Option<u16>Override for the cyclomatic complexity threshold.
max_cognitive: Option<u16>Override for the cognitive complexity threshold.
max_crap: Option<f64>Override for the CRAP score threshold.
top: Option<usize>Cap on the number of reported findings.
sort: ComplexitySortSort order for complexity findings.
complexity_breakdown: boolInclude the per-metric complexity breakdown with each finding.
complexity: boolRequest the complexity findings section.
file_scores: boolRequest the per-file score section.
coverage_gaps: boolRequest the coverage-gap section.
hotspots: boolRequest the churn hotspot section.
ownership: boolInclude ownership data with hotspots; implies the hotspot section.
ownership_emails: Option<OwnershipEmailMode>Email privacy mode for ownership output; implies ownership when set.
targets: boolRequest the refactoring targets section.
css: boolInclude CSS / styling health.
css_deep: boolEnable deep cross-file CSS analysis.
effort: Option<TargetEffort>Filter refactoring targets by estimated effort; implies the targets section when set.
score: boolRequest the overall health score.
since: Option<String>Git time window (for example 30d) for churn-based sections.
min_commits: Option<u32>Minimum commit count for a file to count as a hotspot.
coverage: Option<PathBuf>Test coverage report path for coverage-aware sections.
coverage_root: Option<PathBuf>Absolute path prefix the coverage report recorded its files under.
coverage_relocated: boolThe coverage map was recorded against a different checkout of this
project, so function line numbers may have drifted arbitrarily.
Set internally by the audit base-worktree pass; leave false for
same-checkout coverage.
Trait Implementations§
Source§impl Clone for ComplexityOptions
impl Clone for ComplexityOptions
Source§impl Debug for ComplexityOptions
impl Debug for ComplexityOptions
Auto Trait Implementations§
impl Freeze for ComplexityOptions
impl RefUnwindSafe for ComplexityOptions
impl Send for ComplexityOptions
impl Sync for ComplexityOptions
impl Unpin for ComplexityOptions
impl UnsafeUnpin for ComplexityOptions
impl UnwindSafe for ComplexityOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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