fzipp / gocyclo

Calculate cyclomatic complexities of functions in Go source code.
BSD 3-Clause "New" or "Revised" License
1.33k stars 81 forks source link

Add a flag to print average complexity in a short format #32

Closed haleyrc closed 3 years ago

haleyrc commented 4 years ago

This is useful in CI scenarios where we want to fail or warn over a certain upper-limit for average complexity, but don't want to do a bunch of shell acrobatics to get this number.

bkielbasa commented 4 years ago

Hi! I'm working on the alternative for this project https://github.com/bkielbasa/cyclop If you want to contribute, just do it :) I'll be happy to hear about ideas and PRs.