---
title: "PMD Java analysis"
description: "Runs PMD 7 over Java sources with built-in rulesets only (rulesets/java/quickstart.xml,category/java/security.xml), never the project's own ruleset, since rulesets can name rule classes. PMD runs from an empty temp directory, because it resolves ruleset paths against the working directory before its own classpath, and gets an explicit file list. No build is needed and --aux-classpath is never passed, so no project classes are loaded. Categories: Error Prone and Multithreading are reliability, Security security, Performance performance, the rest maintainability; PMD priority 1-5 maps to high, medium, low, info."
url: https://openaudit.se/auditors/code.pmd/
---

# PMD Java analysis

`code.pmd`

Runs PMD 7 over Java sources with built-in rulesets only (rulesets/java/quickstart.xml,category/java/security.xml), never the project's own ruleset, since rulesets can name rule classes. PMD runs from an empty temp directory, because it resolves ruleset paths against the working directory before its own classpath, and gets an explicit file list. No build is needed and --aux-classpath is never passed, so no project classes are loaded. Categories: Error Prone and Multithreading are reliability, Security security, Performance performance, the rest maintainability; PMD priority 1-5 maps to high, medium, low, info.

- **Engine:** Wrapped scanner
- **Wraps:** `pmd`
- **Targets:** Codebase
- **Areas:** Reliability, Maintainability, Security, Performance
- **Runs:** By default, when the target applies
- **Network:** Only the target itself

## Run only this auditor

```sh
bunx @openaudit/cli . --only code.pmd
```

Wraps pmd. When it isn't installed, the auditor is skipped with an install hint and the rest of the audit runs.

## More reliability auditors

- [TypeScript type-check (tsc)](https://openaudit.se/auditors/code.typecheck/) (`code.typecheck`)
- [Ruff Python lints](https://openaudit.se/auditors/code.ruff/) (`code.ruff`)
- [staticcheck Go lints](https://openaudit.se/auditors/code.staticcheck/) (`code.staticcheck`)
- [ShellCheck](https://openaudit.se/auditors/code.shellcheck/) (`code.shellcheck`)
- [Rust clippy lints](https://openaudit.se/auditors/code.clippy/) (`code.clippy`)
- [mypy type check](https://openaudit.se/auditors/code.mypy/) (`code.mypy`)
- [golangci-lint](https://openaudit.se/auditors/code.golangci-lint/) (`code.golangci-lint`)
- [PHPStan PHP static analysis](https://openaudit.se/auditors/code.phpstan/) (`code.phpstan`)
