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 flag to skip tests #33

Closed AnthonyMBonafide closed 3 years ago

AnthonyMBonafide commented 4 years ago

Add a flag which will exclude testing code from the generated report.

I think it is useful to be able to optionally exclude tests from the report. I am suggesting this be a flag and optional since the exclusion or inclusion of test source code is dependant on the developer(s) or project maintainer(s) and this would give flexibility to whatever they decide.

sebastianst commented 4 years ago

Yes, please merge #31

fzipp commented 3 years ago

Fixed by 4a36b7d43972d5dd35bc5204f7314dcb8cc848e4: -ignore flag added