aboutsummaryrefslogtreecommitdiffstats
path: root/tests/integration/pmd-extensions/pmd-extensions.xml
diff options
context:
space:
mode:
authorfmallet <freddy.mallet@gmail.com>2010-09-21 09:56:29 +0000
committerfmallet <freddy.mallet@gmail.com>2010-09-21 09:56:29 +0000
commit157d76eb67fb4cf519fe45d9d2e194b2c15e831b (patch)
treee901764bf182deffa12a194ddc0c89e6526373f9 /tests/integration/pmd-extensions/pmd-extensions.xml
parent2f41ded2cee6bcb6438eeaeee3d3178e45e8e8b9 (diff)
downloadsonarqube-157d76eb67fb4cf519fe45d9d2e194b2c15e831b.tar.gz
sonarqube-157d76eb67fb4cf519fe45d9d2e194b2c15e831b.zip
Add IT test on PMD XPath rule
Diffstat (limited to 'tests/integration/pmd-extensions/pmd-extensions.xml')
-rw-r--r--tests/integration/pmd-extensions/pmd-extensions.xml18
1 files changed, 16 insertions, 2 deletions
diff --git a/tests/integration/pmd-extensions/pmd-extensions.xml b/tests/integration/pmd-extensions/pmd-extensions.xml
index abafbd45832..066df234898 100644
--- a/tests/integration/pmd-extensions/pmd-extensions.xml
+++ b/tests/integration/pmd-extensions/pmd-extensions.xml
@@ -12,6 +12,20 @@
<name>Avoid if without using brace</name>
<configKey>rulesets/extensions.xml/AvoidIfWithoutBrace</configKey>
<category name="Usability"/>
- <description>éviter les if sans crochet.</description>
- </rule>
+ <description></description>
+ </rule>
+ <rule key="PreventUseOfEmptyClass" priority="MAJOR">
+ <name><![CDATA[Prevent use of EmptyClass]]></name>
+ <configKey><![CDATA[net.sourceforge.pmd.rules.XPathRule]]></configKey>
+ <category name="Maintainability"/>
+ <description></description>
+ <param key="xpath" type="s">
+ <description><![CDATA[XPath expressions.]]></description>
+ <defaultValue>//VariableDeclarator[../Type/ReferenceType/ClassOrInterfaceType[@Image='EmptyClass']]</defaultValue>
+ </param>
+ <param key="message" type="s">
+ <description><![CDATA[Message to display when a violation occurs.]]></description>
+ <defaultValue>Prevent use of EmptyClass class</defaultValue>
+ </param>
+ </rule>
</rules> \ No newline at end of file