fzipp / gocyclo

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

Add a flag to skip test files when calculating #30

Closed haleyrc closed 4 years ago

haleyrc commented 4 years ago

This PR adds a simple command line flag to skip test files (specifically just anything ending with _test). I found this useful when attempting to find low-hanging fruit for possible cleanup, but wanted to focus on code under test and not the tests themselves.