To check code against rules provided by Checkstyle.
Sonar SonarQubeTM Java Plugin
- Install the Checkstyle plugin through the Update Center (since Sonar SonarQubeTM 3.5) or download it into the SONARSONARQUBE_HOME/extensions/plugins directory from the Java Ecosystem page
- Restart the Sonar SonarQubeTM server
In the quality profile, activate some rules from Checkstyle and run a Sonar an analysis on your project.