I'm trying to create a quality profile in Sonar 3.0.1 and to specify my pmd configuration file. But when I submit it, I've got the following error :
A PMD rule without 'ref' attribute can't be imported. see 'null'
Here the content of my extension file (sample taken at Sonar site) :
<rules>
<rule key="AvoidIfWithoutBrace">
<name>Avoid if without using brace</name>
<configKey>rulesets/extensions.xml/AvoidIfWithoutBrace</configKey>
<category name="Usability" />
<description>éviter les if sans crochet.</description>
</rule>
</rules>
Despite my search, I didn't find the reason of this error.
Thanks for your help.