aboutsummaryrefslogtreecommitdiffstats
path: root/tests/integration/pmd-extensions/pmd-extensions.xml
blob: 720108e5d2b89c9f4827372755d326d35a94cc5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<rules>
  <rule>
    <key>MaximumMethodsCountCheck</key>
    <name>Maximum Methods Count Check</name>
    <configKey>rulesets/extensions.xml/MaximumMethodsCountCheck</configKey>
    <category name="Usability"/>
    <description>Maximum number of methods authorised</description>
      <param>
        <key>maxAuthorisedMethodsCount</key>
        <description>Maximum number of methods authorised. Default is 2.</description>
      </param>
  </rule>
  <rule>
    <key>AvoidIfWithoutBrace</key>
    <name>Avoid if without using brace</name>
    <configKey>rulesets/extensions.xml/AvoidIfWithoutBrace</configKey>
    <category name="Usability"/>
    <description></description>
  </rule>
  <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"/>
    <description></description>
    <param>
      <key>xpath</key>
      <description><![CDATA[XPath expressions.]]></description>
      <defaultValue>//VariableDeclarator[../Type/ReferenceType/ClassOrInterfaceType[@Image='EmptyClass']]</defaultValue>          
    </param>
    <param>
      <key>message</key>
      <description><![CDATA[Message to display when a violation occurs.]]></description>
      <defaultValue>Prevent use of EmptyClass class</defaultValue>      
    </param>    
  </rule>   
 </rules>