pub enum CodeSmell {
GodStruct,
LongMethod,
DeepNesting,
FatInterface,
}Expand description
Code quality smells detectable without full type resolution.
Variants§
GodStruct
Struct with too many methods or dependencies.
LongMethod
Function body too long.
DeepNesting
Nesting depth exceeds threshold.
FatInterface
Trait with too many methods.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CodeSmell
impl<'de> Deserialize<'de> for CodeSmell
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CodeSmell
impl StructuralPartialEq for CodeSmell
Auto Trait Implementations§
impl Freeze for CodeSmell
impl RefUnwindSafe for CodeSmell
impl Send for CodeSmell
impl Sync for CodeSmell
impl Unpin for CodeSmell
impl UnsafeUnpin for CodeSmell
impl UnwindSafe for CodeSmell
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