diff --git a/src/checkstyle/reporter/ExitCodeReporter.hx b/src/checkstyle/reporter/ExitCodeReporter.hx index b08f1565..5e17f73e 100644 --- a/src/checkstyle/reporter/ExitCodeReporter.hx +++ b/src/checkstyle/reporter/ExitCodeReporter.hx @@ -19,6 +19,6 @@ class ExitCodeReporter implements IReporter { public function fileFinish(f:CheckFile) {} public function addMessage(m:CheckMessage) { - failCheckCount++; + if (m.severity == ERROR) failCheckCount++; } } \ No newline at end of file