Skip to main content

Module patterns

Module patterns 

Source
Expand description

Design pattern detection via graph queries.

Detects common design patterns (Factory, Observer, Singleton, Strategy, Decorator) by querying the existing call/inheritance graph.

Structs§

PatternMatch
A single detected design-pattern instance.
PatternParticipant
A symbol participating in a detected pattern.
PatternReport
Aggregated pattern-detection report.

Functions§

detect_all
Run all pattern detectors and return a combined report.
detect_filtered
Run detectors and optionally keep only the given pattern type.
format_json
Render report as pretty-printed JSON.
format_report
Render report as human-readable text grouped by pattern type.