pub enum IssueType {
Show 16 variants
GlobalComplexity,
CascadingChangeRisk,
InappropriateIntimacy,
HighEfferentCoupling,
HighAfferentCoupling,
UnnecessaryAbstraction,
CircularDependency,
HiddenCoupling,
AccidentalVolatility,
ScatteredExternalCoupling,
ShallowModule,
PassThroughMethod,
HighCognitiveLoad,
GodModule,
PublicFieldExposure,
PrimitiveObsession,
}Expand description
Types of coupling problems
Variants§
GlobalComplexity
Strong coupling spanning a long distance
CascadingChangeRisk
Strong coupling to a frequently changing component
InappropriateIntimacy
Intrusive coupling across boundaries (field/internals access)
HighEfferentCoupling
A module with too many dependencies
HighAfferentCoupling
A module that too many others depend on
UnnecessaryAbstraction
Weak coupling where stronger might be appropriate
CircularDependency
Circular dependency detected
HiddenCoupling
Strong temporal co-change without an explicit code dependency
AccidentalVolatility
Supporting or generic module changing more often than expected
ScatteredExternalCoupling
Direct coupling to a third-party crate is spread across many modules
ShallowModule
Module with interface complexity close to implementation complexity
PassThroughMethod
Method that only delegates to another method without adding value
HighCognitiveLoad
Module requiring too much knowledge to understand/modify
GodModule
Module with too many functions, types, or implementations
PublicFieldExposure
Public fields exposed to external modules (should use getters/methods)
PrimitiveObsession
Functions with too many primitive parameters (consider newtype)
Implementations§
Source§impl IssueType
impl IssueType
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Get a detailed description of what this issue type means
Sourcepub fn description_japanese(&self) -> &'static str
pub fn description_japanese(&self) -> &'static str
Get a Japanese description of what this issue type means.
Trait Implementations§
impl Copy for IssueType
impl Eq for IssueType
impl StructuralPartialEq for IssueType
Auto Trait Implementations§
impl Freeze for IssueType
impl RefUnwindSafe for IssueType
impl Send for IssueType
impl Sync for IssueType
impl Unpin for IssueType
impl UnsafeUnpin for IssueType
impl UnwindSafe for IssueType
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,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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