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

report

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadBoundaryRules added in v0.2.0

func LoadBoundaryRules(workspaceRoot string) ([]db.BoundaryRule, error)

Types

type AIMetrics added in v0.2.0

type AIMetrics struct {
	SCR float64 // Structural Clone Ratio
	DCR float64 // Dead Code Ratio
	BVI int     // Boundary Violations Index
	AOI float64 // Abstraction Overkill Index
	CDI float64 // Call Chain Depth Index

	TotalFunctions      int64
	ClonedFunctions     int64
	DeadFunctions       int64
	TotalClasses        int64
	InterfaceCount      int64
	ConcreteCount       int64
	ViolationsCount     int
	DeepCallChainsCount int64
}

func CalculateAIMetrics added in v0.2.0

func CalculateAIMetrics(database *db.Database, boundaryRules []db.BoundaryRule) (*AIMetrics, error)

type HealthAudit

type HealthAudit struct {
	GeneratedAt    time.Time
	GodObjects     []db.GodObjectResult
	BlackHoles     []db.BlackHoleResult
	Cycles         []db.CycleResult
	DeadCode       []db.DeadCodeResult
	DeepCallChains []db.DeepCallChainResult
	AIMetrics      *AIMetrics
}

func RunAudit

func RunAudit(database *db.Database, workspaceRoot string) (*HealthAudit, error)

func (*HealthAudit) RenderMarkdown

func (audit *HealthAudit) RenderMarkdown(workspaceRoot string) string

Jump to

Keyboard shortcuts

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