pub struct IssueThresholds {
pub strong_coupling: f64,
pub far_distance: f64,
pub high_volatility: f64,
pub max_dependencies: usize,
pub max_dependents: usize,
pub max_functions: usize,
pub max_types: usize,
pub max_impls: usize,
pub min_primitive_params: usize,
pub strict_mode: bool,
pub japanese: bool,
}Expand description
Thresholds for identifying issues
Fields§
§strong_coupling: f64Minimum strength value considered “strong”
far_distance: f64Minimum distance value considered “far”
high_volatility: f64Minimum volatility value considered “high”
max_dependencies: usizeNumber of dependencies to consider “high efferent coupling”
max_dependents: usizeNumber of dependents to consider “high afferent coupling”
max_functions: usizeMaximum functions before flagging God Module
max_types: usizeMaximum types before flagging God Module
max_impls: usizeMaximum implementations before flagging God Module
min_primitive_params: usizeMinimum primitive parameter count for Primitive Obsession
strict_mode: boolStrict mode: only show Medium/High/Critical issues
japanese: boolShow explanations in Japanese
Trait Implementations§
Source§impl Clone for IssueThresholds
impl Clone for IssueThresholds
Source§fn clone(&self) -> IssueThresholds
fn clone(&self) -> IssueThresholds
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IssueThresholds
impl Debug for IssueThresholds
Auto Trait Implementations§
impl Freeze for IssueThresholds
impl RefUnwindSafe for IssueThresholds
impl Send for IssueThresholds
impl Sync for IssueThresholds
impl Unpin for IssueThresholds
impl UnwindSafe for IssueThresholds
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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>
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