See #1690. Let checkstyle fail builds when some rules are violated

Somehow github's web editor decided to change the whitespace. Sorry for that. Only thing i changed was "warning" to "error"