xref: /OpenGrok/dev/pmd_ruleset.xml (revision 9ac4fa2f823a002b205e02a51e3a1e3fa2ab5f83)
1*9ac4fa2fSVladimir Kotal<?xml version="1.0" encoding="UTF-8"?>
2*9ac4fa2fSVladimir Kotal<ruleset name="Custom ruleset for OpenGrok"
3*9ac4fa2fSVladimir Kotal    xmlns="http://pmd.sf.net/ruleset/1.0.0"
4*9ac4fa2fSVladimir Kotal    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5*9ac4fa2fSVladimir Kotal    xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
6*9ac4fa2fSVladimir Kotal    xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
7*9ac4fa2fSVladimir Kotal
8*9ac4fa2fSVladimir Kotal  <description>
9*9ac4fa2fSVladimir Kotal  Settings for PMD, tuned for the OpenGrok project.
10*9ac4fa2fSVladimir Kotal  </description>
11*9ac4fa2fSVladimir Kotal
12*9ac4fa2fSVladimir Kotal  <rule ref="rulesets/java/strings.xml"/>
13*9ac4fa2fSVladimir Kotal  <rule ref="rulesets/java/basic.xml"/>
14*9ac4fa2fSVladimir Kotal  <rule ref="rulesets/java/braces.xml"/>
15*9ac4fa2fSVladimir Kotal  <rule ref="rulesets/java/clone.xml"/>
16*9ac4fa2fSVladimir Kotal  <rule ref="rulesets/java/design.xml"/>
17*9ac4fa2fSVladimir Kotal  <rule ref="rulesets/java/finalizers.xml"/>
18*9ac4fa2fSVladimir Kotal  <rule ref="rulesets/java/imports.xml"/>
19*9ac4fa2fSVladimir Kotal  <rule ref="rulesets/java/junit.xml">
20*9ac4fa2fSVladimir Kotal<!-- enable bellow to push people to write asserts which are easier to understand -->
21*9ac4fa2fSVladimir Kotal      <exclude name="JUnitAssertionsShouldIncludeMessage"/>
22*9ac4fa2fSVladimir Kotal  </rule>
23*9ac4fa2fSVladimir Kotal  <rule ref="rulesets/java/logging-java.xml"/>
24*9ac4fa2fSVladimir Kotal  <rule ref="rulesets/java/migrating.xml"/>
25*9ac4fa2fSVladimir Kotal  <rule ref="rulesets/java/optimizations.xml">
26*9ac4fa2fSVladimir Kotal      <exclude name="AvoidInstantiatingObjectsInLoops"/>
27*9ac4fa2fSVladimir Kotal      <!-- Enable the following when we have fever reported warnings -->
28*9ac4fa2fSVladimir Kotal      <exclude name="LocalVariableCouldBeFinal"/>
29*9ac4fa2fSVladimir Kotal      <exclude name="MethodArgumentCouldBeFinal"/>
30*9ac4fa2fSVladimir Kotal  </rule>
31*9ac4fa2fSVladimir Kotal  <rule ref="rulesets/java/strictexception.xml"/>
32*9ac4fa2fSVladimir Kotal  <rule ref="rulesets/java/strings.xml"/>
33*9ac4fa2fSVladimir Kotal  <rule ref="rulesets/java/sunsecure.xml"/>
34*9ac4fa2fSVladimir Kotal  <rule ref="rulesets/java/typeresolution.xml">
35*9ac4fa2fSVladimir Kotal<!--    <properties>
36*9ac4fa2fSVladimir Kotal        <property name="IgnoreJUnitCompletely" value="true"/>
37*9ac4fa2fSVladimir Kotal    </properties> -->
38*9ac4fa2fSVladimir Kotal  </rule>
39*9ac4fa2fSVladimir Kotal  <rule ref="rulesets/java/unusedcode.xml"/>
40*9ac4fa2fSVladimir Kotal  <rule ref="rulesets/java/javabeans.xml/MissingSerialVersionUID"/>
41*9ac4fa2fSVladimir Kotal
42*9ac4fa2fSVladimir Kotal</ruleset>
43