codeanalysis

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

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 New

func New() *Analyzer

New returns an analyzer with the built-in rule set.

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.

Jump to

Keyboard shortcuts

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