With maven-pmd-plugin, I am able to configure it to scan my unit tests for PMD violations:
<configuration>
<rulesets>
<ruleset>/rulesets/junit.xml</ruleset>
</rulesets>
Sonar 2.0.1 doesn't seem to provide any way to add in new rulesets that I can see. Has anyone figured out how to do this?