This rule allows to define some homemade Javascript rules with help of an XPath expression.
Violations are created depending on the return value of the XPath expression. If the XPath expression returns:
Here is an example of an XPath expression to log a violation on each if statement : //ifStatement