Documentation
¶
Index ¶
- type Analyzer
- func (a *Analyzer) Analyze(ctx *core.AnalysisContext) []core.Finding
- func (a *Analyzer) Category() core.Category
- func (a *Analyzer) Description() string
- func (a *Analyzer) ID() string
- func (a *Analyzer) Name() string
- func (a *Analyzer) Needs() core.Requirements
- func (a *Analyzer) Stage() core.StageID
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) Description ¶
func (*Analyzer) Needs ¶
func (a *Analyzer) Needs() core.Requirements
Click to show internal directories.
Click to hide internal directories.