How do I fail the CI run from golint?

I’ve integrated ‘golint’ into my circle.yml. It is running correctly and I have set it up so that it is reporting flaws. However, it is not failing the CI run. I check the $? return and it is ‘0’ regardless of whether golint succeeds or reports problems. I assume this is why. How are people integrating linting w/ Go into their CI runs?

A little more searching found that golint is designed to return zero even when it finds lint. https://github.com/golang/lint/issues/65

1 Like