Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type C1Analyzer ¶
type C1Analyzer struct {
// contains filtered or unexported fields
}
C1Analyzer implements the pipeline.Analyzer interface for C1: Code Health metrics. It also implements GoAwareAnalyzer for Go-specific analysis via SetGoPackages.
func NewC1Analyzer ¶
func NewC1Analyzer(tsParser *parser.TreeSitterParser) *C1Analyzer
NewC1Analyzer creates a C1Analyzer with Tree-sitter parser for multi-language analysis.
func (*C1Analyzer) Analyze ¶
func (a *C1Analyzer) Analyze(targets []*types.AnalysisTarget) (*types.AnalysisResult, error)
Analyze runs all 6 C1 sub-analyses on the given packages and returns a combined AnalysisResult with Category "C1".
func (*C1Analyzer) Name ¶
func (a *C1Analyzer) Name() string
Name returns the analyzer display name.
func (*C1Analyzer) SetGoPackages ¶
func (a *C1Analyzer) SetGoPackages(pkgs []*parser.ParsedPackage)
SetGoPackages stores Go-specific parsed packages for use during Analyze.
Click to show internal directories.
Click to hide internal directories.