Implement checkstyle rules in build and format accordingly.