Cyclop calculates cyclomatic complexities of functions or packages in Go source code.
Cyclop, compared to other alternative, calculates both function and package cyclomatic complexity.
go get github.com/bkielbasa/cyclop/cmd/cyclop cyclop .
-maxComplexity int- the max complexity calculated for a single function.
-packageAverage float64- the average cyclomatic complexity for a package. If the value is higher than
0it will reaise an error if the average will be higher.
-skipTests bool- should checks be executed in tests files.