PMD (software)
PMD is an open source static source code analyzer that reports on issues found within application code. PMD includes built-in rule sets and supports the ability to write custom rules. PMD does not report compilation errors, as it only can process well-formed source files. Rather, PMD is designed to detect inefficient code or bad programming habits, which can reduce the performance and maintainability of the program if they accumulate. It can analyze files written in Java, JavaScript, Apex and Visualforce, PLSQL, Apache Velocity, XML, and XSL. While PMD does not officially stand for anything, several retro acronyms have been suggested, including for instance Programming Mistake Detector and Project Meets Deadline.
PMD is an open source static source code analyzer that reports on issues found within application code. PMD includes built-in rule sets and supports the ability to write custom rules. PMD does not report compilation errors, as it only can process well-formed source files. Rather, PMD is designed to detect inefficient code or bad programming habits, which can reduce the performance and maintainability of the program if they accumulate. It can analyze files written in Java, JavaScript, Apex and Visualforce, PLSQL, Apache Velocity, XML, and XSL. While PMD does not officially stand for anything, several retro acronyms have been suggested, including for instance Programming Mistake Detector and Project Meets Deadline. ==Features== PMD is able to detect flaws or possible flaws in source code, like: Bugs—Empty try/catch/finally/switch blocks. Dead code—Unused local variables, parameters and private methods. Empty if/while statements. Overcomplicated expressions—Unnecessary if statements, for loops that could be while loops. Suboptimal code—Wasteful String/StringBuffer usage. Classes with high Cyclomatic Complexity measurements. Duplicate code—Copied/pasted code can mean copied/pasted bugs, and decreases maintainability. ==License== PMD is released under a BSDish license while parts of it are under Apache License 2.0 and the LGPL. ==Copy/Paste Detector (CPD)== The Copy/Paste Detector (CPD) is an add-on to PMD that uses the Rabin–Karp string search algorithm to find duplicated code. Unlike PMD, CPD works with a broader range of languages including Java, JavaServer Pages (JSP), C, C++, Fortran, PHP, and C# code. ==Plugins== PMD has plugins for JDeveloper, Eclipse, jEdit, JBuilder, Omnicore's CodeGuide, NetBeans/Sun Studio, IntelliJ IDEA, TextPad, Maven, Ant, Gradle, Gel, JCreator, Hudson, Jenkins, SonarQube, Visual Studio Code and Emacs. There is also a CLI version. ==See also== List of tools for static code analysis SonarQube ==References== ==Further reading== Rutar, Almazan, Foster (2004), "A Comparison of Bug Finding Tools for Java". ISSRE '04 Proceedings of the 15th International Symposium on Software Reliability Engineering, IEEE, doi:10.1109/ISSRE.2004.1 ==External links== on SourceForge.net. Written by the lead developer, Tom Copeland ([https://web.archive.org/web/20051206035255/http://tomcopeland.blogs.com/]).
References
- PMD is an open source static source code code analyzer|analyzer that reports on issues found within application code. PMD includes built-in rule sets and supports the ability to write . · retrieved 2025-12-29 · rev 1330270610
Cite this reference
MLA "PMD is an open source static source code code analyzer|analyzer that reports on issues found within application code. PMD includes built-in rule sets and supports the ability to write ." PMD is an open source static source code code analyzer|analyzer that reports on issues found within application code. 2025-12-29. https://en.wikipedia.org/w/index.php?oldid=1330270610. Accessed 24 November 2026.
Chicago "PMD is an open source static source code code analyzer|analyzer that reports on issues found within application code. PMD includes built-in rule sets and supports the ability to write ." PMD is an open source static source code code analyzer|analyzer that reports on issues found within application code. 2025-12-29. https://en.wikipedia.org/w/index.php?oldid=1330270610.
APA PMD is an open source static source code code analyzer|analyzer that reports on issues found within application code. (2025). PMD is an open source static source code code analyzer|analyzer that reports on issues found within application code. PMD includes built-in rule sets and supports the ability to write . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1330270610
- What does 'PMD' mean? . pmd-code.org . retrieved 31 March 2023 · retrieved 2025-12-29 · rev 1330270610
Cite this reference
MLA "What does 'PMD' mean? . pmd-code.org . retrieved 31 March 2023." What does 'PMD' mean?. 2025-12-29. https://en.wikipedia.org/w/index.php?oldid=1330270610. Accessed 24 November 2026.
Chicago "What does 'PMD' mean? . pmd-code.org . retrieved 31 March 2023." What does 'PMD' mean?. 2025-12-29. https://en.wikipedia.org/w/index.php?oldid=1330270610.
APA What does 'PMD' mean?. (2025). What does 'PMD' mean? . pmd-code.org . retrieved 31 March 2023. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1330270610
- Destroy annoying bugs part 4: the end is near . freesoftwaremagazine.com . · retrieved 2025-12-29 · rev 1330270610
Cite this reference
MLA "Destroy annoying bugs part 4: the end is near . freesoftwaremagazine.com ." Destroy annoying bugs part 4: the end is near. 2025-12-29. https://en.wikipedia.org/w/index.php?oldid=1330270610. Accessed 24 November 2026.
Chicago "Destroy annoying bugs part 4: the end is near . freesoftwaremagazine.com ." Destroy annoying bugs part 4: the end is near. 2025-12-29. https://en.wikipedia.org/w/index.php?oldid=1330270610.
APA Destroy annoying bugs part 4: the end is near. (2025). Destroy annoying bugs part 4: the end is near . freesoftwaremagazine.com . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1330270610
- License . GitHub . 18 January 2015. retrieved 13 August 2015 · retrieved 2025-12-29 · rev 1330270610
Cite this reference
MLA "License . GitHub . 18 January 2015. retrieved 13 August 2015." License. 2025-12-29. https://en.wikipedia.org/w/index.php?oldid=1330270610. Accessed 24 November 2026.
Chicago "License . GitHub . 18 January 2015. retrieved 13 August 2015." License. 2025-12-29. https://en.wikipedia.org/w/index.php?oldid=1330270610.
APA License. (2025). License . GitHub . 18 January 2015. retrieved 13 August 2015. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1330270610
- CPD Capable Languages ! . · retrieved 2025-12-29 · rev 1330270610
Cite this reference
MLA "CPD Capable Languages ! ." 2025-12-29. https://en.wikipedia.org/w/index.php?oldid=1330270610. Accessed 24 November 2026.
Chicago "CPD Capable Languages ! ." 2025-12-29. https://en.wikipedia.org/w/index.php?oldid=1330270610.
APA encyclopegia.org. (2025). CPD Capable Languages ! . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1330270610
- Tools / Integrations . pmd-code.org . retrieved 31 March 2023 · retrieved 2025-12-29 · rev 1330270610
Cite this reference
MLA "Tools / Integrations . pmd-code.org . retrieved 31 March 2023." Tools / Integrations. 2025-12-29. https://en.wikipedia.org/w/index.php?oldid=1330270610. Accessed 24 November 2026.
Chicago "Tools / Integrations . pmd-code.org . retrieved 31 March 2023." Tools / Integrations. 2025-12-29. https://en.wikipedia.org/w/index.php?oldid=1330270610.
APA Tools / Integrations. (2025). Tools / Integrations . pmd-code.org . retrieved 31 March 2023. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1330270610
Cite this article
MLA
"PMD (software)." encyclopegia.org, 2025, https://encyclopegia.org/wiki/pmd-software. Accessed 24 November 2026.
Chicago
"PMD (software)." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/pmd-software.
APA
encyclopegia.org. (2025). PMD (software). Retrieved November 24, 2026, from https://encyclopegia.org/wiki/pmd-software
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON