Skip to content
Java Apex XSLT Matlab ANTLR Swift Other
#89 Compare This branch is even with adangel:master.
Latest commit d6a0671 Apr 30, 2016 @adangel adangel Merge branch 'bug-1470'
Failed to load latest commit information.
pmd-apex Merge branch 'master' of https://github.com/Up2Go/pmd into pr-88 Apr 29, 2016
pmd-core Fix compile errors - commons-lang3 should be used Apr 29, 2016
pmd-cpp Merge branch 'pr-27' Jan 7, 2016
pmd-cs Revert "Next step towards compile ;-)" so that we don't loose Mar 21, 2016
pmd-dist Merge branch 'master' of https://github.com/Up2Go/pmd into Up2Go-master Apr 10, 2016
pmd-fortran Revert "Next step towards compile ;-)" so that we don't loose Mar 21, 2016
pmd-go Revert "Next step towards compile ;-)" so that we don't loose Mar 21, 2016
pmd-java Merge branch 'bug-1470' Apr 30, 2016
pmd-java8 Prepare next dev version on master branch: 5.5.0-SNAPSHOT Oct 4, 2015
pmd-javascript Use the source code position from core in javascript Apr 9, 2016
pmd-jsp Revert "Next step towards compile ;-)" so that we don't loose Mar 21, 2016
pmd-matlab Revert "Next step towards compile ;-)" so that we don't loose Mar 21, 2016
pmd-objectivec Merge branch 'tiobe-tiobe/fix_UTF8_escape_in_OBJC_string_literals' Feb 24, 2016
pmd-perl pmd-perl: remove pmd-build / site plugin, as perl doesn't have any ru… Jan 7, 2016
pmd-php Revert "Next step towards compile ;-)" so that we don't loose Mar 21, 2016
pmd-plsql Revert "Next step towards compile ;-)" so that we don't loose Mar 21, 2016
pmd-python Revert "Next step towards compile ;-)" so that we don't loose Mar 21, 2016
pmd-ruby Merge branch 'java-7' Nov 29, 2015
pmd-scala Revert "Next step towards compile ;-)" so that we don't loose Mar 21, 2016
pmd-swift Fix version of new swift module Mar 29, 2016
pmd-test Fix unit test - wsdl has no rulesets yet Apr 29, 2016
pmd-ui Revert "Next step towards compile ;-)" so that we don't loose Mar 21, 2016
pmd-vm Revert "Next step towards compile ;-)" so that we don't loose Mar 21, 2016
pmd-xml pom: Add a language module for Maven POM Apr 23, 2016
src/site Merge branch 'bug-1470' Apr 30, 2016
.gitignore update gitignore Mar 21, 2015
.travis-settings.xml Add travis.yml - see https://travis-ci.org/pmd/pmd Sep 26, 2015
.travis.yml Add MAVEN_OPTS="-Xmx500m" for travis-ci Apr 23, 2016
LICENSE Update changelog for scala pull request; update license infos Jan 18, 2015
NOTICE Update changelog for scala pull request; update license infos Jan 18, 2015
README.md documentation: mention Perl and Swift in readme Apr 23, 2016
do-release.sh Merge branch 'toolchains' Apr 10, 2016
example-toolchains.xml Add maven toolchains Apr 10, 2016
pom.xml site generation - use java8 in order to be able to generate javadoc Apr 11, 2016

README.md

PMD

Build Status

About

PMD is a source code analyzer. It finds common programming flaws like unused variables, empty catch blocks, unnecessary object creation, and so forth. It supports Java, JavaScript, Salesforce.com Apex, XML, XSL. Additionally it includes CPD, the copy-paste-detector. CPD finds duplicated code in Java, C, C++, C#, PHP, Ruby, Fortran, JavaScript, Salesforce.com Apex, Perl, Swift.

Source

Our latest source of PMD can be found on GitHub. Fork us!

How to build PMD?

You'll need to have a ~/.m2/toolchains.xml file setup with jdk 1.6 (for pmd 5.3.x), jdk 1.7 (for pmd 5.4.x and pmd 5.5.x) and jdk 1.8 (for some features in pmd 5.5.x). See maven toolchains. A example file can be found here: example-toolchains.xml.

Use maven in the top-level directory:

mvn clean package

This will create the zip files in the directory pmd-dist/target:

cd pmd-dist/target
ls *.zip

That's all !

How to build the documentation (maven site)?

Building the maven site is done with the following commands:

mvn clean install -DskipTests=true
mvn install site site:stage -Psite

You'll find the built site in the directory target/staging/.

Bug Reports

We are using Sourceforge for bug tracking. Please file your bugs at https://sourceforge.net/p/pmd/bugs/.

Pull Requests

Pull requests are always welcome: https://github.com/pmd/pmd/pulls

News and Website

More information can be found on our Website and on SourceForge.

Something went wrong with that request. Please try again.