diff --git a/app/build.gradle b/app/build.gradle
index 2b189c60b..845e3dd7f 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -2,7 +2,7 @@ apply plugin: 'com.android.application'
apply plugin: 'checkstyle'
apply plugin: 'pmd'
-/* gets the version name from the latest Git tag, stripping the leading v off */
+/* gets the version name from the latest Git tag */
def getVersionName = { ->
def stdout = new ByteArrayOutputStream()
exec {
@@ -192,7 +192,7 @@ task checkstyle(type: Checkstyle) {
}
pmd {
- toolVersion = '5.5.1'
+ toolVersion = '6.20.0'
consoleOutput = true
}
@@ -202,7 +202,6 @@ task pmdMain(type: Pmd) {
ruleSets = [] // otherwise defaults clash with the list in rules.xml
source 'src/main/java'
include '**/*.java'
- exclude '**/kellinwood/**/*.java'
}
task pmdTest(type: Pmd) {
diff --git a/config/pmd/rules-main.xml b/config/pmd/rules-main.xml
index 5b33b45d8..81d6ca133 100644
--- a/config/pmd/rules-main.xml
+++ b/config/pmd/rules-main.xml
@@ -1,9 +1,13 @@
+ xmlns="http://pmd.sf.net/ruleset/1.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
+ xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
+
+ Rules for the project code aka "main".
+
+
+
-
diff --git a/config/pmd/rules-test.xml b/config/pmd/rules-test.xml
index 0889f5bcf..1d9d81a86 100644
--- a/config/pmd/rules-test.xml
+++ b/config/pmd/rules-test.xml
@@ -1,11 +1,17 @@
+ xmlns="http://pmd.sf.net/ruleset/1.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
+ xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
+
+ Rules for the test harness code aka "androidTest" and "test".
+
+
+
+
+
+
+
-
-
-
diff --git a/config/pmd/rules.xml b/config/pmd/rules.xml
index e9a161577..64b55aa49 100644
--- a/config/pmd/rules.xml
+++ b/config/pmd/rules.xml
@@ -1,52 +1,52 @@
+ xmlns="http://pmd.sf.net/ruleset/1.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
+ xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
+
+ Rules for the whole project
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+