# pmd

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

You can enable the pmd linter with:

```shell
trunk check enable pmd
```

![pmd example output](https://577236045-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F61Ep9MrYBkJa0Yq3zS1s%2Fuploads%2Fgit-blob-621dc8f63919a59e234761abb3b480f5eb15dd5c%2Fpmd.gif?alt=media)

## 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)
