gocyclo

command
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Gocyclo calculates the cyclomatic complexities of functions and methods in Go source code.

Usage:

gocyclo [<flag> ...] <Go file or directory> ...

Flags:

-over N               show functions with complexity > N only and
                      return exit code 1 if the output is non-empty
-top N                show the top N most complex functions only
-avg, -avg-short      show the average complexity;
                      the short option prints the value without a label
-total, -total-short  show the total complexity;
                      the short option prints the value without a label
-ignore REGEX         exclude files matching the given regular expression

The output fields for each line are: <complexity> <package> <function> <file:line:column>

Jump to

Keyboard shortcuts

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