Versions Compared     • This line was added.   • This line was
removed.   • Formatting was changed.   titleTable of Contents
Table of Contents  There are three two ways to extend coding
rules:    1. Writing custom rules in Java via a SonarQube plugin
2. Adding XPath rules directly in through the Sonar SonarQube
web interface.   3. Extending an existing Sonar plugin. For
example Checkstyle and PMD plugins accept definition of custom
checks.   4. Embedding and executing a code analyzer. For
example the Checkstyle plugin configures and executes the
library Checkstyle.   Note that the first way must be preferred
when available because the support of XPath will be eventually
dropped.   Before implementing a new coding rule,   you should
consider whether it is specific to your own context or might
benefit others. If it might benefit others, you can propose them
on the developer list. If the SonarQube team find your proposed
rules interesting, they may be implemented directly in the
related language plugin. It mea