Make sure to exit 1 if we find an issue

Signed-off-by: Levi Gross <levi@levigross.com>
This commit is contained in:
Levi Gross 2016-10-29 20:22:08 -04:00
parent fadc6d443d
commit b92fa02ff4

View file

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