2 <ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Android Application Rules"
3 xmlns="http://pmd.sf.net/ruleset/1.0.0"
4 xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"
5 xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd">
7 <description>Custom ruleset for ribot Android application</description>
9 <exclude-pattern>.*/R.java</exclude-pattern>
10 <exclude-pattern>.*/gen/.*</exclude-pattern>
12 <rule ref="rulesets/java/android.xml" />
13 <rule ref="rulesets/java/clone.xml" />
14 <rule ref="rulesets/java/finalizers.xml" />
15 <rule ref="rulesets/java/imports.xml">
16 <!-- Espresso is designed this way !-->
17 <exclude name="TooManyStaticImports" />
19 <rule ref="rulesets/java/logging-java.xml">
20 <!-- This rule wasn't working properly and given errors in every var call info -->
21 <exclude name="GuardLogStatementJavaUtil" />
23 <rule ref="rulesets/java/braces.xml">
24 <!-- We allow single line if's without braces -->
25 <exclude name="IfStmtsMustUseBraces" />
27 <rule ref="rulesets/java/strings.xml" />
28 <rule ref="rulesets/java/basic.xml" />
29 <rule ref="rulesets/java/naming.xml">
30 <exclude name="AbstractNaming" />
31 <exclude name="LongVariable" />
32 <exclude name="ShortMethodName" />
33 <exclude name="ShortVariable" />
34 <exclude name="ShortClassName" />
35 <exclude name="VariableNamingConventions" />