Browse Source

- rename ruleset
- add test_test to MainApp to test Codacy

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>

tobiasKaminsky 6 years ago
parent
commit
09da127d29
2 changed files with 7 additions and 2 deletions
  1. 1 1
      build.gradle
  2. 6 1
      ruleset.xml

+ 1 - 1
build.gradle

@@ -169,7 +169,7 @@ android {
     }
 
     tasks.register("pmd", Pmd) {
-        ruleSetFiles = files("${project.rootDir}/pmd-ruleset.xml")
+        ruleSetFiles = files("${project.rootDir}/ruleset.xml")
         ignoreFailures = false
         ruleSets = []
 

+ 6 - 1
pmd-ruleset.xml → ruleset.xml

@@ -22,4 +22,9 @@
         <exclude name="ShortVariable" />
         <exclude name="VariableNamingConventions" />
     </rule>
-</ruleset>
+    <rule ref="rulesets/java/naming.xml/MethodNamingConventions">
+        <properties>
+            <property name="violationSuppressXPath" value="//ClassOrInterfaceDeclaration[matches(@Image, '.*Test$')]" />
+        </properties>
+    </rule>
+</ruleset>