8000 GitHub - yeroo/gocyclo: Calculate cyclomatic complexities of functions in Go source code.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

yeroo/gocyclo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Command gocyclo calculates cyclomatic complexities of functions in Go source code.

For more information on the metric refer to https://en.wikipedia.org/wiki/Cyclomatic_complexity.

To install, run

$ go get github.com/nodirt/gocyclo

Usage:

$ gocyclo [<flag> ...] <Go file or package> ...

Examples:

$ gocyclo .
$ gocyclo main.go
$ gocyclo -top 10 src/
$ gocyclo -over 25 docker
$ gocyclo -avg .

The output fields for each line are:

<complexity> <full function name> <file:row:column>

About

Calculate cyclomatic complexities of functions in Go source code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%
0