Skip to content

Make gocyclo ignore test functions.

Compare
Choose a tag to compare
@jameycribbs jameycribbs released this 19 Feb 19:35
· 2 commits to master since this release

GoReportCard was complaining about Hare's tests. Hare makes extensive use of table-driven tests so it has a lot of anonymous functions within the main test function of a test file. I don't think this is a valid problem of complexity, so I added "gocyclo:ignore" directive to all the test files so that gocyclo would ignore them. I'm not sure if this is kosher or not.