Help us shape the future of Go! Take the 2026 Go Developer Survey

c1

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: MIT Imports: 15 Imported by: 0

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.

Jump to

Keyboard shortcuts

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