Documentation
¶
Overview ¶
Package patterns provides architectural pattern detection in code graphs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AntiPattern ¶
type AntiPattern struct {
Type string `json:"type"`
Severity string `json:"severity"` // high, medium, low
Description string `json:"description"`
Nodes []string `json:"nodes"`
Suggestion string `json:"suggestion"`
}
AntiPattern represents a detected anti-pattern.
type ArchPattern ¶
type ArchPattern struct {
Type string `json:"type"`
Name string `json:"name"`
Description string `json:"description"`
Nodes []string `json:"nodes"`
Confidence float64 `json:"confidence"`
Location string `json:"location,omitempty"`
}
ArchPattern represents an architectural pattern instance.
type Detector ¶
type Detector struct {
// contains filtered or unexported fields
}
Detector identifies common architectural patterns in a code graph.
func NewDetector ¶
NewDetector creates a new pattern detector.
func (*Detector) Detect ¶
func (d *Detector) Detect() *PatternReport
Detect runs all pattern detection algorithms.
type PatternReport ¶
type PatternReport struct {
Architectural []ArchPattern `json:"architectural"`
Structural []StructPattern `json:"structural"`
AntiPatterns []AntiPattern `json:"anti_patterns"`
Summary PatternSummary `json:"summary"`
}
PatternReport contains all detected patterns.
Click to show internal directories.
Click to hide internal directories.