Thursday, July 23, 2020

golang: calculates cyclomatic complexities of functions in Go source code.

Just found an kind of old interesting project: https://github.com/fzipp/gocyclo


$ go get github.com/fzipp/gocyclo
$ cd ~/go/src/github.com/fzipp/gocyclo
$ go build gocyclo.go
$ cp gocyclo ~/go/bin
$ export PATH=$PATH:~/go/bin

$ gocyclo file.go

No comments:

Post a Comment