Skip to content
Java Apex XSLT Matlab ANTLR Swift Other
Pull request Compare This branch is even with adangel:master.
Failed to load latest commit information.
pmd-apex Merge branch 'master' of https://github.com/Up2Go/pmd into Up2Go-master May 21, 2016
pmd-core Update changelog May 21, 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 'constant-interface' of https://github.com/Monits/pmd in… May 21, 2016
pmd-java8 Prepare next dev version on master branch: 5.5.0-SNAPSHOT Oct 4, 2015
pmd-javascript javascript: move test files from src/main/resources to src/test/resou… May 20, 2016
pmd-jsp Small code enhancements, basically reordering variable declarations, … May 15, 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 Small code enhancements, basically reordering variable declarations, … May 15, 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 Small code enhancements, basically reordering variable declarations, … May 15, 2016
pmd-ui Revert "Next step towards compile ;-)" so that we don't loose Mar 21, 2016
pmd-vm Small code enhancements, basically reordering variable declarations, … May 15, 2016
pmd-xml pom: Add a language module for Maven POM Apr 23, 2016
src/site Update changelog May 21, 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 travis-ci: set MAVEN_OPTS in ~/.mavenrc May 21, 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 Revert "Update README.md" May 21, 2016
do-release.sh Merge branch 'pmd/5.3.x' May 1, 2016
example-toolchains.xml Add maven toolchains Apr 10, 2016
pom.xml Update m-jar-p and m-assembly-p to be java9 ready May 21, 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.