From 1ccaebd29e2e39ee465f2ab02b916639d23ea2ab Mon Sep 17 00:00:00 2001 From: Romain Pelisse Date: Sat, 22 Mar 2008 17:54:39 +0000 Subject: [PATCH] Adding a Checkstyle configuration file and enabling it in the mvn2 build. This checkstyle configuration will check for missing/invalid javadoc or missing license (Already 5000 erros to correct with only those !) Also added xref and javadoc generation in mvn2 build. git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5918 51baf565-9d33-0410-a72c-fc3788e3496d --- pmd/etc/checkstyle-config.xml | 60 +++++++++++++++++++++++++++++++++++ pmd/pom.xml | 32 ++++++++++++++----- 2 files changed, 84 insertions(+), 8 deletions(-) create mode 100644 pmd/etc/checkstyle-config.xml diff --git a/pmd/etc/checkstyle-config.xml b/pmd/etc/checkstyle-config.xml new file mode 100644 index 0000000000..b7d585358a --- /dev/null +++ b/pmd/etc/checkstyle-config.xml @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pmd/pom.xml b/pmd/pom.xml index f7ec6b33cd..447f40b9ba 100644 --- a/pmd/pom.xml +++ b/pmd/pom.xml @@ -290,17 +290,33 @@ + + org.apache.maven.plugins + maven-jxr-plugin + + + org.apache.maven.plugins + maven-javadoc-plugin + + + org.apache.maven.plugins + maven-pmd-plugin + + true + utf-8 + 100 + 1.5 + + http://pmd.svn.sourceforge.net/svnroot/pmd/trunk/pmd/rulesets/internal/dogfood.xml + + + + org.apache.maven.plugins - maven-pmd-plugin + maven-checkstyle-plugin - true - utf-8 - 100 - 1.5 - - http://pmd.svn.sourceforge.net/svnroot/pmd/trunk/pmd/rulesets/internal/dogfood.xml - + etc/checkstyle-config.xml