Documentation
¶
Overview ¶
Package codeanalysis is a deterministic, pure-Go maintainability + reliability rule engine: it walks a source tree and flags code smells (Kind=quality) and likely bugs (Kind=reliability) per (file, line), mirroring the SAST pattern analyzer. It NEVER executes the target and reads bounded (skips vendored/ binary/oversized files, follows no symlinks). Metric-derived quality signals (complexity, duplication) are layered on top by the codequality usecase.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analyzer ¶
type Analyzer struct {
// contains filtered or unexported fields
}
Analyzer is the pure-Go maintainability/reliability pattern engine.
func (*Analyzer) Analyze ¶
func (a *Analyzer) Analyze(ctx context.Context, root string) ([]ports.CodeAnalysisRawFinding, error)
Analyze walks root and returns deterministic quality/reliability findings, oldest-path first. It honors ctx cancellation and never aborts the whole scan on a single unreadable file.