The easiest way to run PMD is to just use a build plugin in your favorite build tool like Apache Ant, Apache Maven or Gradle.
There are also many integrations for IDEs available, see Tools.
If you have your own build tool or want to integrate PMD in a different way, you can call PMD programmatically, as described here.
DependenciesYouâll need to add the dependency to the language, you want to analyze. For Java, it will be net.sourceforge.pmd:pmd-java
. If you use Maven, you can add a new (compile time) dependency like this:
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-java</artifactId>
<version>${pmdVersion}</version>
</dependency>
Note: Youâll need to select a specific version. This is done in the example via the property pmdVersion
.
This will transitively pull in the artifact pmd-core
which contains the API.
The programmatic API for PMD is centered around PmdAnalysis
, please see the javadocs for usage information.
The programmatic API for CPD is centered around CpdAnalysis
, please see the javadocs for usage information.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4