codeanalysis

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package codeanalysis is a deterministic, pure-Go maintainability and reliability rule engine. It never executes target code. Every accepted text byte is scanned in fixed-size chunks; only bounded prefixes needed by legacy source, XML, and notebook analyzers are retained.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrScanBudget        = errors.New("code analysis scan budget exceeded")
	ErrFindingsTruncated = errors.New("code analysis findings truncated")
	ErrFileChanged       = errors.New("code analysis file changed during scan")
)

Functions

This section is empty.

Types

type Analyzer

type Analyzer struct {
	// contains filtered or unexported fields
}

func New

func New() *Analyzer

func (*Analyzer) Analyze

func (a *Analyzer) Analyze(ctx context.Context, root string) (ports.CodeAnalysisReport, error)

Jump to

Keyboard shortcuts

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