GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • PMD Source Code Analyzer
  • Documentation
  • Bugs

This view

  • Original page
  • New address

GeezerVison is showing pmd.github.io — PMD

PMD

PMD

An extensible cross-language static code analyzer.


  • Download
  • Documentation

Latest Version: 7.29.0 (30-October-2026)
Release Notes | Source


QuickStart


See also Getting Started
$ cd $HOME
$ wget https://github.com/pmd/pmd/releases/download/pmd_releases%2F7.29.0/pmd-dist-7.29.0-bin.zip
$ unzip pmd-dist-7.29.0-bin.zip
$ alias pmd="$HOME/pmd-bin-7.29.0/bin/pmd"
$ pmd check -d /usr/src -R rulesets/java/quickstart.xml -f text
$ cd $HOME
$ curl -OL https://github.com/pmd/pmd/releases/download/pmd_releases%2F7.29.0/pmd-dist-7.29.0-bin.zip
$ unzip pmd-dist-7.29.0-bin.zip
$ alias pmd="$HOME/pmd-bin-7.29.0/bin/pmd"
$ pmd check -d /usr/src -R rulesets/java/quickstart.xml -f text
  1. Download pmd-dist-7.29.0-bin.zip
  2. Extract the zip-archive, e.g. to C:\pmd-bin-7.29.0
  3. Add folder C:\pmd-bin-7.29.0\bin to PATH, either
    1. Permanently: Using System Properties dialog > Environment variables > Append to PATH variable
    2. Temporarily, at command line: SET PATH=C:\pmd-bin-7.29.0\bin;%PATH%
  4. Execute at command line: pmd.bat check -d c:\src -R rulesets/java/quickstart.xml -f text
  1. Install Chocolatey, if you don't already have it!
  2. Install package PMD: choco install -y pmd
  3. Run from the command-line! pmd check -d c:\src -R rulesets/java/quickstart.xml -f text
Checkout the existing rules for Java.


About PMD


PMD is an extensible multilanguage static code analyzer. It finds common programming flaws like unused variables, empty catch blocks, unnecessary object creation, and so forth. It's mainly concerned with Java and Apex, but supports 16 other languages. It comes with 400+ built-in rules. It can be extended with custom rules. It uses JavaCC and Antlr to parse source files into abstract syntax trees (AST) and runs rules against them to find violations. Rules can be written in Java or using a XPath query.

Currently, PMD supports Java, JavaScript, Salesforce.com Apex and Visualforce, Kotlin, Swift, Modelica, PL/SQL, Apache Velocity, JSP, WSDL, Maven POM, HTML, XML and XSL. Scala is supported, but there are currently no Scala rules available.

Additionally, it includes CPD, the copy-paste-detector. CPD finds duplicated code in Coco, C/C++, C#, CSS, Dart, Fortran, Gherkin, Go, Groovy, HTML, Java, JavaScript, JSP, Julia, Kotlin, Lua, Matlab, Modelica, Objective-C, Perl, PHP, PL/SQL, Python, Ruby, Rust, Salesforce.com Apex and Visualforce, Scala, Swift, T-SQL, Typescript, Apache Velocity, WSDL, XML and XSL.




News


  • 30 Oct 2026: PMD For Eclipse 7.29.0.v20261030-1011-r Released
  • 30 Oct 2026: PMD 7.29.0 released
  • 25 Sep 2026: PMD For Eclipse 7.28.0.v20260925-0921-r Released
  • 25 Sep 2026: PMD 7.28.0 released
  • 28 Aug 2026: PMD For Eclipse 7.27.0.v20260828-1928-r Released
All news


Downloads


7.29.0 (30-October-2026)

  • Release Notes
  • Download (Sourcecode, Documentation)
  • Online Documentation

7.28.0 (25-September-2026)

  • Release Notes
  • Download (Sourcecode, Documentation)
  • Online Documentation

7.27.0 (28-August-2026)

  • Release Notes
  • Download (Sourcecode, Documentation)
  • Online Documentation

7.26.0 (29-June-2026)

  • Release Notes
  • Download (Sourcecode, Documentation)
  • Online Documentation


Support


Need help?

  • How do I? -- Ask a question on StackOverflow.
  • I got this error, why? -- Ask a question on StackOverflow.
  • I got this error and I'm sure it's a bug -- file an issue.
  • I have an idea/request/question -- file an issue.
  • I have a quick question -- ask on our Gitter chat.
  • Where's your documentation? -- https://docs.pmd-code.org/latest/.

Commercial Support

PMD is developed by volunteers, and the channels above are community support on a best-effort basis. If you need consulting, custom rule development, training or guaranteed response times, see the companies offering commercial support.

Get Involved

See How to contribute to PMD and How to build PMD.

Our license: BSD-style.

Source Code: Check it out on github



Plugins


PMD has been integrated into various tools as a plugin. This list is just a small extract. See IDE Plugins, CI Plugins and Other Integrations for a more complete list.

  • Maven PMD plugin
  • Gradle: The PMD Plugin
  • Eclipse: eclipse-pmd
  • Eclipse: pmd-eclipse-plugin
  • IntelliJ: PMD X
  • IntelliJ: PMD
  • VS Code: Apex PMD
  • VS Code: PMD for Java
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.