Documentation
¶
Overview ¶
Package staranalysis provides combined analysis of Starlark source files, combining stats, complexity scoring, indexing, and hotspot detection.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalysisConfig ¶
type AnalysisConfig struct {
Hotspots bool
CyclomaticThreshold int // default 10
CognitiveThreshold int // default 15
WithIndex bool
}
AnalysisConfig controls what the Analyze function produces.
type AnalysisReport ¶
type AnalysisReport struct {
Stats *starstats.Stats
Complexity *starcomplexity.ComplexityReport
Hotspots []Hotspot
Index *starindex.Index // nil unless WithIndex
}
AnalysisReport combines stats, complexity, hotspots, and optionally index.
type Provider ¶
type Provider struct {
op.ProviderBase
Root string
}
Provider provides combined analysis of Starlark source files, combining stats, complexity scoring, indexing, and hotspot detection.
+devlore:access=immediate
func (*Provider) Analyze ¶
func (p *Provider) Analyze(files []string, cfg AnalysisConfig) (*AnalysisReport, error)
Analyze performs a combined analysis of all files.
+devlore:struct_param cfg=AnalysisConfig
Click to show internal directories.
Click to hide internal directories.