Skip to content

Commit

Permalink
Make sure to exit 1 if we find an issue
Browse files Browse the repository at this point in the history
Signed-off-by: Levi Gross <levi@levigross.com>
  • Loading branch information
levigross committed Oct 30, 2016
1 parent fadc6d4 commit b92fa02
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit b92fa02

Please sign in to comment.