diff --git a/pmd/xdocs/credits.xml b/pmd/xdocs/credits.xml index c04d0bebc9..349bc0116a 100644 --- a/pmd/xdocs/credits.xml +++ b/pmd/xdocs/credits.xml @@ -38,7 +38,7 @@

The whole ruleset file should look something like this:

- - + <rule name="WhileLoopsMustUseBracesRule" message="Avoid using 'while' statements without curly braces" class="net.sourceforge.pmd.rules.XPathRule"> - + <description> Avoid using 'while' statements without using curly braces - - 3 - - + </description> + <priority>3</priority> + <example> + <![CDATA[ public void doSomething() { while (true) x++; } + ]]> + </example> + </rule> + </ruleset> - - - - ]]> -

OK, well, it won't look exactly like that - you'll need to wrap - the example in a CDATA tag. But I couldn't figure out how to do that without Maven getting confused. - If you know how to do this, please let me know.