Versions in this module Expand all Collapse all v0 v0.12.0 Mar 11, 2026 Changes in this version + var DefaultLSPServers = map[string]LSPServerConfig + func FormatLSPStatus(avail []LSPAvailability) []string + func LangDisplayName(lang string) string + type AbstractionResult struct + ConcreteDeps int + InterfaceParams int + TotalParams int + type DeepGoAnalyzer struct + func LoadGoProject(root string, patterns ...string) (*DeepGoAnalyzer, error) + func (a *DeepGoAnalyzer) AllResults() map[FuncKey]DeepResult + func (a *DeepGoAnalyzer) CouplingScore(pkg, funcName string) float64 + func (a *DeepGoAnalyzer) DepDepth(pkgPath string) int + func (a *DeepGoAnalyzer) FanIn(pkg, funcName string) int + func (a *DeepGoAnalyzer) FanOut(pkg, funcName string) int + func (a *DeepGoAnalyzer) Instability(pkgPath string) float64 + func (a *DeepGoAnalyzer) InterfaceSize(pkg, funcName string) int + func (a *DeepGoAnalyzer) Lookup(pkg, funcName string) (DeepResult, bool) + func (a *DeepGoAnalyzer) ParamAbstraction(pkg, funcName string) AbstractionResult + func (a *DeepGoAnalyzer) TypeAwareErrorWrapping(pkg, funcName string) int + func (a *DeepGoAnalyzer) UnusedExports() []UnusedSymbol + func (a *DeepGoAnalyzer) UnusedParams(pkg, funcName string) int + type DeepResult struct + FanIn int + FanOut int + IsDeadCode bool + type FuncKey struct + Name string + Pkg string + type LSPAnalyzer struct + func NewLSPAnalyzer(lang, rootDir string) (*LSPAnalyzer, error) + func (a *LSPAnalyzer) FanIn(file string, line, col int) (int, error) + func (a *LSPAnalyzer) FanOut(file string, line, col int) (int, error) + func (a *LSPAnalyzer) IsDeadCode(file string, line, col int) (bool, error) + func (a *LSPAnalyzer) OpenFile(file string) error + func (a *LSPAnalyzer) Shutdown() error + type LSPAvailability struct + Available bool + Command string + InstallHint string + Language string + func DetectLSPServers() []LSPAvailability + type LSPServerConfig struct + Args []string + Command string + type UnusedSymbol struct + FilePath string + Line int + Name string + Pkg string v0.11.0 Mar 11, 2026 Changes in this version + func Languages() []string + func Register(lang string, factory func() Analyzer) + type Analyzer interface + Analyze func(path string, src []byte, symbol string) (Metrics, error) + AnalyzeFile func(path string, src []byte) (FileMetrics, error) + Discover func(path string, src []byte) ([]Symbol, error) + Language func() string + func ForLanguage(lang string) Analyzer + type FileMetrics struct + GlobalMutableCount int + HasInitFunc bool + type GoAnalyzer struct + func NewGoAnalyzer() *GoAnalyzer + func (a *GoAnalyzer) Analyze(path string, src []byte, symbol string) (Metrics, error) + func (a *GoAnalyzer) AnalyzeFile(path string, src []byte) (FileMetrics, error) + func (a *GoAnalyzer) Discover(path string, src []byte) ([]Symbol, error) + func (a *GoAnalyzer) Language() string + type Metrics struct + AlgoComplexity string + CognitiveComplexity int + ContextNotFirst bool + CyclomaticComplexity int + DeferInLoop int + EmptyCatchBlocks int + ErrorsIgnored int + ErrorsNotWrapped int + Extra map[string]float64 + FuncLines int + GlobalMutableCount int + HardcodedSecrets int + HasDocComment bool + HasInitFunc bool + IsConstructor bool + IsExported bool + LoopNestingDepth int + MaxNestingDepth int + MethodCount int + NakedReturns int + NestedLoopPairs int + OsExitCalls int + PanicCalls int + ParamCount int + QuadraticPatterns int + ReceiverName string + RecursiveCalls int + ReturnCount int + UnsafeImports []string + func (m Metrics) ToEvidence() domain.Evidence + type PythonAnalyzer struct + func NewPythonAnalyzer() *PythonAnalyzer + func (a *PythonAnalyzer) Analyze(path string, src []byte, symbol string) (Metrics, error) + func (a *PythonAnalyzer) AnalyzeFile(path string, src []byte) (FileMetrics, error) + func (a *PythonAnalyzer) Discover(path string, src []byte) ([]Symbol, error) + func (a *PythonAnalyzer) Language() string + type RustAnalyzer struct + func NewRustAnalyzer() *RustAnalyzer + func (a *RustAnalyzer) Analyze(path string, src []byte, symbol string) (Metrics, error) + func (a *RustAnalyzer) AnalyzeFile(path string, src []byte) (FileMetrics, error) + func (a *RustAnalyzer) Discover(path string, src []byte) ([]Symbol, error) + func (a *RustAnalyzer) Language() string + type Symbol struct + EndLine int + Exported bool + Kind SymbolKind + Name string + Parent string + StartLine int + type SymbolKind int + const SymbolClass + const SymbolConstant + const SymbolFunction + const SymbolInterface + const SymbolMethod + func (k SymbolKind) String() string + type TSAnalyzer struct + func NewTSAnalyzer() *TSAnalyzer + func (a *TSAnalyzer) Analyze(path string, src []byte, symbol string) (Metrics, error) + func (a *TSAnalyzer) AnalyzeFile(path string, src []byte) (FileMetrics, error) + func (a *TSAnalyzer) Discover(path string, src []byte) ([]Symbol, error) + func (a *TSAnalyzer) Language() string