aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2010-10-18 14:21:04 +0000
committersimonbrandhof <simon.brandhof@gmail.com>2010-10-18 14:21:04 +0000
commit8e88960e9aaf0bf64de3cab0518eb256a19165ae (patch)
tree4e6265b3473f3e843f17b1ec15c75adaa68c6b3d /tests
parent03fb664f9ad6f7fe7c09c4b812f1f4aa9e1bd762 (diff)
downloadsonarqube-8e88960e9aaf0bf64de3cab0518eb256a19165ae.tar.gz
sonarqube-8e88960e9aaf0bf64de3cab0518eb256a19165ae.zip
pmd integration tests: use the new rules XML format
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/pmd-extensions/pmd-extensions.xml25
1 files changed, 16 insertions, 9 deletions
diff --git a/tests/integration/pmd-extensions/pmd-extensions.xml b/tests/integration/pmd-extensions/pmd-extensions.xml
index 066df234898..e4a820eb2a5 100644
--- a/tests/integration/pmd-extensions/pmd-extensions.xml
+++ b/tests/integration/pmd-extensions/pmd-extensions.xml
@@ -1,29 +1,36 @@
<rules>
- <rule key="MaximumMethodsCountCheck">
+ <rule>
+ <key>MaximumMethodsCountCheck</key>
<name>Maximum Methods Count Check</name>
<configKey>rulesets/extensions.xml/MaximumMethodsCountCheck</configKey>
- <category name="Usability"/>
+ <isoCategory>Usability</isoCategory>
<description>Maximum number of methods authorised</description>
- <param key="maxAuthorisedMethodsCount" type="i">
+ <param>
+ <key>maxAuthorisedMethodsCount</key>
<description>Maximum number of methods authorised. Default is 2.</description>
</param>
</rule>
- <rule key="AvoidIfWithoutBrace">
+ <rule>
+ <key>AvoidIfWithoutBrace</key>
<name>Avoid if without using brace</name>
<configKey>rulesets/extensions.xml/AvoidIfWithoutBrace</configKey>
- <category name="Usability"/>
+ <isoCategory>Usability</isoCategory>
<description></description>
</rule>
- <rule key="PreventUseOfEmptyClass" priority="MAJOR">
+ <rule>
+ <key>PreventUseOfEmptyClass</key>
+ <priority>MAJOR</priority>
<name><![CDATA[Prevent use of EmptyClass]]></name>
<configKey><![CDATA[net.sourceforge.pmd.rules.XPathRule]]></configKey>
- <category name="Maintainability"/>
+ <isoCategory>Maintainability</isoCategory>
<description></description>
- <param key="xpath" type="s">
+ <param>
+ <key>xpath</key>
<description><![CDATA[XPath expressions.]]></description>
<defaultValue>//VariableDeclarator[../Type/ReferenceType/ClassOrInterfaceType[@Image='EmptyClass']]</defaultValue>
</param>
- <param key="message" type="s">
+ <param>
+ <key>message</key>
<description><![CDATA[Message to display when a violation occurs.]]></description>
<defaultValue>Prevent use of EmptyClass class</defaultValue>
</param>