Skip to content
Java Apex XSLT Matlab ANTLR Swift Other
#102 Compare This branch is even with adangel:master.
Latest commit 17b6b17 Jun 25, 2016 @adangel adangel Update pmd plugin
Failed to load latest commit information.
pmd-apex [maven-release-plugin] prepare for next development iteration Jun 25, 2016
pmd-core [maven-release-plugin] prepare for next development iteration Jun 25, 2016
pmd-cpp [maven-release-plugin] prepare for next development iteration Jun 25, 2016
pmd-cs [maven-release-plugin] prepare for next development iteration Jun 25, 2016
pmd-dist [maven-release-plugin] prepare for next development iteration Jun 25, 2016
pmd-fortran [maven-release-plugin] prepare for next development iteration Jun 25, 2016
pmd-go [maven-release-plugin] prepare for next development iteration Jun 25, 2016
pmd-java [maven-release-plugin] prepare for next development iteration Jun 25, 2016
pmd-java8 [maven-release-plugin] prepare for next development iteration Jun 25, 2016
pmd-javascript [maven-release-plugin] prepare for next development iteration Jun 25, 2016
pmd-jsp [maven-release-plugin] prepare for next development iteration Jun 25, 2016
pmd-matlab [maven-release-plugin] prepare for next development iteration Jun 25, 2016
pmd-objectivec [maven-release-plugin] prepare for next development iteration Jun 25, 2016
pmd-perl [maven-release-plugin] prepare for next development iteration Jun 25, 2016
pmd-php [maven-release-plugin] prepare for next development iteration Jun 25, 2016
pmd-plsql [maven-release-plugin] prepare for next development iteration Jun 25, 2016
pmd-python [maven-release-plugin] prepare for next development iteration Jun 25, 2016
pmd-ruby [maven-release-plugin] prepare for next development iteration Jun 25, 2016
pmd-scala [maven-release-plugin] prepare for next development iteration Jun 25, 2016
pmd-swift [maven-release-plugin] prepare for next development iteration Jun 25, 2016
pmd-test [maven-release-plugin] prepare for next development iteration Jun 25, 2016
pmd-ui [maven-release-plugin] prepare for next development iteration Jun 25, 2016
pmd-vm [maven-release-plugin] prepare for next development iteration Jun 25, 2016
pmd-xml [maven-release-plugin] prepare for next development iteration Jun 25, 2016
src/site Prepare next development version Jun 25, 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: add sonar May 29, 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 pmd plugin Jun 25, 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.