Try checkstyle.