Merge pull request #58 from levigross/master

Make sure to exit 1 if we find an issue
This commit is contained in:
Grant Murphy 2016-10-31 15:09:43 -07:00 committed by GitHub
commit 4cd269f3a6

View file

@ -227,4 +227,9 @@ func main() {
} else {
output.CreateReport(os.Stdout, *flagFormat, &analyzer)
}
// Do we have an issue? If so exit 1
if len(analyzer.Issues) > 0 {
os.Exit(1)
}
}