Writing custom XPath rules for PMD

PMD comes with a set of handy rules, which more than often are sufficient for any project. However, in real life projects you also need some custom rules to be created. This article talks about writing custom PMD rules using XPath.