complexity

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

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 reports cyclomatic complexity, function size, parameter count, flag arguments, and magic numbers in Go functions.

func NewAnalyzer

func NewAnalyzer() *Analyzer

NewAnalyzer creates a complexity analyzer with default thresholds.

func (*Analyzer) Analyze

func (a *Analyzer) Analyze(ctx *core.AnalysisContext) []core.Finding

func (*Analyzer) Category

func (a *Analyzer) Category() core.Category

func (*Analyzer) Description

func (a *Analyzer) Description() string

func (*Analyzer) ID

func (a *Analyzer) ID() string

func (*Analyzer) Name

func (a *Analyzer) Name() string

func (*Analyzer) Needs

func (a *Analyzer) Needs() core.Requirements

func (*Analyzer) Stage

func (a *Analyzer) Stage() core.StageID

Jump to

Keyboard shortcuts

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