> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trunk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# pmd

> pmd is a linter for Apex and Java

[**pmd**](https://pmd.github.io/) is a linter for Apex and Java.

You can enable the pmd linter with:

```shell theme={null}
trunk check enable pmd
```

<Frame caption="pmd example output">
  <img src="https://mintcdn.com/trunk-4cab4936/WAR0qJ1WO0rtUlqz/assets/code-quality/overview/linters/supported/pmd.gif?s=08567300d9dd5fa20c0ad4ee6b739678" alt="pmd example output" width="1000" height="600" data-path="assets/code-quality/overview/linters/supported/pmd.gif" />
</Frame>

## Auto Enabling

pmd will never be auto-enabled. It must be enabled manually.

## Links

* [pmd site](https://pmd.github.io/)
* pmd Trunk Code Quality [integration source](https://github.com/trunk-io/plugins/tree/main/linters/pmd)
* Trunk Code Quality's [open source plugins repo](https://github.com/trunk-io/plugins/tree/main)
