Sonar

How to write a custom rule.

As far as I've investigated, the basic steps are:

  1. In PMD you have a rule designer you can use for create a custom rule. For instance,

see this article

  1. Once you have a custom rule created in PMD, I guess there is a method to pass this information to sonar,

I've not dive into it so far now