Registry / utility / pmd-java

pmd-java

JSON →
library7.23.0javamavenunverified

A static code analyzer for Java that finds common programming flaws like unused variables, empty catch blocks, and unnecessary object creation.

<dependency> <groupId>net.sourceforge.pmd</groupId> <artifactId>pmd-java</artifactId> <version>7.23.0</version> </dependency>
INSTALL
IMPORT
SIG · PMD-JAVA
P
pmd-java
utilityjavav7.23.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PMD
net.sourceforge.pmd.PMD

Run PMD analysis on Java source files with a ruleset.

import net.sourceforge.pmd.PMD; import net.sourceforge.pmd.PMDConfiguration; PMDConfiguration config = new PMDConfiguration(); config.setInputPaths("/path/to/source"); config.setRuleSets("rulesets/java/quickstart.xml"); PMD.doPMD(config);
Debug
Known issues
breakingPMD 7.x has breaking changes in rule set format and API compared to 6.x.
fix
Update rule set files to the new format and adjust API calls accordingly.
affects: >=7.0.0
Upgrade
Version history
7.23.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
pmd-java — mvn dependency:get pmd-java · libregistry