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) + } }