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 mark exit status #48

Closed hangxie closed 1 year ago

hangxie commented 2 years ago

Can we have a CLI parameter to let gocyclo exit with non-zero value in case there are files meet -over criteria?

I'm thinking of using gocyclo in CI job, instead of pipe output to a file, then check if the file is empty or not to determine offending files, it will be great to have an option mentioned above.

hangxie commented 1 year ago

This feature is actually there already.