From b92fa02ff4118681e8c5e0a2dafbc56f9176cf82 Mon Sep 17 00:00:00 2001 From: Levi Gross Date: Sat, 29 Oct 2016 20:22:08 -0400 Subject: [PATCH] Make sure to exit 1 if we find an issue Signed-off-by: Levi Gross --- main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.go b/main.go index 5516e8a..1f52445 100644 --- a/main.go +++ b/main.go @@ -227,4 +227,9 @@ func main() { } else { 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) + } }