3rf / codecoroner

tool for detecting unused functions and variables in Go source code
http://kyleerf.com
142 stars 22 forks source link

Script friendly exit codes #17

Open palsivertsen opened 6 years ago

palsivertsen commented 6 years ago

When using codecoroner it would be useful to use exit code to detect any errors instead of parsing stdout/stderr.

Suggesting to add a non zero exit code if codecoroner found any unused objects.