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 show the average complexity
-short only print the average without additional
formatting or output, ignores all other options
-skiptest skip test files when calculating complexity
The output fields for each line are: <complexity> <package> <function> <file:row:column>
Click to show internal directories.
Click to hide internal directories.