Versions in this module Expand all Collapse all v1 v1.3.0 Oct 6, 2026 Changes in this version + func PossibleMethodRecursion(files []*ast.File) bool + func RecursiveFuncs(files []*ast.File, info *types.Info) map[*ast.FuncDecl]bool type ScanResult + func ScanComplexityWithRecursion(fn *ast.FuncDecl, recursive bool, includeDiagnostics bool) ScanResult type Stat + func ComplexityStatsForFiles(files []*ast.File, fset *token.FileSet, info *types.Info, stats []Stat) []Stat + func ComplexityStatsForFilesWithDiagnostic(files []*ast.File, fset *token.FileSet, info *types.Info, stats []Stat, ...) []Stat v1.2.2 Oct 3, 2026 v1.2.1 Feb 24, 2026 Changes in this version + func CountDown(start int) iter.Seq[int] + func DoCount() + func DoFilter() + func FilteredMap(m map[string]int, threshold int) iter.Seq2[string, int] + func ForRangeIter(all iter.Seq[int]) v1.2.0 Dec 7, 2024 Changes in this version + type Diagnostic struct + Inc int + Nesting int + Pos DiagnosticPosition + Text string + func (d Diagnostic) String() string + type DiagnosticPosition struct + Column int + Line int + Offset int + func (pos DiagnosticPosition) String() string + type ScanResult struct + Complexity int + Diagnostics []diagnostic + func ScanComplexity(fn *ast.FuncDecl, includeDiagnostics bool) ScanResult type Stat + Diagnostics []Diagnostic + func ComplexityStatsWithDiagnostic(f *ast.File, fset *token.FileSet, stats []Stat, enableDiagnostics bool) []Stat v1.1.4 Dec 5, 2024 v1.1.3 Jul 26, 2024 v1.1.2 Oct 19, 2023 v1.1.1 Sep 6, 2023retracted v1.1.0 Sep 6, 2023 v1.0.7 Jul 17, 2023 v1.0.6 Jul 4, 2022 v1.0.5 Jul 14, 2021 v1.0.4 Jul 14, 2021 v1.0.3 Jul 14, 2021 v1.0.2 Jul 13, 2021 Changes in this version + const Doc + var Analyzer = &analysis.Analyzer v1.0.1 Dec 18, 2019 v1.0.0 Sep 26, 2019 Changes in this version + func Complexity(fn *ast.FuncDecl) int + type Stat struct + Complexity int + FuncName string + PkgName string + Pos token.Position + func ComplexityStats(f *ast.File, fset *token.FileSet, stats []Stat) []Stat + func (s Stat) String() string