pub enum FindingKind {
Canonical,
Heuristic,
Style,
Conflict,
Naming,
FileStructure,
ImportOrganization,
Testing,
ErrorHandling,
Export,
DependencyWrapper,
Other,
}Expand description
Structural classification of a ConventionFinding.
Replaces ad-hoc string matching on description.contains("(heuristic)")
scattered across the pipeline. Each emit site sets the kind explicitly
at construction time; downstream consumers (filters, aggregators, the
review TUI) match on this enum instead of parsing free-form text.
Other is the Default fallback for legacy data deserialised from
older DBs that predate this field. New code MUST set the kind
explicitly.
Variants§
Canonical
Canonical library for a domain — emitted by dependency_usage.
Description shape: "Canonical {domain} library: {pkg}".
Heuristic
Heuristic name-based observation. Description shape:
"Likely {domain} library (heuristic): {pkg}" /
"Possible logging library (name heuristic): {module}".
Style
Logging style observation: "Logging style: {structured|unstructured} logging".
Conflict
Multiple competing libraries in the same file:
"Conflicting {domain} libraries in same file: A, B".
Naming
Naming-convention findings — function / parameter / type / file naming.
FileStructure
File-level structural conventions: by-feature dirs, src-layout, etc.
ImportOrganization
Import organization: ordering, grouping, blank-line separation.
Testing
Test-related conventions: framework, placement, fixture style.
ErrorHandling
Error handling conventions: Result types, custom enums, etc.
Export
Export / re-export conventions.
DependencyWrapper
Cross-file wrapper / facade detection in dependency_usage.
Other
Backward-compat fallback for findings deserialised from older DBs or from external callers that have not been migrated yet.
Trait Implementations§
Source§impl Clone for FindingKind
impl Clone for FindingKind
Source§fn clone(&self) -> FindingKind
fn clone(&self) -> FindingKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for FindingKind
Source§impl Debug for FindingKind
impl Debug for FindingKind
Source§impl Default for FindingKind
impl Default for FindingKind
Source§fn default() -> FindingKind
fn default() -> FindingKind
Source§impl<'de> Deserialize<'de> for FindingKind
impl<'de> Deserialize<'de> for FindingKind
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>,
impl Eq for FindingKind
Source§impl Hash for FindingKind
impl Hash for FindingKind
Source§impl PartialEq for FindingKind
impl PartialEq for FindingKind
Source§fn eq(&self, other: &FindingKind) -> bool
fn eq(&self, other: &FindingKind) -> bool
self and other values to be equal, and is used by ==.