pub enum QualityDimension {
Complexity,
Abstraction,
Deletion,
Hallucination,
Style,
Security,
Performance,
Duplication,
ErrorHandling,
Testing,
BestPractices,
}
Expand description
Represents the different dimensions of code quality analysis
Variants§
Complexity
Unnecessary complexity in algorithms, abstractions, or control flow
Abstraction
Poor or inappropriate abstractions, design patterns or separation of concerns
Deletion
Unintended deletion of code or functionality without proper replacement
Hallucination
References to non-existent components, APIs, or behaviors
Style
Inconsistencies in code style, naming, or formatting
Security
Security vulnerabilities or insecure coding practices
Performance
Inefficient algorithms, operations, or resource usage
Duplication
Repeated logic, functionality, or copy-pasted code
ErrorHandling
Insufficient or improper error handling and recovery
Testing
Gaps in test coverage or tests that miss critical scenarios
BestPractices
Violations of established best practices or coding standards
Implementations§
Source§impl QualityDimension
impl QualityDimension
Sourcepub fn all() -> &'static [QualityDimension]
pub fn all() -> &'static [QualityDimension]
Get all quality dimensions
Sourcepub fn display_name(&self) -> &'static str
pub fn display_name(&self) -> &'static str
Get the display name for a dimension
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Get the description for a dimension
Trait Implementations§
Source§impl Clone for QualityDimension
impl Clone for QualityDimension
Source§fn clone(&self) -> QualityDimension
fn clone(&self) -> QualityDimension
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for QualityDimension
impl Debug for QualityDimension
Source§impl<'de> Deserialize<'de> for QualityDimension
impl<'de> Deserialize<'de> for QualityDimension
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>,
Source§impl JsonSchema for QualityDimension
impl JsonSchema for QualityDimension
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreSource§impl PartialEq for QualityDimension
impl PartialEq for QualityDimension
Source§impl Serialize for QualityDimension
impl Serialize for QualityDimension
impl Copy for QualityDimension
impl Eq for QualityDimension
impl StructuralPartialEq for QualityDimension
Auto Trait Implementations§
impl Freeze for QualityDimension
impl RefUnwindSafe for QualityDimension
impl Send for QualityDimension
impl Sync for QualityDimension
impl Unpin for QualityDimension
impl UnwindSafe for QualityDimension
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.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