Created
February 26, 2018 11:46
-
-
Save TheDancerCodes/01915b8dad58682de1e1b737a19ff1c3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Android Application Rules" | |
xmlns="http://pmd.sf.net/ruleset/1.0.0" | |
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd" | |
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"> | |
<description>Custom ruleset for Android application</description> | |
<exclude-pattern>.*/R.java</exclude-pattern> | |
<exclude-pattern>.*/gen/.*</exclude-pattern> | |
<rule ref="rulesets/java/android.xml" /> | |
<rule ref="rulesets/java/clone.xml" /> | |
<rule ref="rulesets/java/finalizers.xml" /> | |
<rule ref="rulesets/java/imports.xml"> | |
<!-- Espresso is designed this way !--> | |
<exclude name="TooManyStaticImports" /> | |
</rule> | |
<rule ref="rulesets/java/logging-java.xml" /> | |
<rule ref="rulesets/java/braces.xml" /> | |
<rule ref="rulesets/java/strings.xml" /> | |
<rule ref="rulesets/java/basic.xml" /> | |
<rule ref="rulesets/java/naming.xml"> | |
<exclude name="AbstractNaming" /> | |
<exclude name="LongVariable" /> | |
<exclude name="ShortMethodName" /> | |
<exclude name="ShortVariable" /> | |
<exclude name="VariableNamingConventions" /> | |
</rule> | |
</ruleset> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment