From 595574d3fefb87741588371d37c2c35f3bb6a207 Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Thu, 18 Oct 2012 14:34:06 +0100 Subject: Include PMD checking Change-Id: Ib4717891c591911e68a5b27b7af4e666b6296d48 diff --git a/Makefile b/Makefile index 38041b0..778e5ca 100644 --- a/Makefile +++ b/Makefile @@ -17,8 +17,8 @@ dist/lib/stroke.jar: third-party/jzlib/jzlib.jar third-party/icu4j.jar third-par ant ${DEFINES} .PHONY : test -test: dist/lib/stroke.jar third-party/cobertura/cobertura.jar third-party/findbugs/lib/findbugs.jar - ant ${DEFINES} -DJUNIT_JAR=${JUNIT} -Dcobertura-jar=third-party/cobertura/cobertura.jar -Djakarta-oro-jar=third-party/cobertura/lib/jakarta-oro-2.0.8.jar -Dlog4j-jar=third-party/cobertura/lib/log4j-1.2.9.jar -Dasm-jar=third-party/cobertura/lib/asm-3.0.jar -Dasm-tree-jar=third-party/cobertura/lib/asm-tree-3.0.jar -Dfindbugs.home=third-party/findbugs test +test: dist/lib/stroke.jar third-party/cobertura/cobertura.jar third-party/findbugs/lib/findbugs.jar third-party/pmd/lib/pmd-5.0.0.jar + ant ${DEFINES} -DJUNIT_JAR=${JUNIT} -Dcobertura-jar=third-party/cobertura/cobertura.jar -Djakarta-oro-jar=third-party/cobertura/lib/jakarta-oro-2.0.8.jar -Dlog4j-jar=third-party/cobertura/lib/log4j-1.2.9.jar -Dasm-jar=third-party/cobertura/lib/asm-3.0.jar -Dasm-tree-jar=third-party/cobertura/lib/asm-tree-3.0.jar -Dfindbugs.home=third-party/findbugs -Dpmd.home=third-party/pmd test third-party/aalto/aalto-xml.jar: mkdir -p third-party/aalto @@ -52,6 +52,12 @@ third-party/findbugs/lib/findbugs.jar: tar -xvzf third-party/findbugs-2.0.1.tar.gz -C third-party/ mv third-party/findbugs-2.0.1 third-party/findbugs +third-party/pmd/lib/pmd-5.0.0.jar: + mkdir -p third-party + curl -L 'http://sourceforge.net/projects/pmd/files/pmd/5.0.0/pmd-bin-5.0.0.zip/download' -o third-party/pmd-bin-5.0.0.zip + unzip third-party/pmd-bin-5.0.0.zip -d third-party + mv third-party/pmd-bin-5.0.0 third-party/pmd + .git/hooks/commit-msg: curl -k https://git.swift.im/review/tools/hooks/commit-msg -o .git/hooks/commit-msg chmod u+x .git/hooks/commit-msg diff --git a/build.xml b/build.xml index ceaa51d..e8c75e8 100644 --- a/build.xml +++ b/build.xml @@ -136,7 +136,24 @@ - + + + + + + + + + rulesets/java/basic.xml + java-basic + + + + + + + +