staranalysis

package
v0.1.0-dev.20260305000737 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 3 Imported by: 0

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 Hotspot

type Hotspot struct {
	File       string
	Name       string
	Line       int
	Cyclomatic int
	Cognitive  int
	LOC        int
}

Hotspot identifies a function that exceeds complexity thresholds.

type Provider

type Provider struct {
	Root string
}

Provider provides combined analysis of Starlark source files, combining stats, complexity scoring, indexing, and hotspot detection.

+devlore:access=immediate +devlore:bind Root=WorkDir

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL