Menu

Tree [6de258] main /
 History

HTTPS access


File Date Author Commit
 .ci 7 days ago dependabot[bot] dependabot[bot] [799731] Bump logger from 1.6.6 to 1.7.0 in /.ci/files i...
 .github 4 days ago Andreas Dangel Andreas Dangel [ec6506] Bump checkstyle from 10.21.4 to 10.23.0 (#5671)
 .idea 2025-02-18 Vincent Potucek Vincent Potucek [8f9bae] icon
 .mvn 2024-06-28 Andreas Dangel Andreas Dangel [e6397d] Bump maven from 3.9.6 to 3.9.8
 docs 3 days ago Andreas Dangel Andreas Dangel [677071] [doc] Update release notes (#5672)
 pmd-ant 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-apex 4 days ago John Jetmore John Jetmore [afff0f] Fix its/it's and doable/double typos
 pmd-cli 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-coco 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-core 4 days ago John Jetmore John Jetmore [afff0f] Fix its/it's and doable/double typos
 pmd-cpp 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-cs 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-dart 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-dist 2025-04-03 Andreas Dangel Andreas Dangel [583646] [dist] Determine PMD_HOME and reuse it for LIB_...
 pmd-doc 4 days ago John Jetmore John Jetmore [afff0f] Fix its/it's and doable/double typos
 pmd-fortran 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-gherkin 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-go 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-groovy 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-html 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-java 4 days ago John Jetmore John Jetmore [afff0f] Fix its/it's and doable/double typos
 pmd-javascript 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-jsp 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-julia 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-kotlin 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-lang-test 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-languages-deps 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-lua 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-matlab 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-modelica 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-objectivec 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-perl 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-php 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-plsql 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-python 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-ruby 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-rust 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-scala-modules 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-swift 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-test 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-test-schema 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-tsql 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 pmd-ui 2019-03-03 Clément Fournier Clément Fournier [3a78b2] Leave a readme behind
 pmd-velocity 4 days ago John Jetmore John Jetmore [afff0f] Fix its/it's and doable/double typos
 pmd-visualforce 4 days ago John Jetmore John Jetmore [afff0f] Fix its/it's and doable/double typos
 pmd-xml 2025-03-28 Andreas Dangel Andreas Dangel [8d2dd9] [release] Prepare next development version [ski...
 .all-contributorsrc 3 days ago Andreas Dangel Andreas Dangel [30ecc5] Add @jetmore as a contributor
 .gitattributes 2017-05-05 Andreas Dangel Andreas Dangel [88a8d4] Add maven wrapper, use maven 3.5.0
 .gitignore 2025-02-18 Vincent Potucek Vincent Potucek [8f9bae] icon
 CONTRIBUTING.md 2025-01-10 Andreas Dangel Andreas Dangel [419581] [doc] Add SECURITY.md
 LICENSE 2019-09-07 Andreas Dangel Andreas Dangel [c8d6e7] Update license info
 NOTICE 2019-09-07 Andreas Dangel Andreas Dangel [c8d6e7] Update license info
 README.md 2025-01-10 Andreas Dangel Andreas Dangel [c0363e] [doc] Merge BUILDING.md into building_general.md
 SECURITY.md 2025-01-10 Andreas Dangel Andreas Dangel [419581] [doc] Add SECURITY.md
 SPONSORS.md 2024-03-18 Andreas Dangel Andreas Dangel [b7365c] Update SPONSORS.md
 antlr4-wrapper.xml 2024-11-17 Juan Martín Sotuyo Dodero Juan Martín Sotuyo Dodero [5efe27] Ensure timestamp flags don't collide
 code_of_conduct.md 2020-04-17 Andreas Dangel Andreas Dangel [3eb367] Add code of conduct
 do-release.sh 2025-01-31 Andreas Dangel Andreas Dangel [5766e7] [docs] Call render_release_notes.rb within docs
 javacc-wrapper.xml 2025-02-21 Andreas Dangel Andreas Dangel [86dda0] [javacc] Move the grammar files to src/main/javacc
 mvnw 2024-06-28 Andreas Dangel Andreas Dangel [e6397d] Bump maven from 3.9.6 to 3.9.8
 mvnw.cmd 2024-06-28 Andreas Dangel Andreas Dangel [e6397d] Bump maven from 3.9.6 to 3.9.8
 package-lock.json 2022-01-29 Andreas Dangel Andreas Dangel [de41d2] Update package-lock.json
 package.json 2021-08-20 Andreas Dangel Andreas Dangel [8da900] Add package.json for all-contributors
 pom.xml 4 days ago Andreas Dangel Andreas Dangel [ec6506] Bump checkstyle from 10.21.4 to 10.23.0 (#5671)

Read Me

PMD - source code analyzer

PMD Logo

Join the chat
Build Status
Maven Central
Reproducible Builds
Coverage Status
Codacy Badge
Contributor Covenant
Documentation (latest)
Gurubase

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, PLSQL, 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#, Dart, Fortran, Gherkin, Go, Groovy, HTML, Java, JavaScript, JSP, Julia, Kotlin,
Lua, Matlab, Modelica, Objective-C, Perl, PHP, PLSQL, Python, Ruby, Salesforce.com Apex and
Visualforce, Scala, Swift, T-SQL, Typescript, Apache Velocity, WSDL, XML and XSL.

🚀 Installation and Usage

Download the latest binary zip from the releases
and extract it somewhere.

Execute bin/pmd check or bin\pmd.bat check.

See also Getting Started

Demo:

This shows how PMD analyses openjdk:

Demo

There are plugins for Maven and Gradle as well as for various IDEs.
See Tools / Integrations

ℹ️ How to get support?

🤝 Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

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

For details, see How to contribute to PMD.

The rule designer is developed over at pmd/pmd-designer.
Please see its README for
developer documentation.

💵 Financial Contributors

Become a financial contributor and help us sustain our community. Contribute

✨ Contributors

This project follows the all-contributors specification.
Contributions of any kind welcome!

See credits for the complete list.

📝 License

BSD Style

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.